aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/s/freebsd.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/src/s/freebsd.h b/src/s/freebsd.h
index 76d3d5047f7..27a29d5f8e2 100644
--- a/src/s/freebsd.h
+++ b/src/s/freebsd.h
@@ -6,8 +6,76 @@
6#define NO_SHARED_LIBS 6#define NO_SHARED_LIBS
7#endif 7#endif
8 8
9
10#if 0 /* This much, alone, seemed sufficient as of 19.23.
11 But it seems better to be independent of netbsd.h. */
9#include "netbsd.h" 12#include "netbsd.h"
10 13
11#undef LIB_GCC 14#undef LIB_GCC
12#define LIB_GCC -lgcc 15#define LIB_GCC -lgcc
13#undef NEED_ERRNO 16#undef NEED_ERRNO
17#endif /* 0 */
18
19
20/* Get most of the stuff from bsd4.3 */
21#include "bsd4-3.h"
22
23/* For mem-limits.h. */
24#define BSD4_2
25
26/* thses aren't needed, since we have getloadavg() */
27#undef KERNEL_FILE
28#undef LDAV_SYMBOL
29
30#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
31
32#define A_TEXT_OFFSET(x) (sizeof (struct exec))
33#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
34
35#define LIBS_DEBUG
36#define LIBS_SYSTEM -lutil
37#define LIBS_TERMCAP -ltermcap
38#define LIB_GCC -lgcc
39
40/* Reread the time zone on startup. */
41#define LOCALTIME_CACHE
42
43#define SYSV_SYSTEM_DIR
44
45/* freebsd has POSIX-style pgrp behavior. */
46#undef BSD_PGRPS
47
48#ifndef NO_SHARED_LIBS
49/* These definitions should work for either dynamic or static linking,
50 whichever is the default for `cc -nostdlib'. */
51#define HAVE_TEXT_START /* No need to define `start_of_text'. */
52#define START_FILES pre-crt0.o /usr/lib/crt0.o
53#define UNEXEC unexsunos4.o
54#define RUN_TIME_REMAP
55
56#ifndef N_TRELOFF
57#define N_PAGSIZ(x) __LDPGSZ
58#define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
59#define N_TRELOFF(x) N_RELOFF(x)
60#endif
61#endif /* not NO_SHARED_LIBS */
62
63#define HAVE_WAIT_HEADER
64#define HAVE_GETLOADAVG
65#define HAVE_TERMIOS
66#define NO_TERMIO
67
68/* freebsd uses OXTABS instead of the expected TAB3. */
69#define TABDLY OXTABS
70#define TAB3 OXTABS
71
72/* this silences a few compilation warnings */
73#undef BSD
74#define BSD 199103
75
76#define WAITTYPE int
77/* get this since it won't be included if WAITTYPE is defined */
78#ifdef emacs
79#include <sys/wait.h>
80#endif
81#define WRETCODE(w) (_W_INT(w) >> 8)