Mercurial > emacs
annotate src/s/bsd386.h @ 57724:80393689541a
(USE_SAFE_ALLOCA): Add and init sa_must_free integer.
(SAFE_ALLOCA, SAFE_ALLOCA_LISP): Increment it when malloc is used.
(SAFE_FREE): Test it to determine if we need to unwind to free.
Remove size arg. All users changed.
(SAFE_FREE_LISP) Remove. All users changed to use SAFE_FREE.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 26 Oct 2004 22:37:02 +0000 |
parents | 695cf19ef79e |
children | c365fcdf7c2a 375f2633d815 |
rev | line source |
---|---|
3360 | 1 /* s/ file for bsd386 system. */ |
2 | |
3 #include "bsd4-3.h" | |
4 | |
8777
aa4159cad5ed
(__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents:
7805
diff
changeset
|
5 #ifndef __bsdi__ |
aa4159cad5ed
(__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents:
7805
diff
changeset
|
6 #define __bsdi__ 1 |
aa4159cad5ed
(__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents:
7805
diff
changeset
|
7 #endif |
aa4159cad5ed
(__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents:
7805
diff
changeset
|
8 |
aa4159cad5ed
(__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents:
7805
diff
changeset
|
9 #define DECLARE_GETPWUID_WITH_UID_T |
aa4159cad5ed
(__bsdi__): Define, unless already defined.
Richard M. Stallman <rms@gnu.org>
parents:
7805
diff
changeset
|
10 |
3360 | 11 #define SIGNALS_VIA_CHARACTERS |
12 | |
13 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | |
14 #define A_TEXT_OFFSET(x) (sizeof (struct exec)) | |
15 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) | |
16 | |
17 #define LIBS_DEBUG | |
18 #define LIB_X11_LIB -L/usr/X11/lib -lX11 | |
19 #define LIBS_SYSTEM -lutil -lkvm -lcompat | |
3361 | 20 |
29771
953fdf4f10b3
(HAVE_GETLOADAVG): Define it as 1.
Kenichi Handa <handa@m17n.org>
parents:
28640
diff
changeset
|
21 #define HAVE_GETLOADAVG 1 |
28640 | 22 |
5970 | 23 #undef BSD_PGRPS |
7505
9553f0614817
(LOCALTIME_CACHE): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
5970
diff
changeset
|
24 |
7743
0e058c7168b6
(TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7505
diff
changeset
|
25 /* System uses OXTABS instead of the expected TAB3. |
0e058c7168b6
(TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7505
diff
changeset
|
26 (Copied from netbsd.h.) */ |
0e058c7168b6
(TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7505
diff
changeset
|
27 #define TABDLY OXTABS |
0e058c7168b6
(TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7505
diff
changeset
|
28 #define TAB3 OXTABS |
0e058c7168b6
(TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7505
diff
changeset
|
29 |
0e058c7168b6
(TABDLY, TAB3): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7505
diff
changeset
|
30 #define SYSV_SYSTEM_DIR |
7805 | 31 |
8984
5aa06240226f
(HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8777
diff
changeset
|
32 #define HAVE_TERMIOS |
5aa06240226f
(HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8777
diff
changeset
|
33 #define NO_TERMIO |
5aa06240226f
(HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8777
diff
changeset
|
34 |
7805 | 35 #define WAITTYPE int |
36 /* get this since it won't be included if WAITTYPE is defined */ | |
37 #ifdef emacs | |
38 #include <sys/wait.h> | |
39 #endif | |
40 #define WRETCODE(w) WEXITSTATUS(w) | |
41 #ifndef WCOREDUMP | |
42 #define WCOREDUMP(w) ((w) & 0200) | |
43 #endif | |
8984
5aa06240226f
(HAVE_TERMIOS, NO_TERMIO): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
8777
diff
changeset
|
44 |
11724
32167f40a60a
(GETPGRP_NO_ARG): New definition.
Richard M. Stallman <rms@gnu.org>
parents:
8984
diff
changeset
|
45 #define GETPGRP_NO_ARG 1 |
52401 | 46 |
47 /* arch-tag: 867e3bb8-e9df-4763-9c82-8f4accb8209e | |
48 (do not change this comment) */ |