annotate src/s/freebsd.h @ 96776:5a9289cb119e

* simple.el (line-move-visual): Make it a defcustom. (line-move-1): Convert temporary-goal-column back to an integer if it was set as a float by a previous call to line-move-visual. (end-of-visual-line, beginning-of-visual-line, kill-visual-line) (next-logical-line, previous-logical-line) (turn-on-visual-line-mode): New functions. (visual-line-mode-map): New variable. (visual-line-mode, global-visual-line-mode): New minor mode.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 17 Jul 2008 23:37:38 +0000
parents a2d3c8acc0fe
children c06568fd3844
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36219
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
1 /* System description header for FreeBSD systems.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
2 This file describes the parameters that system description files
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
3 should define or not.
64769
6358e3c6075c Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents: 64083
diff changeset
4 Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
79756
68df465b9550 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78259
diff changeset
5 2003, 2004, 2005, 2006, 2007, 2008
68df465b9550 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78259
diff changeset
6 Free Software Foundation, Inc.
36219
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
7
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
8 This file is part of GNU Emacs.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
9
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
10 GNU Emacs is free software: you can redistribute it and/or modify
36219
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
11 it under the terms of the GNU General Public License as published by
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
12 the Free Software Foundation, either version 3 of the License, or
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
13 (at your option) any later version.
36219
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
14
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
15 GNU Emacs is distributed in the hope that it will be useful,
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
18 GNU General Public License for more details.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
19
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
20 You should have received a copy of the GNU General Public License
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
21 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
22
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
23 /* 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
24 defined. */
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 41858
diff changeset
25 #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
26 #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
27 #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
28 #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
29 #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
30 #else
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
31 #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
32 #endif
25470
06fcafae7d56 (__FreeBSD_version): Don't define it if it is
Gerd Moellmann <gerd@gnu.org>
parents: 25457
diff changeset
33 #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
34
6930
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
35 /* '__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
36 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
37 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
38 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
39 #ifndef __FreeBSD__
4d3971045057 Rewrite to use netbsd.h and define NO_SHARED_LIBS.
Richard M. Stallman <rms@gnu.org>
parents: 6434
diff changeset
40 #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
41 #endif
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
42
96303
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 94715
diff changeset
43 /* Get most of the stuff from bsd-common */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 94715
diff changeset
44 #include "bsd-common.h"
7339
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 /* 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
47 #define BSD4_2
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
48
9930
3b0788d087b6 (LD_SWITCH_SYSTEM): Add -dc and -dp.
Richard M. Stallman <rms@gnu.org>
parents: 9495
diff changeset
49 /* 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
50 #undef KERNEL_FILE
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
51 #undef LDAV_SYMBOL
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
52
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
53 #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
54
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
55 #define LIBS_DEBUG
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
56 #define LIBS_SYSTEM -lutil
28745
b04dc1778dee (TERMCAP_OBJ): Removed.
Gerd Moellmann <gerd@gnu.org>
parents: 28640
diff changeset
57 #if __FreeBSD_version < 400000
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
58 #define LIBS_TERMCAP -ltermcap
52264
bce3e111b233 [__FreeBSD_version >= 400000]: Define TERMINFO, use -lncurses.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
59 #else
bce3e111b233 [__FreeBSD_version >= 400000]: Define TERMINFO, use -lncurses.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
60 #define TERMINFO
bce3e111b233 [__FreeBSD_version >= 400000]: Define TERMINFO, use -lncurses.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
61 #define LIBS_TERMCAP -lncurses
28745
b04dc1778dee (TERMCAP_OBJ): Removed.
Gerd Moellmann <gerd@gnu.org>
parents: 28640
diff changeset
62 #endif
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
63
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
64 #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
65
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
66 /* 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
67 #undef BSD_PGRPS
11738
cb413eec7a2f (GETPGRP_NO_ARG): Defined
Richard M. Stallman <rms@gnu.org>
parents: 9930
diff changeset
68 #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
69
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 #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
71
28596
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
72 #define LD_SWITCH_SYSTEM_1
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
73 #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
74 #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
75 #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
76 #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
77 #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
78
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
79 #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
80
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
81 #ifndef NO_SHARED_LIBS
28596
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
82 #define LD_SWITCH_SYSTEM_1 -e start -dc -L/usr/local/lib
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
83 #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
84 #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
85 #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
86 #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
87 #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
88 #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
89 #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
90 #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
91 #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
92
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
93 #ifndef N_TRELOFF
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
94 #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
95 #endif
8869
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
96 #else /* NO_SHARED_LIBS */
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
97 #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
98 not to use them. */
28596
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
99 #define LD_SWITCH_SYSTEM_1 -Bstatic -L/usr/local/lib
8869
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
100 #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
101 #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
102 #endif /* __FreeBSD__ */
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
103 #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
104
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
105 #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
106
28596
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
107 /* Let `ld' find image libs and similar things in /usr/local/lib. The
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
108 system compiler, GCC, has apparently been modified to not look
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
109 there, contrary to what a stock GCC would do. */
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
110
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
111 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_1 -L/usr/local/lib
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
112
28640
7f198d98ac14 Revert HAVE_GETLOADAVG changes.
Dave Love <fx@gnu.org>
parents: 28596
diff changeset
113 #define HAVE_GETLOADAVG 1
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
114 #define HAVE_TERMIOS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
115 #define NO_TERMIO
8869
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
116 #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
117
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
118 /* 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
119 #define TABDLY OXTABS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
120 #define TAB3 OXTABS
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
121
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
122 /* this silences a few compilation warnings */
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
123 #undef BSD_SYSTEM
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
124 #if __FreeBSD__ == 1
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
125 #define BSD_SYSTEM 199103
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
126 #elif __FreeBSD__ == 2
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
127 #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
128 #elif __FreeBSD__ >= 3
17351
e53338c19ba5 (BSD_SYSTEM): Alternate definition for FreeBSD v3.
Richard M. Stallman <rms@gnu.org>
parents: 16220
diff changeset
129 #define BSD_SYSTEM 199506
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
130 #endif
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
131
15367
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
132 /* 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
133 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
134 ioctl TIOCSCTTY. */
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
135 #define DONT_REOPEN_PTY
19071
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
136
25032
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
137 /* If the system's imake configuration file defines `NeedWidePrototypes'
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
138 as `NO', we must define NARROWPROTO manually. Such a define is
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 41858
diff changeset
139 generated in the Makefile generated by `xmkmf'. If we don't
25032
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
140 define NARROWPROTO, we will see the wrong function prototypes
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
141 for X functions taking float or double parameters. */
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
142
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 24616
diff changeset
143 #define NARROWPROTO 1
25457
7b6e8532268b (C_SWITCH_SYSTEM): Added to let configure find headers
Gerd Moellmann <gerd@gnu.org>
parents: 25032
diff changeset
144
27169
88db110ec82e (C_SWITCH_SYSTEM): Add -I /usr/local/include and
Gerd Moellmann <gerd@gnu.org>
parents: 26110
diff changeset
145 /* 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
146 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
147 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
148 /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
149
28596
f96c5116b2dd (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
Gerd Moellmann <gerd@gnu.org>
parents: 28593
diff changeset
150 #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
151
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
152 /* 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
153 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
154
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
155 write(2) 1022 bytes
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
156 write(2) 954 bytes, get EAGAIN
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
157 read(2) 1024 bytes in process_read_output
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
158 read(2) 11 bytes in process_read_output
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
159
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
160 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
161 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
162 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
163 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
164 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
165
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
166 #define BROKEN_PTY_READ_AFTER_EAGAIN 1
28364
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
167
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
168 /* 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
169 registers relevant for conservative garbage collection in the
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
170 jmp_buf. */
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
171
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
172 #define GC_SETJMP_WORKS 1
28572
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
173
31501
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
174 /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method for marking the
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
175 stack. */
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
176
34472
76076c5b2009 (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS instead of `1'.
Gerd Moellmann <gerd@gnu.org>
parents: 31871
diff changeset
177 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
31501
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
178
31600
ac8c86ff7ee3 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
Gerd Moellmann <gerd@gnu.org>
parents: 31501
diff changeset
179 /* Define USE_MMAP_FOR_BUFFERS to let Emacs use mmap(2) to allocate
ac8c86ff7ee3 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
Gerd Moellmann <gerd@gnu.org>
parents: 31501
diff changeset
180 buffer text. This overrides REL_ALLOC. */
31501
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
181
31600
ac8c86ff7ee3 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
Gerd Moellmann <gerd@gnu.org>
parents: 31501
diff changeset
182 #define USE_MMAP_FOR_BUFFERS 1
31871
576a8de6ffb4 (POSIX_SIGNALS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 31600
diff changeset
183
576a8de6ffb4 (POSIX_SIGNALS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 31600
diff changeset
184 /* Use sigprocmask(2) and friends instead of sigblock(2); the man page
576a8de6ffb4 (POSIX_SIGNALS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 31600
diff changeset
185 of sigblock says it is obsolete. */
576a8de6ffb4 (POSIX_SIGNALS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 31600
diff changeset
186
576a8de6ffb4 (POSIX_SIGNALS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 31600
diff changeset
187 #define POSIX_SIGNALS 1
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52264
diff changeset
188
53149
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
189 /* The `combreloc' setting became the default, and it seems to be
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
190 incompatible with unexec. Symptom is an immediate SEGV in
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
191 XtInitializeWidget when starting Emacs under X11. */
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
192
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
193 #if defined __FreeBSD_version && __FreeBSD_version >= 500042
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
194 #define LD_SWITCH_SYSTEM_TEMACS -znocombreloc
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
195 #endif
ceeb45621964 (LD_SWITCH_SYSTEM_TEMACS)
Gerd Moellmann <gerd@gnu.org>
parents: 52401
diff changeset
196
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52264
diff changeset
197 /* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52264
diff changeset
198 (do not change this comment) */