acadia-newlib/newlib/libc/sys/linux
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
..
argp 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
bits
cmath 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
dl headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
iconv headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
include headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
intl 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
linuxthreads headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
machine headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
net * libc/sys/linux/include/netdb.h, libc/sys/linux/net/getaddrinfo.c, 2013-07-23 07:05:31 +00:00
sys headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
Makefile.am * libc/include/signal.h (psignal): Declare. 2011-05-04 11:26:22 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aio.c
aio64.c
bp-checks.h
brk.c
calloc.c
callocr.c
cfreer.c
cfspeed.c
clock_getres.c
clock_gettime.c
clock_settime.c
config.h
configure 2013-12-23 Jeff Johnston <jjohnstn@redhat.com> 2013-12-23 20:45:10 +00:00
configure.in 2010-02-24 Charles Wilson <...> 2010-02-24 21:00:08 +00:00
confstr.c
confstr.h
crt1.c
ctermid.c
fclean.c
flockfile.c
fpathconf.c
free.c
freer.c
fstab.c
fstatvfs.c
fstatvfs64.c
ftok.c
ftw.c
ftw64.c
funlockfile.c
getdate.c
getdate_err.c
gethostid.c
gethostname.c
getlogin.c
getopt.c
getopt1.c
getpwent.c
getreent.c
getrlimit64.c
getwd.c
hp-timing.h
ids.c
inode.c
internal_statvfs.c
io.c
io64.c
ipc.c
isatty.c
kernel_sigaction.h
libc-internal.h
libc-symbols.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
libc-tsd.h
libintl.h
linux.c
linux_fsinfo.h
malign.c
malignr.c
mallinfor.c
malloc.c
mallocr.c
malloptr.c
mallstatsr.c
mcheck.c
mhooks.h
mmap.c
mntent.c
mntent_r.c
mq_close.c
mq_getattr.c
mq_notify.c
mq_open.c
mq_receive.c
mq_send.c
mq_setattr.c
mq_unlink.c
mqlocal.h
msize.c
msizer.c
mstats.c
mtrim.c
mtrimr.c
ntp_gettime.c
pathconf.c
pread.c
pread64.c
process.c
prof-freq.c
profile.c
pvallocr.c
pwrite.c
pwrite64.c
raise.c
readdir64.c
realloc.c
reallocr.c
realpath.c 2013-11-18 Joel Sherrill <joel.sherrill@oarcorp.com> 2013-11-19 17:32:24 +00:00
rename.c
resource.c
scandir64.c
sched.c
select.c
seteuid.c
sethostid.c
sethostname.c
setrlimit64.c
shared.ld 2013-12-23 Jeff Johnston <jjohnstn@redhat.com> 2013-12-23 20:45:10 +00:00
shlib-compat.h
shm_open.c
shm_unlink.c
sig.c
sigaction.c
siglongjmp.c
signal.c
sigqueue.c
sigset.c
sigwait.c
sleep.c
socket.c
sockops.h
stack.c
statvfs.c 2013-11-21 Daniel Ramirez <javamonn@gmail.com> 2013-11-22 01:17:42 +00:00
statvfs64.c
strsignal.c
strverscmp.c
sysconf.c
sysctl.c
systat.c
system.c
tcdrain.c
tcsendbrk.c
termios.c
thread-m.h
time.c
ttyname_r.c
usleep.c
utimes.c
vallocr.c
versionsort.c
versionsort64.c
wait.c