use restrict everywhere it's required by c99 and/or posix 2008
authorRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2012 02:44:55 +0000 (22:44 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 7 Sep 2012 02:44:55 +0000 (22:44 -0400)
commit400c5e5c8307a2ebe44ef1f203f5a15669f20347
tree087a48dc8251fa05f6866af8ebf96b69450b15ab
parentbac03cdde1137c16b4c194e137310e2748661dcc
use restrict everywhere it's required by c99 and/or posix 2008

to deal with the fact that the public headers may be used with pre-c99
compilers, __restrict is used in place of restrict, and defined
appropriately for any supported compiler. we also avoid the form
[restrict] since older versions of gcc rejected it due to a bug in the
original c99 standard, and instead use the form *restrict.
192 files changed:
include/aio.h
include/arpa/inet.h
include/dirent.h
include/dlfcn.h
include/glob.h
include/iconv.h
include/inttypes.h
include/monetary.h
include/mqueue.h
include/netdb.h
include/pthread.h
include/regex.h
include/search.h
include/semaphore.h
include/signal.h
include/spawn.h
include/stdio.h
include/stdlib.h
include/string.h
include/sys/select.h
include/sys/socket.h
include/sys/stat.h
include/sys/statvfs.h
include/sys/time.h
include/time.h
include/unistd.h
include/wchar.h
include/wordexp.h
src/aio/lio_listio.c
src/dirent/readdir_r.c
src/ldso/dlsym.c
src/ldso/dynlink.c
src/locale/iconv.c
src/locale/strfmon.c
src/locale/strftime_l.c
src/locale/strxfrm.c
src/locale/strxfrm_l.c
src/locale/wcsxfrm.c
src/locale/wcsxfrm_l.c
src/misc/realpath.c
src/misc/wordexp.c
src/mq/mq_setattr.c
src/mq/mq_timedreceive.c
src/multibyte/mbrlen.c
src/multibyte/mbrtowc.c
src/multibyte/mbsnrtowcs.c
src/multibyte/mbsrtowcs.c
src/multibyte/mbstowcs.c
src/multibyte/mbtowc.c
src/multibyte/wcrtomb.c
src/multibyte/wcsnrtombs.c
src/multibyte/wcsrtombs.c
src/multibyte/wcstombs.c
src/network/accept.c
src/network/getaddrinfo.c
src/network/getnameinfo.c
src/network/getpeername.c
src/network/getsockname.c
src/network/getsockopt.c
src/network/inet_ntop.c
src/network/inet_pton.c
src/network/recvfrom.c
src/process/posix_spawn.c
src/process/posix_spawn_file_actions_addopen.c
src/process/posix_spawnattr_getflags.c
src/process/posix_spawnattr_getpgroup.c
src/process/posix_spawnattr_getsigdefault.c
src/process/posix_spawnattr_getsigmask.c
src/process/posix_spawnattr_setsigdefault.c
src/process/posix_spawnattr_setsigmask.c
src/process/posix_spawnp.c
src/regex/glob.c
src/regex/regcomp.c
src/regex/regerror.c
src/regex/regexec.c
src/select/pselect.c
src/select/select.c
src/signal/setitimer.c
src/signal/sigaction.c
src/signal/sigaltstack.c
src/signal/sigprocmask.c
src/signal/sigtimedwait.c
src/signal/sigwait.c
src/signal/sigwaitinfo.c
src/stat/fstatat.c
src/stat/lstat.c
src/stat/stat.c
src/stat/statvfs.c
src/stdio/dprintf.c
src/stdio/fgetpos.c
src/stdio/fgets.c
src/stdio/fgetws.c
src/stdio/fmemopen.c
src/stdio/fopen.c
src/stdio/fprintf.c
src/stdio/fputs.c
src/stdio/fputws.c
src/stdio/fread.c
src/stdio/freopen.c
src/stdio/fscanf.c
src/stdio/fwprintf.c
src/stdio/fwrite.c
src/stdio/fwscanf.c
src/stdio/getdelim.c
src/stdio/getline.c
src/stdio/printf.c
src/stdio/scanf.c
src/stdio/setbuf.c
src/stdio/setvbuf.c
src/stdio/snprintf.c
src/stdio/sprintf.c
src/stdio/sscanf.c
src/stdio/swprintf.c
src/stdio/swscanf.c
src/stdio/vdprintf.c
src/stdio/vfprintf.c
src/stdio/vfscanf.c
src/stdio/vfwprintf.c
src/stdio/vfwscanf.c
src/stdio/vprintf.c
src/stdio/vscanf.c
src/stdio/vsnprintf.c
src/stdio/vsprintf.c
src/stdio/vsscanf.c
src/stdio/vswprintf.c
src/stdio/vswscanf.c
src/stdio/vwprintf.c
src/stdio/vwscanf.c
src/stdio/wprintf.c
src/stdio/wscanf.c
src/stdlib/strtod.c
src/stdlib/strtol.c
src/stdlib/wcstod.c
src/stdlib/wcstol.c
src/string/memccpy.c
src/string/memcpy.c
src/string/stpcpy.c
src/string/stpncpy.c
src/string/strcat.c
src/string/strcpy.c
src/string/strncat.c
src/string/strncpy.c
src/string/strtok.c
src/string/strtok_r.c
src/string/swab.c
src/string/wcpcpy.c
src/string/wcpncpy.c
src/string/wcscat.c
src/string/wcscpy.c
src/string/wcsncat.c
src/string/wcsncpy.c
src/string/wcsstr.c
src/string/wcstok.c
src/string/wmemcpy.c
src/thread/pthread_attr_getguardsize.c
src/thread/pthread_attr_getschedparam.c
src/thread/pthread_attr_getscope.c
src/thread/pthread_attr_getstack.c
src/thread/pthread_attr_getstacksize.c
src/thread/pthread_attr_setschedparam.c
src/thread/pthread_barrier_init.c
src/thread/pthread_barrierattr_getpshared.c
src/thread/pthread_cond_init.c
src/thread/pthread_cond_timedwait.c
src/thread/pthread_cond_wait.c
src/thread/pthread_condattr_getclock.c
src/thread/pthread_condattr_getpshared.c
src/thread/pthread_create.c
src/thread/pthread_mutex_init.c
src/thread/pthread_mutex_timedlock.c
src/thread/pthread_mutexattr_getpshared.c
src/thread/pthread_mutexattr_getrobust.c
src/thread/pthread_mutexattr_gettype.c
src/thread/pthread_rwlock_init.c
src/thread/pthread_rwlock_timedrdlock.c
src/thread/pthread_rwlock_timedwrlock.c
src/thread/pthread_rwlockattr_getpshared.c
src/thread/pthread_sigmask.c
src/thread/sem_getvalue.c
src/thread/sem_timedwait.c
src/time/__asctime.c
src/time/asctime_r.c
src/time/gettimeofday.c
src/time/gmtime_r.c
src/time/localtime_r.c
src/time/strftime.c
src/time/strptime.c
src/time/timer_create.c
src/time/timer_settime.c
src/time/wcsftime.c
src/unistd/readlink.c
src/unistd/readlinkat.c