comparison src/mem-limits.h @ 243:f220cc83d72e r20-5b20

Import from CVS: tag r20-5b20
author cvs
date Mon, 13 Aug 2007 10:17:07 +0200
parents 557eaa0339bf
children 677f6a0ee643
comparison
equal deleted inserted replaced
242:fc816b73a05f 243:f220cc83d72e
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Synched up with: FSF 19.30. */ 21 /* Synched up with: FSF 19.30. */
22 22
23 /* #### This ancient code really sucks.
24 configure should check for:
25 HAVE_SYS_RESOURCE_H, HAVE_ULIMIT_H, HAVE_GETRLIMIT, HAVE_ULIMIT,
26 and select action based on those values.
27 getrlimit() should be preferred to ulimit().
28 On Linux, ulimit() is deprecated and always returns -1. */
29
23 #ifndef _XEMACS_MEM_LIMITS_H_ 30 #ifndef _XEMACS_MEM_LIMITS_H_
24 #define _XEMACS_MEM_LIMITS_H_ 31 #define _XEMACS_MEM_LIMITS_H_
25 32
26 #ifdef HAVE_CONFIG_H 33 #ifdef HAVE_CONFIG_H
27 #include <config.h> 34 #include <config.h>
45 52
46 /* Old Linux startup code won't define __data_start. */ 53 /* Old Linux startup code won't define __data_start. */
47 extern int etext, __data_start; weak_symbol (__data_start) 54 extern int etext, __data_start; weak_symbol (__data_start)
48 #define start_of_data() (&__data_start ?: &etext) 55 #define start_of_data() (&__data_start ?: &etext)
49 56
50 #else /* not _LIBC */ 57 #else /* not GNU libc */
51 58
52 #if defined (__osf__) && (defined (__mips) || defined (mips) || defined (__alpha)) 59 #if defined (__osf__) && (defined (__mips) || defined (mips) || defined (__alpha))
53 #include <sys/time.h> 60 #include <sys/time.h>
54 #include <sys/resource.h> 61 #include <sys/resource.h>
55 #endif 62 #endif