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:
parent
7e965066ed
commit
81778d2549
@ -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 *);
|
||||
|
Loading…
x
Reference in New Issue
Block a user