annotate src/s/netbsd.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children 59463afc5666
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
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 /* For mem-limits.h. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 #define BSD4_2
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 #undef KERNEL_FILE
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 #undef LDAV_SYMBOL
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 #define HAVE_GETLOADAVG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 #define SIGNALS_VIA_CHARACTERS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 /* netbsd uses OXTABS instead of the expected TAB3. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 #define TABDLY OXTABS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 #define TAB3 OXTABS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
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 NO_TERMIO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 #define LIBS_DEBUG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 /* -lutil is not needed for NetBSD >0.9. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 /* #define LIBS_SYSTEM -lutil */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 /* XEmacs change */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 #ifdef HAVE_NCURSES
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 #define LIBS_TERMCAP -lncurses -ltermcap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 #define LIBS_TERMCAP -ltermcap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 #endif
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 #define NEED_ERRNO
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 #define GETPGRP_NO_ARG
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 #ifndef NO_SHARED_LIBS
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 /* These definitions should work for either dynamic or static linking,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 whichever is the default for `cc -nostdlib'. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 /* 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
46 ask for no shared libs if you have 0.9 */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 #define LD_SWITCH_SYSTEM -e start
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 #define START_FILES pre-crt0.o /usr/lib/crt0.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 #define UNEXEC unexfreebsd.o /* ironic, considering history of unexfreebsd */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 #define RUN_TIME_REMAP
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 /* Try to make this work for both 0.9 and >0.9. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 #define N_PAGSIZ(x) __LDPGSZ
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 /* #define N_TRELOFF(x) N_RELOFF(x) */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 /* the 1.0 way.. */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 #define N_RELOFF(x) N_TRELOFF(x)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 #else
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 #define START_FILES crt0.o
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 #endif /* not NO_SHARED_LIBS */
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 #define NO_MATHERR
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 #define AMPERSAND_FULL_NAME