0
|
1 /* Synched up with: FSF 19.31. */
|
|
2
|
|
3 /* s/ file for netbsd system. */
|
|
4
|
|
5 /* Get most of the stuff from bsd4.3 */
|
|
6 #include "bsd4-3.h"
|
|
7
|
155
|
8 /* limits that lisp.h might have to guess otherwise */
|
|
9 #include <limits.h>
|
|
10 #undef BSD
|
|
11
|
|
12 #ifndef NOT_C_CODE
|
|
13 #include <sys/param.h>
|
|
14 #include <sys/exec.h>
|
|
15 #endif /* C_CODE */
|
|
16
|
0
|
17 /* For mem-limits.h. */
|
|
18 #define BSD4_2
|
|
19
|
|
20 #undef KERNEL_FILE
|
|
21 #undef LDAV_SYMBOL
|
|
22 #define HAVE_GETLOADAVG
|
|
23
|
|
24 #define SIGNALS_VIA_CHARACTERS
|
|
25
|
|
26 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
|
|
27
|
|
28 /* netbsd uses OXTABS instead of the expected TAB3. */
|
|
29 #define TABDLY OXTABS
|
|
30 #define TAB3 OXTABS
|
|
31
|
|
32 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
|
|
33 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
|
|
34
|
|
35 #define NO_TERMIO
|
|
36
|
|
37 #define LIBS_DEBUG
|
|
38 /* -lutil is not needed for NetBSD >0.9. */
|
|
39 /* #define LIBS_SYSTEM -lutil */
|
|
40 /* XEmacs change */
|
|
41 #define LIBS_TERMCAP -ltermcap
|
|
42
|
|
43 #define NEED_ERRNO
|
|
44
|
|
45 #define GETPGRP_NO_ARG
|
|
46
|
155
|
47 #if 0
|
0
|
48 #ifndef NO_SHARED_LIBS
|
|
49 /* These definitions should work for either dynamic or static linking,
|
|
50 whichever is the default for `cc -nostdlib'. */
|
|
51 /* but they probably don't, and life's too short - jrg@doc.ic.ac.uk
|
|
52 ask for no shared libs if you have 0.9 */
|
155
|
53 /* mrb -- ORDINARY_LINK works just fine... */
|
0
|
54 #define LD_SWITCH_SYSTEM -e start
|
|
55 #define START_FILES pre-crt0.o /usr/lib/crt0.o
|
155
|
56 #define RUN_TIME_REMAP
|
|
57 #else
|
|
58 #define START_FILES crt0.o
|
|
59
|
|
60 #endif /* not NO_SHARED_LIBS */
|
|
61 #endif /* 0 */
|
|
62
|
|
63 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
|
|
64 #define ORDINARY_LINK
|
0
|
65 #define UNEXEC unexfreebsd.o /* ironic, considering history of unexfreebsd */
|
|
66
|
155
|
67 #if 0
|
0
|
68 /* Try to make this work for both 0.9 and >0.9. */
|
|
69 #define N_PAGSIZ(x) __LDPGSZ
|
|
70 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
|
|
71 /* #define N_TRELOFF(x) N_RELOFF(x) */
|
|
72 /* the 1.0 way.. */
|
155
|
73 #endif /* 0 */
|
|
74
|
0
|
75 #define N_RELOFF(x) N_TRELOFF(x)
|
|
76
|
|
77 #define NO_MATHERR
|
|
78
|
|
79 #define AMPERSAND_FULL_NAME
|