diff options
author | pfg <pfg@FreeBSD.org> | 2015-07-08 16:21:10 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2015-07-08 16:21:10 +0000 |
commit | 81778d25490497eb2b3288f698155922adb714cc (patch) | |
tree | 4a713d11f730ad8e543c88885eea7ac95aab8845 /include | |
parent | 7e965066ede451d7a551dd68d6c59acf32e4846e (diff) | |
download | FreeBSD-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')
-rw-r--r-- | include/unistd.h | 4 |
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 *); |