1 /* s/ file for netbsd system. */
3 /* Get most of the stuff from bsd4.3 */
6 /* For mem-limits.h. */
11 #define HAVE_GETLOADAVG
13 #define HAVE_UNION_WAIT
15 #define SIGNALS_VIA_CHARACTERS
17 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
19 /* netbsd uses OXTABS instead of the expected TAB3. */
23 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
24 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
30 /* -lutil is not needed for NetBSD >0.9. */
31 #define LIBS_SYSTEM -lutil
32 #define LIBS_TERMCAP -ltermcap
35 #define SYSV_SYSTEM_DIR
37 /* Netbsd has POSIX-style pgrp behavior. */
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
48 /* Try to make this work for both 0.9 and >0.9. */
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)
54 #endif /* not NO_SHARED_LIBS */
56 /* Reread the time zone on startup. */
57 #define LOCALTIME_CACHE
59 #define HAVE_WAIT_HEADER