acadia-newlib/newlib/libc/sys/linux/sys
Eric Blake ada456dcfe headers: properly decorate attributes
Found by:
find -name '*.h' |xargs grep -i 'attribute.*(([a-z]'

For an example of the type of bugs this causes, try compiling this valid
C11 program (it's valid because 'noreturn' is reserved for use in the
user namespace unless you include <stdnoreturn.h>):

$ cat foo.c
#define noreturn __attribute__((noreturn))
#include <stdlib.h>
$ gcc -c -o foo.o -Wall foo.c
In file included from /usr/include/stdlib.h:11:0,
                 from foo.c:2:
foo.c:1:18: error: expected ')' before '__attribute__'
 #define noreturn __attribute__((noreturn))
                  ^
/usr/include/stdlib.h:66:28: error: expected ',' or ';' before ')' token
 _VOID _EXFUN(abort,(_VOID) _ATTRIBUTE ((noreturn)));
                            ^

* libc/machine/spu/spu_timer_internal.h: Decorate attribute names
with __, for namespace safety.
* libc/machine/xscale/machine/profile.h: Likewise.
* libc/include/stdlib.h: Likewise.
* libc/include/_ansi.h: Likewise.
* libc/include/sys/unistd.h: Likewise.
* libc/sys/linux/linuxthreads/libc-symbols.h: Likewise.
* libc/sys/linux/linuxthreads/internals.h: Likewise.
* libc/sys/linux/machine/i386/weakalias.h: Likewise.
* libc/sys/linux/machine/i386/dl-procinfo.h: Likewise.
* libc/sys/linux/machine/i386/dl-machine.h: Likewise.
* libc/sys/linux/libc-symbols.h: Likewise.
* libc/sys/linux/iconv/gconv_charset.h: Likewise.
* libc/sys/linux/include/resolv.h: Likewise.
* libc/sys/linux/sys/unistd.h: Likewise.
* libc/sys/linux/dl/atomicity.h: Likewise.
* libc/sys/linux/dl/dynamic-link.h: Likewise.
* libc/sys/linux/dl/ldsodefs.h: Likewise.
2014-08-01 15:44:51 +00:00
..
_types.h 2007-09-07 Jeff Johnston <jjohnstn@redhat.com> 2007-09-07 21:18:03 +00:00
cdefs.h 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
dirent.h 2013-11-21 Joel Sherrill <joel.sherrill@oarcorp.com> 2013-11-21 16:44:39 +00:00
dlfcn.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
elfclass.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
errno.h * libc/include/langinfo.h: New file. 2002-08-23 01:56:05 +00:00
event.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
fcntl.h 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch> 2000-12-09 01:20:32 +00:00
features.h 2002-08-17 Jeff Johnston <jjohnstn@redhat.com> 2002-08-17 05:19:18 +00:00
file.h 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch> 2000-12-09 01:20:32 +00:00
ioccom.h 2006-03-29 Shaun Jackman <sjackman@gmail.com> 2006-03-29 22:09:56 +00:00
ioctl.h 2008-05-22 Jeff Johnston <jjohnstn@redhat.com> 2008-05-22 21:30:28 +00:00
libc-lock.h 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
libc-tsd.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
link.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
linux_time.h 2002-07-19 Jeff Johnston <jjohnstn@redhat.com> 2002-07-19 23:21:43 +00:00
lock.h 2005-10-26 Shaun Jackman <sjackman@gmail.com> 2005-10-26 22:16:34 +00:00
param.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
resource.h 2002-07-19 Jeff Johnston <jjohnstn@redhat.com> 2002-07-19 23:21:43 +00:00
select.h 2002-04-03 Jeff Johnston <jjohnstn@redhat.com> 2002-04-03 22:46:21 +00:00
signal.h * libc/include/signal.h (psignal): Declare. 2011-05-04 11:26:22 +00:00
socket.h 2008-05-22 Jeff Johnston <jjohnstn@redhat.com> 2008-05-22 21:30:28 +00:00
sockio.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
stat.h 2013-11-21 Daniel Ramirez <javamonn@gmail.com> 2013-11-21 16:35:47 +00:00
stdint.h 2008-10-02 Jeff Johnston <jjohnstn@redhat.com> 2008-10-02 17:29:11 +00:00
stdio.h 2002-07-23 Jeff Johnston <jjohnstn@redhat.com> 2002-07-23 19:40:45 +00:00
string.h 2005-01-24 Jeff Johnston <jjohnstn@redhat.com> 2005-01-24 18:46:09 +00:00
termios.h 2002-05-28 Jeff Johnston <jjohnstn@redhat.com> 2002-05-28 22:26:36 +00:00
time.h 2002-07-04 Jeff Johnston <jjohnstn@redhat.com> 2002-07-04 22:51:08 +00:00
types.h 2008-07-02 Jeff Johnston <jjohnstn@redhat.com> 2008-07-02 18:38:45 +00:00
unistd.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
utime.h 2002-07-04 Jeff Johnston <jjohnstn@redhat.com> 2002-07-04 22:51:08 +00:00
utmp.h 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch> 2000-12-09 01:20:32 +00:00
utsname.h 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch> 2000-12-09 01:20:32 +00:00
wait.h 2000-12-08 Werner Almesberger <Werner.Almesberger@epfl.ch> 2000-12-09 01:20:32 +00:00