annotate src/s/netbsd.h @ 155:43dd3413c7c7 r20-3b4

Import from CVS: tag r20-3b4
author cvs
date Mon, 13 Aug 2007 09:39:39 +0200
parents 59463afc5666
children 6b37e6ddd302
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 /* limits that lisp.h might have to guess otherwise */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
9 #include <limits.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
10 #undef BSD
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
11
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
12 #ifndef NOT_C_CODE
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
13 #include <sys/param.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
14 #include <sys/exec.h>
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
15 #endif /* C_CODE */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
16
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 /* For mem-limits.h. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 #define BSD4_2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 #undef KERNEL_FILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #undef LDAV_SYMBOL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 #define HAVE_GETLOADAVG
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 SIGNALS_VIA_CHARACTERS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 /* netbsd uses OXTABS instead of the expected TAB3. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 #define TABDLY OXTABS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 #define TAB3 OXTABS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
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 NO_TERMIO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 #define LIBS_DEBUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 /* -lutil is not needed for NetBSD >0.9. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 /* #define LIBS_SYSTEM -lutil */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 /* XEmacs change */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 #define LIBS_TERMCAP -ltermcap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 #define NEED_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 #define GETPGRP_NO_ARG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
47 #if 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #ifndef NO_SHARED_LIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 /* These definitions should work for either dynamic or static linking,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 whichever is the default for `cc -nostdlib'. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 /* 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
52 ask for no shared libs if you have 0.9 */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
53 /* mrb -- ORDINARY_LINK works just fine... */
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #define LD_SWITCH_SYSTEM -e start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 #define START_FILES pre-crt0.o /usr/lib/crt0.o
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
56 #define RUN_TIME_REMAP
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
57 #else
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
58 #define START_FILES crt0.o
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
59
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
60 #endif /* not NO_SHARED_LIBS */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
61 #endif /* 0 */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
62
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
63 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
64 #define ORDINARY_LINK
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 #define UNEXEC unexfreebsd.o /* ironic, considering history of unexfreebsd */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
67 #if 0
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 /* Try to make this work for both 0.9 and >0.9. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 #define N_PAGSIZ(x) __LDPGSZ
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 /* #define N_TRELOFF(x) N_RELOFF(x) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 /* the 1.0 way.. */
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
73 #endif /* 0 */
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 151
diff changeset
74
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 #define N_RELOFF(x) N_TRELOFF(x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 #define NO_MATHERR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 #define AMPERSAND_FULL_NAME