This is the mail archive of the libc-help@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: How to define SEM_NSEMS_MAX?


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


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