newlib-cygwin/newlib/libc/sys/linux/linuxthreads
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
..
bits 2005-10-26 Shaun Jackman <sjackman@gmail.com> 2005-10-26 22:16:34 +00:00
machine 2013-12-23 Jeff Johnston <jjohnstn@redhat.com> 2013-12-23 20:45:10 +00:00
LICENSE 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
Makefile.am * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +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
attr.c 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
barrier.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
bp-sym.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
cancel.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
condvar.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
config.h 2006-03-17 Jeff Johnston <jjohnstn@redhat.com> 2006-03-17 22:27:37 +00:00
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
defs.awk 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ecmutex.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
events.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
getcpuclockid.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
getreent.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
internals.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
join.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
joinrace.c 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
kernel-features.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
libc-internal.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
libc-symbols.h headers: properly decorate attributes 2014-08-01 15:44:51 +00:00
linuxthreads.texi 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
lockfile.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
manager.c 2007-12-19 Jeff Johnston <jjohnstn@redhat.com> 2007-12-19 22:27:00 +00:00
mq_notify.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
mutex.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
no-tsd.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
oldsemaphore.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
posix-timer.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
prio.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
proc_service.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
pt-machine.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptclock_gettime.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptclock_settime.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptfork.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
pthread.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
ptlongjmp.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
queue.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
reent.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
reqsyscalls.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
restart.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
rwlock.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
semaphore.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
semaphore.h 2003-06-20 Jeff Johnston <jjohnstn@redhat.com> 2003-06-20 23:57:48 +00:00
shlib-compat.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
signals.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
specific.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
spinlock.c 008-09-08 Jeff Johnston <jjohnstn@redhat.com> 2008-09-08 22:25:14 +00:00
spinlock.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
sysctl.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
td_init.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_log.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_symbol_list.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
td_ta_clear_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_delete.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_enable_stats.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_event_addr.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_event_getmsg.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_get_nthreads.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_get_ph.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_get_stats.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_map_id2thr.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_map_lwp2thr.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_new.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_reset_stats.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_set_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_setconcurrency.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_thr_iter.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_ta_tsd_iter.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_clear_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_dbresume.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_dbsuspend.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_event_enable.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_event_getmsg.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_get_info.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getfpregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getgregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getxregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_getxregsize.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_set_event.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setfpregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setgregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setprio.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setsigpending.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_setxregs.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_sigsetmask.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_tsd.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
td_thr_validate.c 2003-11-06 Jeff Johnston <jjohnstn@redhat.com> 2003-11-06 22:58:52 +00:00
testrtsig.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
thread_db.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
thread_dbP.h 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_create.c 2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com> 2013-11-25 13:46:23 +00:00
timer_delete.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_getoverr.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_gettime.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_routines.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
timer_settime.c 2013-11-25 Sahil Patnayakuni <sahil.patnayakuni@gmail.com> 2013-11-25 13:46:23 +00:00
tst-cancel.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
tst-context.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
tststack.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
unload.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
weaks.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00
wrapsyscall.c 2003-05-28 Jeff Johnston <jjohnstn@redhat.com> 2003-05-28 22:04:40 +00:00