diff options
| author | Jim Blandy | 1993-05-20 02:14:56 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-20 02:14:56 +0000 |
| commit | 161aa2f8d8e00a768d234a84544fd93616c5590b (patch) | |
| tree | a804c29d8d5dd72863981792c83775b3d2393447 /src/mem-limits.h | |
| parent | 12a07afc12fc2bc34a0a4dbb6c72fc9cedcb3c44 (diff) | |
| download | emacs-161aa2f8d8e00a768d234a84544fd93616c5590b.tar.gz emacs-161aa2f8d8e00a768d234a84544fd93616c5590b.zip | |
Some more changes from Michael K. Johnson for Linux.
* s/template.h: Mention that you should #define HAVE_TERMIO or
HAVE_TERMIOS, but not both, and that HAVE_TERMIOS is preferred.
* systty.h (EMACS_SET_TTY_PGRP): Don't assign the return value of
tcsetpgrp to *pgid; it's just a status value.
* config.h.in (HAVE_RANDOM): This shouldn't be defined on Linux
systems using XFree386, and perhaps is inappropriate in general.
* m/intel386.h: #undefine the integer size macros, since the Linux
<values.h> file #defines them itself.
* mem-limits.h (get_lim_data): Linux has the ulimit call; if it
fails, fall back on ULIMIT_BREAK_VALUE.
* process.c: Linux needs the WAITTYPE, etc. definitions.
* unexec.c (hdr, ohdr): Linux has the ordinary `struct exec' type;
no need to use SYSV names.
* s/linux.h: New file.
Diffstat (limited to 'src/mem-limits.h')
| -rw-r--r-- | src/mem-limits.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h index 06c8e1f5dd0..e2df73ee8d0 100644 --- a/src/mem-limits.h +++ b/src/mem-limits.h | |||
| @@ -77,13 +77,20 @@ static void | |||
| 77 | get_lim_data () | 77 | get_lim_data () |
| 78 | { | 78 | { |
| 79 | extern long ulimit (); | 79 | extern long ulimit (); |
| 80 | 80 | ||
| 81 | #ifdef ULIMIT_BREAK_VALUE | 81 | lim_data = -1; |
| 82 | lim_data = ULIMIT_BREAK_VALUE; | 82 | |
| 83 | #else | 83 | /* Use the ulimit call, if we seem to have it. */ |
| 84 | #if !defined (ULIMIT_BREAK_VALUE) || defined (LINUX) | ||
| 84 | lim_data = ulimit (3, 0); | 85 | lim_data = ulimit (3, 0); |
| 85 | #endif | 86 | #endif |
| 86 | 87 | ||
| 88 | /* If that didn't work, just use the macro's value. */ | ||
| 89 | #ifdef ULIMIT_BREAK_VALUE | ||
| 90 | if (lim_data == -1) | ||
| 91 | lim_data = ULIMIT_BREAK_VALUE; | ||
| 92 | #endif | ||
| 93 | |||
| 87 | lim_data -= (long) data_space_start; | 94 | lim_data -= (long) data_space_start; |
| 88 | } | 95 | } |
| 89 | 96 | ||