svn commit: r285277 - head/include

Pedro F. Giffuni pfg at FreeBSD.org
Wed Jul 8 16:21:11 UTC 2015


Author: pfg
Date: Wed Jul  8 16:21:10 2015
New Revision: 285277
URL: https://svnweb.freebsd.org/changeset/base/285277

Log:
  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

Modified:
  head/include/unistd.h

Modified: head/include/unistd.h
==============================================================================
--- head/include/unistd.h	Wed Jul  8 16:20:20 2015	(r285276)
+++ head/include/unistd.h	Wed Jul  8 16:21:10 2015	(r285277)
@@ -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 *);


More information about the svn-src-head mailing list