Hello,

I just tried to compile some software on OpenBSD and it failed because
OpenBSD does not provide RLIMIT_AS:
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/resource.h?rev=1.8;content-type=text%2Fplain
even though RLIMIT_AS seems to be part of POSIX:
http://www.opengroup.org/onlinepubs/009695399/functions/getrlimit.html

I assume this is well known, so I just have two quick questions:

1) Is there a chance of having RLIMIT_AS be added in the future?  I
noticed that someone submitted a patch for that a few years ago but
obviously it wasn't added: http://marc.info/?t=109182108400002&r=1&w=2
http://marc.info/?l=openbsd-tech&m=109190100529561&w=2 (alas I don't
know enough about OpenBSD's internals to update that patch for the
current version of OpenBSD).

2) I patched the software I was trying to compile to replace RLIMIT_AS
with the sum of RLIMIT_DATA and RLIMIT_STACK.  Is there a better way
to approximate RLIMIT_AS?

Thanks a lot,

Philippe

Reply via email to