]> sourceware.org Git - glibc.git/commit
<semaphore.h>: Add nonnull attributes
authorYann Droneaud <ydroneaud@opteya.com>
Mon, 29 Apr 2019 08:11:35 +0000 (10:11 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 29 Apr 2019 08:11:35 +0000 (10:11 +0200)
commitf492fc99f48e1a4fe99d9014f92b91fd3fc18fb0
treed82a56561675845f7643f909f68169b43d89aa11
parentc57afec0a9b318bb691e0f5fa4e9681cf30df7a4
<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.
ChangeLog
sysdeps/pthread/semaphore.h
This page took 0.042637 seconds and 5 git commands to generate.