Where the SEM_NSEMS_MAX is defined?
Neil
freeordie.k@gmail.com
Thu Feb 2 08:06:00 GMT 2012
Hi All,
When I read sem_init manual in POSIX specification, there is a return
value ENOSPC, which means
[ENOSPC] A resource required to initialize the semaphore has been
exhausted, or the
limit on semaphores ({SEM_NSEMS_MAX}) has been reached.
But in nptl/sem_init.c, __new_sem_init() doesn't check the resource
limits. Why it doesn't check and why the implement doesn't in
according with POSIX spec?
And who should define the const SEM_NSEMS_MAX on linux, kernel or libc?
Thanks a lot.
--
Regards,
Neil
More information about the Libc-help
mailing list