Pārlūkot izejas kodu

* fixed RLIMIT_VMEM gotcha

git-svn-id: trunk@1754 -
marco 20 gadi atpakaļ
vecāks
revīzija
b6ed07eb30
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      rtl/bsd/ostypes.inc

+ 3 - 1
rtl/bsd/ostypes.inc

@@ -262,8 +262,10 @@ Const
 {$IFDEF FreeBSD}
 {$IFDEF FreeBSD}
   RLIMIT_SBSIZE   = 9;              { maximum size of all socket buffers }
   RLIMIT_SBSIZE   = 9;              { maximum size of all socket buffers }
   RLIMIT_VMEM     =10;              { virtual process size (inclusive of mmap) }
   RLIMIT_VMEM     =10;              { virtual process size (inclusive of mmap) }
+  RLIMIT_AS       = RLIMIT_VMEM;    
+{$ELSE}
+  RLIMIT_AS       = 5;    	    { address space= resident set size}
 {$ENDIF}
 {$ENDIF}
-  RLIMIT_AS       = RLIMIT_VMEM;    { standard name for RLIMIT_VMEM }
 
 
   {$ifdef FreeBSD}
   {$ifdef FreeBSD}
   RLIM_NLIMITS    =11;              { number of resource limits }
   RLIM_NLIMITS    =11;              { number of resource limits }