annotate src/s/netbsd.h @ 175:2d532a89d707 r20-3b14

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