[issue1328] error: `RLIMIT_AS' undeclared

Vincent Stemen vince.dragonfly at hightek.org
Sat May 9 09:58:43 PDT 2009


On Wed, May 06, 2009 at 09:57:49AM +0000, Alex Hornung (via DragonFly issue tracker) wrote:
> 
> Alex Hornung <ahornung at gmail.com> added the comment:
> 
> In my opinion this should be fixed in FreeSWITCH by changing RLIMIT_AS to 
> RLIMIT_VMEM. If this is in pkgsrc, it should be fixed there.
> Neither NetBSD nor OpenBSD have RLIMIT_AS and there is no need for it if it'll be 
> just the same as RLIMIT_VMEM.

Actually, it turns out that NetBSD *does* have it also.

resource.h:
  #define RLIMIT_AS    10         /* virtual process size (inclusive of mmap) */
  #define RLIMIT_VMEM  RLIMIT_AS  /* common alias */
    
OpenBSD seems to be the only one that does not have it.

By the way, FreeSWITCH is not in pkgsrc.  I was trying to compile it
natively.  However, the RLIMIT_AS issue was not the only one.  Every
time I fixed one problem there was another.  Apparently it is very Linux
centric.  I don't have a lot of time to work on it so I gave up for now
and am going to take a closer look at yate.


On Fri, May 08, 2009 at 06:44:51AM +0000, Alex Hornung (via DragonFly issue tracker) wrote:
> 
> Alex Hornung <ahornung at gmail.com> added the comment:
> 
> I've just seen that RLIMIT_AS is actually POSIX:
> http://www.opengroup.org/onlinepubs/009695399/functions/getrlimit.html
> 
> So we should add it. It'll probably happen during GSoC (POSIX Compliance Project).

Thanks for following up on this.  It is looking to me like RLIMIT_AS is (or is
becoming?) more of the standard and RLIMIT_VMEM is BSD specific.  I do not
see any mention of RLIMIT_VMEM in the posix specifications and Linux does not
seem to support it either.  At least it did not show up when I grep'd the
Linux headers under /archive/Linux-2.6.13.1 on leaf for it.







More information about the Bugs mailing list