annotate src/s/freebsd.h @ 108276:41220cd25ea8

* cua-base.el, cua-gmrk.el: Fix use of `filter-buffer-substring'.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 07 May 2010 02:46:09 +0200
parents 8416c8d075e3
children 9c003610b6fc
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,
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 105956
diff changeset
5 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
79756
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
101089
ffebd75993c5 Comment (add author based on authors.el).
Glenn Morris <rgm@gnu.org>
parents: 100951
diff changeset
8 Author: Shawn M. Carey
ffebd75993c5 Comment (add author based on authors.el).
Glenn Morris <rgm@gnu.org>
parents: 100951
diff changeset
9 (according to authors.el)
ffebd75993c5 Comment (add author based on authors.el).
Glenn Morris <rgm@gnu.org>
parents: 100951
diff changeset
10
36219
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
11 This file is part of GNU Emacs.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
12
94715
1f134b61867c Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents: 79756
diff changeset
13 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
14 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
15 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
16 (at your option) any later version.
36219
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
17
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
18 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
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
21 GNU General Public License for more details.
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
22
f440b9766968 Add copyright notice.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
23 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
24 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
6261
b838645548a0 Initial revision
Karl Heuer <kwzh@gnu.org>
parents:
diff changeset
25
107880
43aef96c6073 * s/freebsd.h: Restore osreldate.h include.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 107442
diff changeset
26 #include <osreldate.h>
43aef96c6073 * s/freebsd.h: Restore osreldate.h include.
Dan Nicolaescu <dann@ics.uci.edu>
parents: 107442
diff changeset
27
96303
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 94715
diff changeset
28 /* Get most of the stuff from bsd-common */
ddedcecb18ef * unexnext.c:
Dan Nicolaescu <dann@ics.uci.edu>
parents: 94715
diff changeset
29 #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
30
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
31 /* 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
32 #define BSD4_2
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 #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
35
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
36 #define LIBS_SYSTEM -lutil
28745
b04dc1778dee (TERMCAP_OBJ): Removed.
Gerd Moellmann <gerd@gnu.org>
parents: 28640
diff changeset
37 #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
38 #define LIBS_TERMCAP -ltermcap
52264
bce3e111b233 [__FreeBSD_version >= 400000]: Define TERMINFO, use -lncurses.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
39 #else
bce3e111b233 [__FreeBSD_version >= 400000]: Define TERMINFO, use -lncurses.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
40 #define TERMINFO
bce3e111b233 [__FreeBSD_version >= 400000]: Define TERMINFO, use -lncurses.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
41 #define LIBS_TERMCAP -lncurses
28745
b04dc1778dee (TERMCAP_OBJ): Removed.
Gerd Moellmann <gerd@gnu.org>
parents: 28640
diff changeset
42 #endif
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
43
96925
c3d63bafd463 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
Dan Nicolaescu <dann@ics.uci.edu>
parents: 96833
diff changeset
44 /* Let `ld' find image libs and similar things in /usr/local/lib. The
c3d63bafd463 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
Dan Nicolaescu <dann@ics.uci.edu>
parents: 96833
diff changeset
45 system compiler, GCC, has apparently been modified to not look
c3d63bafd463 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
Dan Nicolaescu <dann@ics.uci.edu>
parents: 96833
diff changeset
46 there, contrary to what a stock GCC would do. */
c3d63bafd463 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
Dan Nicolaescu <dann@ics.uci.edu>
parents: 96833
diff changeset
47
c3d63bafd463 * s/netbsd.h (A_TEXT_OFFSET, A_TEXT_SEEK):
Dan Nicolaescu <dann@ics.uci.edu>
parents: 96833
diff changeset
48 #define LD_SWITCH_SYSTEM -L/usr/local/lib
22976
f1457fc159c9 (__FreeBSD_version): Define it, or else include osreldate.h to define it.
Richard M. Stallman <rms@gnu.org>
parents: 19071
diff changeset
49 #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
50 #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
51
28640
7f198d98ac14 Revert HAVE_GETLOADAVG changes.
Dave Love <fx@gnu.org>
parents: 28596
diff changeset
52 #define HAVE_GETLOADAVG 1
8869
eff6c7e4e236 (DECLARE_GETPWUID_WITH_UID_T): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 7608
diff changeset
53 #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
54
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
55 /* this silences a few compilation warnings */
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
56 #undef BSD_SYSTEM
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
57 #if __FreeBSD__ == 1
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
58 #define BSD_SYSTEM 199103
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
59 #elif __FreeBSD__ == 2
16220
02044b05d8e0 Replaced symbol BSD with BSD_SYSTEM.
Karl Heuer <kwzh@gnu.org>
parents: 15367
diff changeset
60 #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
61 #elif __FreeBSD__ >= 3
17351
e53338c19ba5 (BSD_SYSTEM): Alternate definition for FreeBSD v3.
Richard M. Stallman <rms@gnu.org>
parents: 16220
diff changeset
62 #define BSD_SYSTEM 199506
9018
e8f02eb00bbf (BSD): Have two definitions according to version number.
Richard M. Stallman <rms@gnu.org>
parents: 8869
diff changeset
63 #endif
7339
b557aa86c53a Don't use netbsd.h. Do all that right here.
Richard M. Stallman <rms@gnu.org>
parents: 6930
diff changeset
64
15367
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
65 /* 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
66 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
67 ioctl TIOCSCTTY. */
179cd20f2f8a (DONT_REOPEN_PTY): New definition.
Richard M. Stallman <rms@gnu.org>
parents: 14493
diff changeset
68 #define DONT_REOPEN_PTY
19071
687bc839bd2c Comment change.
Richard M. Stallman <rms@gnu.org>
parents: 17351
diff changeset
69
27706
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
70 /* 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
71 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
72
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
73 write(2) 1022 bytes
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
74 write(2) 954 bytes, get EAGAIN
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
75 read(2) 1024 bytes in process_read_output
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
76 read(2) 11 bytes in process_read_output
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
77
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
78 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
79 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
80 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
81 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
82 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
83
ea4d20c43442 (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27169
diff changeset
84 #define BROKEN_PTY_READ_AFTER_EAGAIN 1
28364
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
85
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
86 /* 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
87 registers relevant for conservative garbage collection in the
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
88 jmp_buf. */
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
89
e24d2e75dea0 (GC_SETJMP_WORKS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 27706
diff changeset
90 #define GC_SETJMP_WORKS 1
28572
34472501a68c (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
Gerd Moellmann <gerd@gnu.org>
parents: 28364
diff changeset
91
31501
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
92 /* 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
93 stack. */
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
94
34472
76076c5b2009 (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS instead of `1'.
Gerd Moellmann <gerd@gnu.org>
parents: 31871
diff changeset
95 #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
96
31600
ac8c86ff7ee3 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
Gerd Moellmann <gerd@gnu.org>
parents: 31501
diff changeset
97 /* 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
98 buffer text. This overrides REL_ALLOC. */
31501
735123628126 (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 30082
diff changeset
99
31600
ac8c86ff7ee3 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
Gerd Moellmann <gerd@gnu.org>
parents: 31501
diff changeset
100 #define USE_MMAP_FOR_BUFFERS 1
31871
576a8de6ffb4 (POSIX_SIGNALS): Define.
Gerd Moellmann <gerd@gnu.org>
parents: 31600
diff changeset
101
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52264
diff changeset
102 /* arch-tag: 426529ca-b7c4-448f-b10a-d4dcdc9c78eb
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 52264
diff changeset
103 (do not change this comment) */