Re: value of _POSIX_SEM_VALUE_MAX
roger.faulkner_at_sun.com
Date: 07/26/05
- Next message: Thomas Maier-Komor: "Re: value of _POSIX_SEM_VALUE_MAX"
- Previous message: Trond Norbye: "Re: Ferrari 4000"
- In reply to: Thomas Maier-Komor: "value of _POSIX_SEM_VALUE_MAX"
- Next in thread: Thomas Maier-Komor: "Re: value of _POSIX_SEM_VALUE_MAX"
- Reply: Thomas Maier-Komor: "Re: value of _POSIX_SEM_VALUE_MAX"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Thomas Maier-Komor: "Re: value of _POSIX_SEM_VALUE_MAX"
- Previous message: Trond Norbye: "Re: Ferrari 4000"
- In reply to: Thomas Maier-Komor: "value of _POSIX_SEM_VALUE_MAX"
- Next in thread: Thomas Maier-Komor: "Re: value of _POSIX_SEM_VALUE_MAX"
- Reply: Thomas Maier-Komor: "Re: value of _POSIX_SEM_VALUE_MAX"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|