about summary refs log tree commit diff
path: root/ChangeLog
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 /ChangeLog
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 'ChangeLog')
-rw-r--r--ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aac356bb69..639538dd4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2019-04-29  Yann Droneaud  <ydroneaud@opteya.com>
+
+	* 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.
+
 2019-04-26  Florian Weimer  <fweimer@redhat.com>
 
 	elf: Link sotruss-lib.so with BIND_NOW for --enable-bind-now.