This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: How to define SEM_NSEMS_MAX?
- From: Neil <freeordie dot k at gmail dot com>
- To: libc-help <libc-help at sourceware dot org>
- Date: Thu, 12 Apr 2012 09:47:34 +0800
- Subject: Re: How to define SEM_NSEMS_MAX?
- References: <CAM-JBkF7W16FgT4tC8OBarntbQNHoy=L8QOEDp0m8snQ+_M6PQ@mail.gmail.com>
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