On Mon, Dec 17, 2012 at 10:13:25AM -0500, Jack Howarth wrote: > On darwin in /usr/include/sys/resource.h, we have... > > #define RLIMIT_AS 5 /* address space (resident set size) > */ > #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE) > #define RLIMIT_RSS RLIMIT_AS /* source compatibility alias */ > > so I guess we could craft a setrlimit effective target proc which checks > if RLIMIT_AS has the same rlimit ID as RLIMIT_RSS. Any suggestions on how > to implement such a check?
Or perhaps just return 0 early for [ target *-*-darwin* ] in the setrlimit effective target test, with a comment that it violates POSIX. Jakub