This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] <semaphore.h>: Add nonnull attributes


* Yann Droneaud:

> 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.

Yann, do you need help with isntalling this patch?

Thanks,
Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]