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