summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-04-27 16:06:33 -0400
committerRich Felker <dalias@aerifal.cx>2011-04-27 16:06:33 -0400
commite6bac87d0eaab116878a04874bc5b6a3496cb938 (patch)
treef88a34682883b960faa59ed0f97e06ae882c2ea0 /include/unistd.h
parent22263709eda9f7d692a0f484fd759f757418dbd7 (diff)
downloadmusl-e6bac87d0eaab116878a04874bc5b6a3496cb938.tar.gz
musl-e6bac87d0eaab116878a04874bc5b6a3496cb938.tar.bz2
musl-e6bac87d0eaab116878a04874bc5b6a3496cb938.tar.xz
musl-e6bac87d0eaab116878a04874bc5b6a3496cb938.zip
correct variadic prototypes for execl* family
the old versions worked, but conflicted with programs which declared their own prototypes and generated warnings with some versions of gcc.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 05180de0..a64d99b7 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -81,10 +81,10 @@ int pause(void);
pid_t fork(void);
int execve(const char *, char *const [], char *const []);
int execv(const char *, char *const []);
-int execle(const char *, ...);
-int execl(const char *, ...);
+int execle(const char *, const char *, ...);
+int execl(const char *, const char *, ...);
int execvp(const char *, char *const []);
-int execlp(const char *, ...);
+int execlp(const char *, const char *, ...);
int fexecve(int, char *const [], char *const []);
void _exit(int);