git: Add missing restrict qualifiers in POSIX function definitions/declarations.

Sascha Wildner swildner at crater.dragonflybsd.org
Thu Feb 15 00:55:49 PST 2018


commit d33005aaee6af52c80428b59b52aee522c002492
Author: Sascha Wildner <saw at online.de>
Date:   Thu Feb 15 09:54:34 2018 +0100

    Add missing restrict qualifiers in POSIX function definitions/declarations.
    
    This creates no further -Wrestrict warnings with gcc80 in buildworld.

Summary of changes:
 contrib/tre/lib/regcomp.c                         |   3 +-
 contrib/tre/lib/regerror.c                        |   3 +-
 contrib/tre/lib/regexec.c                         |   4 +-
 include/dirent.h                                  |   3 +-
 include/netdb.h                                   |   9 +-
 include/pthread.h                                 | 109 +++++++++++++---------
 include/spawn.h                                   |  13 +--
 include/string.h                                  |   3 +-
 include/time.h                                    |   6 +-
 include/xlocale/_monetary.h                       |   4 +-
 include/xlocale/_string.h                         |   3 +-
 lib/libc/gen/posix_spawn.c                        |  14 +--
 lib/libc/gen/readdir.c                            |   3 +-
 lib/libc/net/getaddrinfo.c                        |   4 +-
 lib/libc/net/getnameinfo.c                        |   5 +-
 lib/libc/stdtime/asctime.c                        |   2 +-
 lib/libc/stdtime/localtime.c                      |   4 +-
 lib/libc/string/strtok.c                          |   3 +-
 lib/libc/tre-regex/regex.h                        |  11 ++-
 lib/libc_r/uthread/uthread_attr_getinheritsched.c |   4 +-
 lib/libc_r/uthread/uthread_attr_getschedparam.c   |   4 +-
 lib/libc_r/uthread/uthread_attr_getschedpolicy.c  |   4 +-
 lib/libc_r/uthread/uthread_attr_getscope.c        |   4 +-
 lib/libc_r/uthread/uthread_attr_getstacksize.c    |   4 +-
 lib/libc_r/uthread/uthread_attr_setschedparam.c   |   4 +-
 lib/libc_r/uthread/uthread_cond.c                 |  12 ++-
 lib/libc_r/uthread/uthread_create.c               |   6 +-
 lib/libc_r/uthread/uthread_getschedparam.c        |   5 +-
 lib/libc_r/uthread/uthread_mattr_kind_np.c        |   3 +-
 lib/libc_r/uthread/uthread_mutex.c                |   4 +-
 lib/libc_r/uthread/uthread_mutex_prioceiling.c    |  12 +--
 lib/libc_r/uthread/uthread_mutex_protocol.c       |   4 +-
 lib/libc_r/uthread/uthread_rwlock.c               |   4 +-
 lib/libc_r/uthread/uthread_rwlockattr.c           |   5 +-
 lib/libc_r/uthread/uthread_sem.c                  |   2 +-
 lib/librt/aio.c                                   |   4 +-
 lib/libthread_xu/thread/thr_attr.c                |  21 +++--
 lib/libthread_xu/thread/thr_barrier.c             |   4 +-
 lib/libthread_xu/thread/thr_barrierattr.c         |   4 +-
 lib/libthread_xu/thread/thr_cond.c                |  11 ++-
 lib/libthread_xu/thread/thr_condattr.c            |   8 +-
 lib/libthread_xu/thread/thr_create.c              |   5 +-
 lib/libthread_xu/thread/thr_getschedparam.c       |   4 +-
 lib/libthread_xu/thread/thr_mutex.c               |  16 ++--
 lib/libthread_xu/thread/thr_mutexattr.c           |  13 ++-
 lib/libthread_xu/thread/thr_rwlock.c              |   8 +-
 lib/libthread_xu/thread/thr_rwlockattr.c          |   4 +-
 sys/sys/aio.h                                     |   3 +-
 sys/sys/semaphore.h                               |   2 +-
 sys/sys/socket.h                                  |  11 ++-
 sys/sys/stat.h                                    |   6 +-
 sys/sys/time.h                                    |   5 +-
 52 files changed, 234 insertions(+), 182 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/d33005aaee6af52c80428b59b52aee522c002492


-- 
DragonFly BSD source repository



More information about the Commits mailing list