Mercurial > hg > xemacs-beta
comparison src/mem-limits.h @ 169:15872534500d r20-3b11
Import from CVS: tag r20-3b11
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:46:53 +0200 |
parents | 54cc21c15cbb |
children | 557eaa0339bf |
comparison
equal
deleted
inserted
replaced
168:9851d5c6556e | 169:15872534500d |
---|---|
20 | 20 |
21 /* Synched up with: FSF 19.30. */ | 21 /* Synched up with: FSF 19.30. */ |
22 | 22 |
23 #ifndef _XEMACS_MEM_LIMITS_H_ | 23 #ifndef _XEMACS_MEM_LIMITS_H_ |
24 #define _XEMACS_MEM_LIMITS_H_ | 24 #define _XEMACS_MEM_LIMITS_H_ |
25 | |
26 #ifdef HAVE_CONFIG_H | |
27 #include <config.h> | |
28 #endif | |
29 | |
30 #ifdef HAVE_ULIMIT_H | |
31 #include <ulimit.h> | |
32 #endif | |
25 | 33 |
26 #ifdef MSDOS | 34 #ifdef MSDOS |
27 #include <dpmi.h> | 35 #include <dpmi.h> |
28 #endif | 36 #endif |
29 | 37 |
121 #ifdef USG | 129 #ifdef USG |
122 | 130 |
123 static void | 131 static void |
124 get_lim_data (void) | 132 get_lim_data (void) |
125 { | 133 { |
126 extern long ulimit (); | |
127 | |
128 lim_data = -1; | 134 lim_data = -1; |
129 | 135 |
130 /* Use the ulimit call, if we seem to have it. */ | 136 /* Use the ulimit call, if we seem to have it. */ |
131 #if !defined (ULIMIT_BREAK_VALUE) || defined (LINUX) | 137 #if !defined (ULIMIT_BREAK_VALUE) || defined (LINUX) |
132 lim_data = ulimit (3, 0); | 138 lim_data = ulimit (3, 0); |