comparison src/mem-limits.h @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents 7d59cb494b73
children a86b2b5e0111
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
25 HAVE_SYS_RESOURCE_H, HAVE_ULIMIT_H, HAVE_GETRLIMIT, HAVE_ULIMIT, 25 HAVE_SYS_RESOURCE_H, HAVE_ULIMIT_H, HAVE_GETRLIMIT, HAVE_ULIMIT,
26 and select action based on those values. 26 and select action based on those values.
27 getrlimit() should be preferred to ulimit(). 27 getrlimit() should be preferred to ulimit().
28 On Linux, ulimit() is deprecated and always returns -1. */ 28 On Linux, ulimit() is deprecated and always returns -1. */
29 29
30 #ifndef _XEMACS_MEM_LIMITS_H_ 30 #ifndef INCLUDED_mem_limits_h_
31 #define _XEMACS_MEM_LIMITS_H_ 31 #define INCLUDED_mem_limits_h_
32 32
33 #ifdef HAVE_CONFIG_H 33 #ifdef HAVE_CONFIG_H
34 #include <config.h> 34 #include <config.h>
35 #endif 35 #endif
36 36
99 #ifndef __CYGWIN32__ 99 #ifndef __CYGWIN32__
100 typedef unsigned long SIZE; 100 typedef unsigned long SIZE;
101 #endif 101 #endif
102 102
103 extern POINTER start_of_data (void); 103 extern POINTER start_of_data (void);
104 #ifdef DATA_SEG_BITS 104 #define EXCEEDS_LISP_PTR(ptr) 0
105 #define EXCEEDS_LISP_PTR(ptr) \
106 (((EMACS_UINT) (ptr) & ~DATA_SEG_BITS) >> VALBITS)
107 #else
108 #define EXCEEDS_LISP_PTR(ptr) ((EMACS_UINT) (ptr) >> VALBITS)
109 #endif
110 105
111 #ifdef BSD 106 #ifdef BSD
112 #ifndef DATA_SEG_BITS 107 #ifndef DATA_SEG_BITS
113 extern int etext; 108 extern int etext;
114 #define start_of_data() &etext 109 #define start_of_data() &etext
223 #endif /* not WINDOWSNT */ 218 #endif /* not WINDOWSNT */
224 #endif /* not USG */ 219 #endif /* not USG */
225 #endif /* not NO_LIM_DATA */ 220 #endif /* not NO_LIM_DATA */
226 #endif /* not HEAP_IN_DATA */ 221 #endif /* not HEAP_IN_DATA */
227 222
228 #endif /* _XEMACS_MEM_LIMITS_H_ */ 223 #endif /* INCLUDED_mem_limits_h_ */