aboutsummaryrefslogtreecommitdiff
path: root/include/spawn.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2008-06-19 07:30:32 +0000
committerEd Schouten <ed@FreeBSD.org>2008-06-19 07:30:32 +0000
commit6b0a300c028c9b0432d0ed6e6a5eb4fc7a73146a (patch)
treed67bfae2deb527c44781eadf644286523112d9ed /include/spawn.h
parent7d28174b918f339c3e70205adcaef2705e562cab (diff)
Notes
Diffstat (limited to 'include/spawn.h')
-rw-r--r--include/spawn.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/spawn.h b/include/spawn.h
index 088b7c577deb..7889d0e10246 100644
--- a/include/spawn.h
+++ b/include/spawn.h
@@ -63,13 +63,16 @@ typedef struct __posix_spawn_file_actions *posix_spawn_file_actions_t;
__BEGIN_DECLS
/*
* Spawn routines
+ *
+ * XXX both arrays should be __restrict, but this does not work when GCC
+ * is invoked with -std=c99.
*/
int posix_spawn(pid_t * __restrict, const char * __restrict,
const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict,
- char * const [__restrict], char * const [__restrict]);
+ char * const [], char * const []);
int posix_spawnp(pid_t * __restrict, const char * __restrict,
const posix_spawn_file_actions_t *, const posix_spawnattr_t * __restrict,
- char * const [__restrict], char * const [__restrict]);
+ char * const [], char * const []);
/*
* File descriptor actions