Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jul 2015 16:21:11 +0000 (UTC)
From:      "Pedro F. Giffuni" <pfg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285277 - head/include
Message-ID:  <201507081621.t68GLBcd001909@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507081621.t68GLBcd001909>