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: Where the SEM_NSEMS_MAX is defined?


Hi Mark,

Thanks for your detailed explanation.

>
> So, SEM_NSEMS_MAX does not need to be defined on a system where there is
> no limit (such as here). Check sysconf(_SC_SEM_NSEMS_MAX) and the lack
> of limit is confirmed.
>

In POSIX test suite there is a test case sem_init/7-1.c, it checks
sysconf(_SC_SEM_NSEMS_MAX) and if returns -1, the case return
UNTESTED.
Do you think it should return PASS? Thanks.

Codes:
   max = sysconf(_SC_SEM_NSEMS_MAX);

   if (max <= 0)
   {
       output("sysconf(_SC_SEM_NSEMS_MAX) = %ld\n", max);
       UNTESTED("There is no constraint on SEM_NSEMS_MAX");
   }

-- 
Regards,
Neil


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