Re: value of _POSIX_SEM_VALUE_MAX

roger.faulkner_at_sun.com
Date: 07/26/05


Date: 26 Jul 2005 05:05:32 -0700


Thomas Maier-Komor wrote:
> Hello everybody,
>
> can anybody tell me why the value of _POSIX_SEM_VALUE_MAX
> on Solaris 9 (sparc) is 32767? Is there any reason, why this
> is bound to a 16bit value. I would have expected it to be
> at lease 2G-1...
>
> TIA,
>
> Tom

Like many of the _POSIX_* values, _POSIX_SEM_VALUE_MAX is a miniumum
value guaranteed to be supported by the system.

The real max value is not a defined constant but is given by:
        long sem_value_max = sysconf(_SC_SEM_VALUE_MAX);

See also getconf(1):
        $ getconf _POSIX_SEM_VALUE_MAX
        32767
        $ getconf SEM_VALUE_MAX
        2147483647

Roger Faulkner
Sun Microsystems



Relevant Pages

  • Re: OT: The Real Reason Why Oil Companies Arent Investing Right Now
    ... childish, prickish manner, Tom. ... The rub is that I've always understood that they only need to be engaged in the prereq work that's done before drilling in order to, basically, automatically extend the lease. ... But I'm not an expert on oil leases, ... but I know prosecutors that smoke or have smoked marijuana that don't enjoy or want to prosecute such things. ...
    (rec.gambling.poker)
  • Re: Input Box
    ... Tom ... >Dim strNum as String ... rather than allenbrowne at mvps dot org. ... >> TIA ...
    (microsoft.public.access.formscoding)
  • Re: Mostek 5024 datasheet?
    ... > synthesizer kids. ... > TIA, ... The MAIN thing I remember about that chip was how much better the ...
    (sci.electronics.components)
  • Wasserhahn/-ventil: womit schmieren?
    ... 'Normales' Fett o.so darf man sicher nicht verwenden ->Vergiftung? ... TIA ... Prev by Date: ...
    (de.rec.heimwerken)
  • Re: OT: The Real Reason Why Oil Companies Arent Investing Right Now
    ... The examples I cited showed oil leases running for a fixed term ... The lessee can lose its rights to the lease if it fails to make ... State, Tom. ... state prosecutors do you estimate would have to be drug kicking ...
    (rec.gambling.poker)