(WAIT_USE_INT): Defined.
[bpt/emacs.git] / src / s / netbsd.h
1 /* s/ file for netbsd system. */
2
3 /* Get most of the stuff from bsd4.3 */
4 #include "bsd4-3.h"
5
6 /* For mem-limits.h. */
7 #define BSD4_2
8
9 #undef KERNEL_FILE
10 #undef LDAV_SYMBOL
11 #define HAVE_GETLOADAVG
12
13 #define HAVE_UNION_WAIT
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 HAVE_TERMIOS
27 #define NO_TERMIO
28
29 #define LIBS_DEBUG
30 /* -lutil is not needed for NetBSD >0.9. */
31 #define LIBS_SYSTEM -lutil
32 #define LIBS_TERMCAP -ltermcap
33
34 #define NEED_ERRNO
35 #define SYSV_SYSTEM_DIR
36
37 /* Netbsd has POSIX-style pgrp behavior. */
38 #undef BSD_PGRPS
39
40 #ifndef NO_SHARED_LIBS
41 /* These definitions should work for either dynamic or static linking,
42 whichever is the default for `cc -nostdlib'. */
43 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
44 #define START_FILES pre-crt0.o /usr/lib/crt0.o
45 #define UNEXEC unexsunos4.o
46 #define RUN_TIME_REMAP
47
48 /* Try to make this work for both 0.9 and >0.9. */
49 #ifndef N_TRELOFF
50 #define N_PAGSIZ(x) __LDPGSZ
51 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
52 #define N_TRELOFF(x) N_RELOFF(x)
53 #endif
54 #endif /* not NO_SHARED_LIBS */
55
56 /* Reread the time zone on startup. */
57 #define LOCALTIME_CACHE
58
59 #define HAVE_WAIT_HEADER
60 #define WAIT_USE_INT