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
This commit is contained in:
Pedro F. Giffuni 2015-07-08 16:21:10 +00:00
parent 8bdc5a6251
commit 5d0bef91b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285277

View File

@ -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 *);