annotate src/s/freebsd.h @ 28572:34472501a68c

(TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 13 Apr 2000 19:10:25 +0000
parents e24d2e75dea0
children 9e0cd0f9571f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
1 /* s/ file for freebsd system. */
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
2
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
3 /* Get the correct __FreeBSD_version, even if this is before that was
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
4 defined. */
25470
06fcafae7d56 (__FreeBSD_version): Don't define it if it is
Gerd Moellmann <gerd@gnu.org>
parents: 25457
diff changeset
5 #ifndef __FreeBSD_version
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
6 #ifndef __FreeBSD__
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
7 #define __FreeBSD_version 199401
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
8 #elif __FreeBSD__ == 1
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
9 #define __FreeBSD_version 199405
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
10 #else
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
11 #include <osreldate.h>
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
12 #endif
25470
06fcafae7d56 (__FreeBSD_version): Don't define it if it is
Gerd Moellmann <gerd@gnu.org>
parents: 25457
diff changeset
13 #endif /* !defined __FreeBSD_version */
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
14
6930
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
15 /* '__FreeBSD__' is defined by the preprocessor on FreeBSD-1.1 and up.
8869
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
16 Earlier versions do not have shared libraries, so inhibit them.
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
17 You can inhibit them on newer systems if you wish
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
18 by defining NO_SHARED_LIBS. */
6930
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
19 #ifndef __FreeBSD__
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
20 #define NO_SHARED_LIBS
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
21 #endif
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
22
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
23
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
24 #if 0 /* This much, alone, seemed sufficient as of 19.23.
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
25 But it seems better to be independent of netbsd.h. */
6930
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
26 #include "netbsd.h"
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
27
6930
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
28 #undef LIB_GCC
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
29 #define LIB_GCC -lgcc
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
30 #undef NEED_ERRNO
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
31 #endif /* 0 */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
32
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
33
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
34 /* Get most of the stuff from bsd4.3 */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
35 #include "bsd4-3.h"
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
36
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
37 /* For mem-limits.h. */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
38 #define BSD4_2
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
39
9930
3b0788d087b6 (LD_SWITCH_SYSTEM): Add -dc and -dp.
Richard M. Stallman <rms@gnu.org>
parents: 9495
diff changeset
40 /* These aren't needed, since we have getloadavg. */
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
41 #undef KERNEL_FILE
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
42 #undef LDAV_SYMBOL
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
43
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
44 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
45
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
46 #define LIBS_DEBUG
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
47 #define LIBS_SYSTEM -lutil
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
48 #define LIBS_TERMCAP -ltermcap
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
49
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
50 #define SYSV_SYSTEM_DIR
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
51
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
52 /* freebsd has POSIX-style pgrp behavior. */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
53 #undef BSD_PGRPS
11738
cb413eec7a2f (GETPGRP_NO_ARG): Defined
Richard M. Stallman <rms@gnu.org>
parents: 9930
diff changeset
54 #define GETPGRP_NO_ARG
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
55
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
56 #ifdef __ELF__
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
57
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
58 #define LD_SWITCH_SYSTEM
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
59 #define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
60 #define UNEXEC unexelf.o
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
61 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o /usr/lib/crtn.o
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
62 #undef LIB_GCC
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
63 #define LIB_GCC
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
64
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
65 #else /* not __ELF__ */
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
66
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
67 #ifndef NO_SHARED_LIBS
23078
18d2ab8a8a62 (LD_SWITCH_SYSTEM): Delete -dp.
Richard M. Stallman <rms@gnu.org>
parents: 22976
diff changeset
68 #define LD_SWITCH_SYSTEM -e start -dc
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
69 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
70 #if __FreeBSD_version >= 300002
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
71 #define START_FILES pre-crt0.o /usr/lib/aout/crt0.o
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
72 #else /* __FreeBSD_version < 300002 */
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
73 #define START_FILES pre-crt0.o /usr/lib/crt0.o
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
74 #endif /* __FreeBSD_version < 300002 */
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
75 #define UNEXEC unexsunos4.o
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
76 #define RUN_TIME_REMAP
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
77 #define LIB_GCC -lgcc
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
78
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
79 #ifndef N_TRELOFF
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
80 #define N_PAGSIZ(x) __LDPGSZ
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
81 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
82 #define N_TRELOFF(x) N_RELOFF(x)
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
83 #endif
8869
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
84 #else /* NO_SHARED_LIBS */
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
85 #ifdef __FreeBSD__ /* shared libs are available, but the user prefers
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
86 not to use them. */
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
87 #define LD_SWITCH_SYSTEM -Bstatic
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
88 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
89 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
90 #endif /* __FreeBSD__ */
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
91 #endif /* NO_SHARED_LIBS */
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
92
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
93 #endif /* not __ELF__ */
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
94
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
95 #define HAVE_WAIT_HEADER
26110
67a319d57afd (HAVE_GETLOADAVG): Define as 1 because config.h defines it that way.
Gerd Moellmann <gerd@gnu.org>
parents: 25470
diff changeset
96 #define HAVE_GETLOADAVG 1
25032
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
97 #if 0
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
98 #define HAVE_GETPAGESIZE /* configure now puts this in config.h */
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
99 #endif
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
100 #define HAVE_TERMIOS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
101 #define NO_TERMIO
8869
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
102 #define DECLARE_GETPWUID_WITH_UID_T
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
103
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
104 /* freebsd uses OXTABS instead of the expected TAB3. */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
105 #define TABDLY OXTABS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
106 #define TAB3 OXTABS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
107
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
108 /* this silences a few compilation warnings */
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
109 #undef BSD_SYSTEM
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
110 #if __FreeBSD__ == 1
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
111 #define BSD_SYSTEM 199103
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
112 #elif __FreeBSD__ == 2
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
113 #define BSD_SYSTEM 199306
24616
a647cbfb4169 (BSD_SYSTEM): Define for FreeBSD 4 as with FreeBSD 3.
Karl Heuer <kwzh@gnu.org>
parents: 23078
diff changeset
114 #elif __FreeBSD__ >= 3
17351
e53338c19ba5 (BSD_SYSTEM): Alternate definition for FreeBSD v3.
Richard M. Stallman <rms@gnu.org>
parents: 16220
diff changeset
115 #define BSD_SYSTEM 199506
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
116 #endif
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
117
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
118 #define WAITTYPE int
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
119 /* get this since it won't be included if WAITTYPE is defined */
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
120 #ifdef emacs
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
121 #include <sys/wait.h>
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
122 #endif
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
123 #define WRETCODE(w) (_W_INT(w) >> 8)
14493
9b8b46e18f97 (vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents: 13017
diff changeset
124
9b8b46e18f97 (vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents: 13017
diff changeset
125 /* Needed to avoid hanging when child process writes an error message
9b8b46e18f97 (vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents: 13017
diff changeset
126 and exits -- enami tsugutomo <enami@ba2.so-net.or.jp>. */
9b8b46e18f97 (vfork): Define as fork.
Richard M. Stallman <rms@gnu.org>
parents: 13017
diff changeset
127 #define vfork fork
15367
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
128
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
129 /* Don't close pty in process.c to make it as controlling terminal.
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
130 It is already a controlling terminal of subprocess, because we did
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
131 ioctl TIOCSCTTY. */
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
132 #define DONT_REOPEN_PTY
19071
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
133
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
134 /* CLASH_DETECTION is defined in bsd4-3.h.
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
135 In FreeBSD 2.1.5 (and other 2.1.x), this results useless symbolic links
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
136 remaining in /tmp or other directories with +t bit.
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
137 To avoid this problem, you could #undef it to use no file lock. */
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
138 /* #undef CLASH_DETECTION */
25032
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
139
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
140 /* If the system's imake configuration file defines `NeedWidePrototypes'
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
141 as `NO', we must define NARROWPROTO manually. Such a define is
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
142 generated in the Makefile generated by `xmkmf'. If we don't
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
143 define NARROWPROTO, we will see the wrong function prototypes
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
144 for X functions taking float or double parameters. */
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
145
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
146 #define NARROWPROTO 1
25457
7b6e8532268b (C_SWITCH_SYSTEM): Added to let configure find headers
Gerd Moellmann <gerd@gnu.org>
parents: 25032
diff changeset
147
27169
88db110ec82e (C_SWITCH_SYSTEM): Add -I /usr/local/include and
Gerd Moellmann <gerd@gnu.org>
parents: 26110
diff changeset
148 /* The following is needed to make `configure' find Xpm, Xaw3d and
88db110ec82e (C_SWITCH_SYSTEM): Add -I /usr/local/include and
Gerd Moellmann <gerd@gnu.org>
parents: 26110
diff changeset
149 image include and library files if using /usr/bin/gcc. That
88db110ec82e (C_SWITCH_SYSTEM): Add -I /usr/local/include and
Gerd Moellmann <gerd@gnu.org>
parents: 26110
diff changeset
150 compiler seems to be modified to not find headers in
88db110ec82e (C_SWITCH_SYSTEM): Add -I /usr/local/include and
Gerd Moellmann <gerd@gnu.org>
parents: 26110
diff changeset
151 /usr/local/include or libs in /usr/local/lib by default. */
25457
7b6e8532268b (C_SWITCH_SYSTEM): Added to let configure find headers
Gerd Moellmann <gerd@gnu.org>
parents: 25032
diff changeset
152
27169
88db110ec82e (C_SWITCH_SYSTEM): Add -I /usr/local/include and
Gerd Moellmann <gerd@gnu.org>
parents: 26110
diff changeset
153 #define C_SWITCH_SYSTEM -I /usr/X11R6/include -I /usr/local/include -L /usr/local/lib
27706
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
154
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
155 /* Circumvent a bug in FreeBSD. In the following sequence of
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
156 writes/reads on a PTY, read(2) returns bogus data:
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
157
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
158 write(2) 1022 bytes
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
159 write(2) 954 bytes, get EAGAIN
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
160 read(2) 1024 bytes in process_read_output
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
161 read(2) 11 bytes in process_read_output
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
162
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
163 That is, read(2) returns more bytes than have ever been written
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
164 successfully. The 1033 bytes read are the 1022 bytes written
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
165 successfully after processing (for example with CRs added if the
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
166 terminal is set up that way which it is here). The same bytes will
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
167 be seen again in a later read(2), without the CRs. */
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
168
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
169 #define BROKEN_PTY_READ_AFTER_EAGAIN 1
28364
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
170
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
171 /* Tell that garbage collector that setjmp is known to save all
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
172 registers relevant for conservative garbage collection in the
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
173 jmp_buf. */
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
174
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
175 #define GC_SETJMP_WORKS 1
28572
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
176
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
177 /* In FreeBSD 4, we must use terminfo.o instead of tparam.o. Termcap
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
178 capabilities use %-specifiers that tparm.o cannot handle.
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
179 Libtermcap.a contains a `tparm' that terminfo.c can use. */
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
180
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
181 #if __FreeBSD__ >= 4
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
182 #define TERMCAP_OBJ terminfo.o
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
183 #endif