Mercurial > emacs
annotate src/s/freebsd.h @ 10268:84777124c262
(compilation-minor-mode-map): Bind C-m to compilation-goto-error.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 27 Dec 1994 03:47:06 +0000 |
parents | 3b0788d087b6 |
children | cb413eec7a2f |
rev | line source |
---|---|
6261 | 1 /* s/ file for freebsd system. */ |
2 | |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
3 /* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up. |
8869
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
4 Earlier versions do not have shared libraries, so inhibit them. |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
5 You can inhibit them on newer systems if you wish |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
6 by defining NO_SHARED_LIBS. */ |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
7 #ifndef __FreeBSD__ |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
8 #define NO_SHARED_LIBS |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
9 #endif |
6261 | 10 |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
11 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
12 #if 0 /* This much, alone, seemed sufficient as of 19.23. |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
13 But it seems better to be independent of netbsd.h. */ |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
14 #include "netbsd.h" |
6261 | 15 |
6930
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
16 #undef LIB_GCC |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
17 #define LIB_GCC -lgcc |
4d3971045057
Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents:
6434
diff
changeset
|
18 #undef NEED_ERRNO |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
19 #endif /* 0 */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
20 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
21 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
22 /* Get most of the stuff from bsd4.3 */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
23 #include "bsd4-3.h" |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
24 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
25 /* For mem-limits.h. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
26 #define BSD4_2 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
27 |
9930
3b0788d087b6
(LD_SWITCH_SYSTEM): Add -dc and -dp.
Richard M. Stallman <rms@gnu.org>
parents:
9495
diff
changeset
|
28 /* These aren't needed, since we have getloadavg. */ |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
29 #undef KERNEL_FILE |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
30 #undef LDAV_SYMBOL |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
31 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
32 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
33 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
34 #define LIBS_DEBUG |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
35 #define LIBS_SYSTEM -lutil |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
36 #define LIBS_TERMCAP -ltermcap |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
37 #define LIB_GCC -lgcc |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
38 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
39 /* Reread the time zone on startup. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
40 #define LOCALTIME_CACHE |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
41 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
42 #define SYSV_SYSTEM_DIR |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
43 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
44 /* freebsd has POSIX-style pgrp behavior. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
45 #undef BSD_PGRPS |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
46 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
47 #ifndef NO_SHARED_LIBS |
9930
3b0788d087b6
(LD_SWITCH_SYSTEM): Add -dc and -dp.
Richard M. Stallman <rms@gnu.org>
parents:
9495
diff
changeset
|
48 #define LD_SWITCH_SYSTEM -e start -dc -dp |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
49 #define HAVE_TEXT_START /* No need to define `start_of_text'. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
50 #define START_FILES pre-crt0.o /usr/lib/crt0.o |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
51 #define UNEXEC unexsunos4.o |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
52 #define RUN_TIME_REMAP |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
53 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
54 #ifndef N_TRELOFF |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
55 #define N_PAGSIZ(x) __LDPGSZ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
56 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data)) |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
57 #define N_TRELOFF(x) N_RELOFF(x) |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
58 #endif |
8869
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
59 #else /* NO_SHARED_LIBS */ |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
60 #ifdef __FreeBSD__ /* shared libs are available, but the user prefers |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
61 not to use them. */ |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
62 #define LD_SWITCH_SYSTEM -Bstatic |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
63 #define A_TEXT_OFFSET(x) (sizeof (struct exec)) |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
64 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr)) |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
65 #endif /* __FreeBSD__ */ |
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
66 #endif /* NO_SHARED_LIBS */ |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
67 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
68 #define HAVE_WAIT_HEADER |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
69 #define HAVE_GETLOADAVG |
9930
3b0788d087b6
(LD_SWITCH_SYSTEM): Add -dc and -dp.
Richard M. Stallman <rms@gnu.org>
parents:
9495
diff
changeset
|
70 #define HAVE_GETPAGESIZE |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
71 #define HAVE_TERMIOS |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
72 #define NO_TERMIO |
8869
eff6c7e4e236
(DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents:
7608
diff
changeset
|
73 #define DECLARE_GETPWUID_WITH_UID_T |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
74 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
75 /* freebsd uses OXTABS instead of the expected TAB3. */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
76 #define TABDLY OXTABS |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
77 #define TAB3 OXTABS |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
78 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
79 /* this silences a few compilation warnings */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
80 #undef BSD |
9018
e8f02eb00bbf
(BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents:
8869
diff
changeset
|
81 #if __FreeBSD__ == 1 |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
82 #define BSD 199103 |
9018
e8f02eb00bbf
(BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents:
8869
diff
changeset
|
83 #elif __FreeBSD__ == 2 |
e8f02eb00bbf
(BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents:
8869
diff
changeset
|
84 #define BSD 199306 |
e8f02eb00bbf
(BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents:
8869
diff
changeset
|
85 #endif |
7339
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
86 |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
87 #define WAITTYPE int |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
88 /* get this since it won't be included if WAITTYPE is defined */ |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
89 #ifdef emacs |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
90 #include <sys/wait.h> |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
91 #endif |
b557aa86c53a
Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents:
6930
diff
changeset
|
92 #define WRETCODE(w) (_W_INT(w) >> 8) |