summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2015-07-08 16:21:10 +0000
committerpfg <pfg@FreeBSD.org>2015-07-08 16:21:10 +0000
commit81778d25490497eb2b3288f698155922adb714cc (patch)
tree4a713d11f730ad8e543c88885eea7ac95aab8845 /include/unistd.h
parent7e965066ede451d7a551dd68d6c59acf32e4846e (diff)
downloadFreeBSD-src-81778d25490497eb2b3288f698155922adb714cc.zip
FreeBSD-src-81778d25490497eb2b3288f698155922adb714cc.tar.gz
Use the __sentinel attribute.
Start using the gcc sentinel attribute, which can be used to mark varargs function that need a NULL pointer to mark argument termination, like execl(3). Relnotes: yes
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 0329122..ef77133 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -327,9 +327,9 @@ int close(int);
void closefrom(int);
int dup(int);
int dup2(int, int);
-int execl(const char *, const char *, ...);
+int execl(const char *, const char *, ...) __sentinel;
int execle(const char *, const char *, ...);
-int execlp(const char *, const char *, ...);
+int execlp(const char *, const char *, ...) __sentinel;
int execv(const char *, char * const *);
int execve(const char *, char * const *, char * const *);
int execvp(const char *, char * const *);
OpenPOWER on IntegriCloud