Mention `delete-frame-functions' replacing `delete-frame-hook',
[emacs.git] / src / s / netbsd.h
blob7ed08ec05e309b9d10b92321c3fd17642bfc8320
1 /* s/ file for netbsd system. */
3 /* Get most of the stuff from bsd4.3 */
4 #include "bsd4-3.h"
6 #if defined (__alpha__) && !defined (__ELF__)
7 #define NO_SHARED_LIBS
8 #endif
10 /* For mem-limits.h. */
11 #define BSD4_2
13 #undef KERNEL_FILE
14 #undef LDAV_SYMBOL
15 #define HAVE_GETLOADAVG 1
17 #define HAVE_UNION_WAIT
19 #define SIGNALS_VIA_CHARACTERS
21 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
23 /* netbsd uses OXTABS instead of the expected TAB3. */
24 #define TABDLY OXTABS
25 #define TAB3 OXTABS
27 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
28 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
30 #define HAVE_TERMIOS
31 #define NO_TERMIO
33 #define LIBS_DEBUG
34 /* -lutil is not needed for NetBSD >0.9. */
35 /* #define LIBS_SYSTEM -lutil */
36 #define LIBS_TERMCAP -ltermcap
38 #define NEED_ERRNO
39 #define SYSV_SYSTEM_DIR
41 /* Netbsd has POSIX-style pgrp behavior. */
42 #undef BSD_PGRPS
44 #define GETPGRP_NO_ARG
46 #if !defined (NO_SHARED_LIBS) && ! defined (__ELF__)
47 /* These definitions should work for either dynamic or static linking,
48 whichever is the default for `cc -nostdlib'. */
49 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
50 #define START_FILES pre-crt0.o /usr/lib/crt0.o
51 #define UNEXEC unexsunos4.o
52 #define RUN_TIME_REMAP
54 /* Try to make this work for both 0.9 and >0.9. */
55 #ifndef N_TRELOFF
56 #define N_PAGSIZ(x) __LDPGSZ
57 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
58 #define N_TRELOFF(x) N_RELOFF(x)
59 #endif
60 #endif /* not NO_SHARED_LIBS and not ELF */
62 #if !defined (NO_SHARED_LIBS) && defined (__ELF__)
63 #define START_FILES pre-crt0.o /usr/lib/crt0.o /usr/lib/crtbegin.o
64 #define UNEXEC unexelf.o
65 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o
66 #undef LIB_GCC
67 #define LIB_GCC
68 #endif
70 #define HAVE_WAIT_HEADER
71 #define WAIT_USE_INT
73 #define AMPERSAND_FULL_NAME
75 #ifdef __ELF__
76 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
77 says where to find X windows at run time. We convert it to a -rpath option
78 which is what OSF1 uses. */
79 #define LD_SWITCH_SYSTEM_tmp `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
80 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_tmp -Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
82 /* The following is needed to make `configure' find Xpm, Xaw3d and
83 image include and library files if using /usr/bin/gcc. That
84 compiler seems to be modified to not find headers in
85 /usr/local/include or libs in /usr/local/lib by default. */
87 #define C_SWITCH_SYSTEM -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib
89 #endif /* __ELF__ */
91 /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
92 the library search parth, i.e. it won't search /usr/lib
93 for libc and friends. Using -nostartfiles instead avoids
94 this problem, and will also work on earlier NetBSD releases */
96 #define LINKER $(CC) -nostartfiles
98 #define NARROWPROTO 1
100 #define DEFAULT_SOUND_DEVICE "/dev/audio"
102 /* Greg A. Woods <woods@weird.com> says we must include signal.h
103 before syssignal.h is included, to work around interface conflicts
104 that are handled with CPP __RENAME() macro in signal.h. */
106 #ifndef NOT_C_CODE
107 #include <signal.h>
108 #endif
110 /* Don't close pty in process.c to make it as controlling terminal.
111 It is already a controlling terminal of subprocess, because we did
112 ioctl TIOCSCTTY. */
114 #define DONT_REOPEN_PTY
116 /* Tell that garbage collector that setjmp is known to save all
117 registers relevant for conservative garbage collection in the
118 jmp_buf. */
120 #define GC_SETJMP_WORKS 1
122 /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method. */
124 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS