diff options
author | Yann Droneaud <ydroneaud@opteya.com> | 2019-04-29 10:11:35 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2019-04-29 10:11:35 +0200 |
commit | f492fc99f48e1a4fe99d9014f92b91fd3fc18fb0 (patch) | |
tree | d82a56561675845f7643f909f68169b43d89aa11 /socket/listen.c | |
parent | c57afec0a9b318bb691e0f5fa4e9681cf30df7a4 (diff) | |
download | glibc-f492fc99f48e1a4fe99d9014f92b91fd3fc18fb0.tar.gz glibc-f492fc99f48e1a4fe99d9014f92b91fd3fc18fb0.tar.xz glibc-f492fc99f48e1a4fe99d9014f92b91fd3fc18fb0.zip |
<semaphore.h>: Add nonnull attributes
Except the following functions, NPTL implementation assume sem_t argument (or other arguments) are not NULL, so they would benefit from having the nonnull attribute. - sem_close(): can cope with a NULL sem_t and return -1 with error EINVAL; - sem_destroy(): does nothing at all * sysdeps/pthread/semaphore.h (sem_init): Add __nonnull attribute. (sem_destroy, sem_open, sem_close, sem_unlink): Likewise. (sem_wait, sem_timedwait, sem_trywait, sem_post): Likewise. (sem_getvalue): Likewise.
Diffstat (limited to 'socket/listen.c')
0 files changed, 0 insertions, 0 deletions