Re: [issue1328] error: `RLIMIT_AS' undeclared

看板DFBSD_bugs作者時間16年前 (2009/05/10 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
On Wed, May 06, 2009 at 09:57:49AM +0000, Alex Hornung (via DragonFly issue tracker) wrote: > > Alex Hornung <ahornung@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@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.
文章代碼(AID): #1A1SJt00 (DFBSD_bugs)
文章代碼(AID): #1A1SJt00 (DFBSD_bugs)