How to define SEM_NSEMS_MAX?
Neil
freeordie.k@gmail.com
Thu Apr 12 01:48:00 GMT 2012
Hi,
When I call
max = sysconf(_SC_SEM_NSEMS_MAX);
it returns -1
then I check the glibc code in file sysdeps/posix/sysconf.c:
------------------------------------------------
case _SC_SEM_NSEMS_MAX:
#ifdef SEM_NSEMS_MAX
return SEM_NSEMS_MAX;
#else
return -1;
#endif
------------------------------------------------
I grep the source code tree that SEM_NSEMS_MAX is not defined.
So where can I define the SEM_NSEMS_MAX? Should it be defined in glibc
source code tree or some configuration file else?
Thanks a lot.
--
Regards,
Neil
More information about the Libc-help
mailing list