about summary refs log tree commit diff
path: root/iconvdata/cp10007.c
diff options
context:
space:
mode:
authorYann Droneaud <ydroneaud@opteya.com>2019-04-29 10:11:35 +0200
committerFlorian Weimer <fweimer@redhat.com>2019-04-29 10:11:35 +0200
commitf492fc99f48e1a4fe99d9014f92b91fd3fc18fb0 (patch)
treed82a56561675845f7643f909f68169b43d89aa11 /iconvdata/cp10007.c
parentc57afec0a9b318bb691e0f5fa4e9681cf30df7a4 (diff)
downloadglibc-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 'iconvdata/cp10007.c')
0 files changed, 0 insertions, 0 deletions