Le 21 mars 2013 à 15:02, Wietse Venema a écrit :

>> [...]
> 
> You might want to file a MacOS bug report. According to SUSV2 (Single
> UNIX Specification, Version 2, from 1997)
> 
>   Specifying RLIM_INFINITY as any resource limit value on a
>   successful call to setrlimit() inhibits enforcement of that
>   resource limit.
> 
> http://pubs.opengroup.org/onlinepubs/7908799/xsh/getrlimit.html
> 
> Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition:
> 
>   Specifying RLIM_INFINITY as any resource limit value on a
>   successful call to setrlimit() shall inhibit enforcement of
>   that resource limit.
> 
> http://pubs.opengroup.org/onlinepubs/009696799/functions/getrlimit.html
> 
> Based on this I think that a conforming setrlimit() implementation
> must accept RLIM_INFINITY as "any resource limit value". resource
> limit value.

Hello Wietse,

Strictly speaking, I'm not sure one could validly file a bug report in this 
case:

- setrlimit() is described as being part of the XSI extension,
- Apple indeed claims conformance to POSIX 1003.1, but not to the XSI extension
- moreover, Apple's man page for setrlimit() doesn't refer to any standard
- and anyway, the standard describes what should happen after a successful call 
to setrlimit(), but remains silent about the case of an unsuccessful call.

But this is just my poor understanding of such matters... ;-)

Axel

Reply via email to