annotate src/s/freebsd.h @ 7505:9553f0614817

(LOCALTIME_CACHE): Defined.
author Richard M. Stallman <rms@gnu.org>
date Sun, 15 May 1994 05:28:41 +0000
parents b557aa86c53a
children f8be483120ef
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1 /* s/ file for freebsd system. */
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
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.
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
4 Earlier versions do not have shared libraries, so inhibit them. */
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
5 #ifndef __FreeBSD__
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
6 #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
7 #endif
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
8
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
9
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
10 #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
11 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
12 #include "netbsd.h"
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
13
6930
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
14 #undef LIB_GCC
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
15 #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
16 #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
17 #endif /* 0 */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
18
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
19
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
20 /* 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
21 #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
22
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
23 /* 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
24 #define BSD4_2
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
25
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
26 /* thses aren't needed, since we have getloadavg() */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
27 #undef KERNEL_FILE
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
28 #undef LDAV_SYMBOL
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
29
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
30 #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
31
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
32 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
33 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
34
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
35 #define LIBS_DEBUG
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
36 #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
37 #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
38 #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
39
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
40 /* 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
41 #define LOCALTIME_CACHE
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
42
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
43 #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
44
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
45 /* 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
46 #undef BSD_PGRPS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
47
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
48 #ifndef NO_SHARED_LIBS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
49 /* These definitions should work for either dynamic or static linking,
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
50 whichever is the default for `cc -nostdlib'. */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
51 #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
52 #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
53 #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
54 #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
55
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
56 #ifndef N_TRELOFF
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
57 #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
58 #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
59 #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
60 #endif
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
61 #endif /* not NO_SHARED_LIBS */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
62
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
63 #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
64 #define HAVE_GETLOADAVG
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
65 #define HAVE_TERMIOS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
66 #define NO_TERMIO
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 /* 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
69 #define TABDLY OXTABS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
70 #define TAB3 OXTABS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
71
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
72 /* 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
73 #undef BSD
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
74 #define BSD 199103
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
75
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
76 #define WAITTYPE int
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
77 /* 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
78 #ifdef emacs
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
79 #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
80 #endif
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
81 #define WRETCODE(w) (_W_INT(w) >> 8)