annotate src/s/netbsd.h @ 84887:786766804015

(calc-full-help): Use `mapc' rather than `mapcar'.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 26 Sep 2007 00:06:05 +0000
parents f06998349cfc
children 68df465b9550 f55f9811f5d7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
1 /* s/ file for netbsd system.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
2
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
3 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006,
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
4 2007 Free Software Foundation, Inc.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
5
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
6 This file is part of GNU Emacs.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
7
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
8 GNU Emacs is free software; you can redistribute it and/or modify
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
9 it under the terms of the GNU General Public License as published by
78259
f06998349cfc Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75942
diff changeset
10 the Free Software Foundation; either version 3, or (at your option)
75942
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
11 any later version.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
12
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
13 GNU Emacs is distributed in the hope that it will be useful,
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
16 GNU General Public License for more details.
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
17
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
18 You should have received a copy of the GNU General Public License
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
19 along with GNU Emacs; see the file COPYING. If not, write to
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
21 Boston, MA 02110-1301, USA. */
c365fcdf7c2a Add copyright and license notice. Copyright years copied from base
Glenn Morris <rgm@gnu.org>
parents: 73704
diff changeset
22
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
23
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
24 /* Get most of the stuff from bsd4.3 */
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
25 #include "bsd4-3.h"
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
26
18121
23ee33de4cca (NO_SHARED_LIBS): Test __alpha__ && ! __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18102
diff changeset
27 #if defined (__alpha__) && !defined (__ELF__)
18102
d419ea48f00e [__alpha__] (NO_SHARED_LIBS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 14618
diff changeset
28 #define NO_SHARED_LIBS
d419ea48f00e [__alpha__] (NO_SHARED_LIBS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 14618
diff changeset
29 #endif
d419ea48f00e [__alpha__] (NO_SHARED_LIBS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 14618
diff changeset
30
5902
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
31 /* For mem-limits.h. */
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
32 #define BSD4_2
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
33
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
34 #undef KERNEL_FILE
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
35 #undef LDAV_SYMBOL
28640
7f198d98ac14 Revert HAVE_GETLOADAVG changes.
Dave Love <fx@gnu.org>
parents: 28593
diff changeset
36 #define HAVE_GETLOADAVG 1
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
37
6014
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
38 #define HAVE_UNION_WAIT
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
39
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
40 #define SIGNALS_VIA_CHARACTERS
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
41
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
42 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
43
6014
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
44 /* netbsd uses OXTABS instead of the expected TAB3. */
6861
f8e60e2bd9b3 (TABDLY): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 6401
diff changeset
45 #define TABDLY OXTABS
6014
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
46 #define TAB3 OXTABS
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
47
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
48 #define A_TEXT_OFFSET(x) (sizeof (struct exec))
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
49 #define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
50
6014
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
51 #define HAVE_TERMIOS
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
52 #define NO_TERMIO
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
53
4690
d14a87abdb46 Initial revision
Roland McGrath <roland@gnu.org>
parents:
diff changeset
54 #define LIBS_DEBUG
5902
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
55 /* -lutil is not needed for NetBSD >0.9. */
11336
00320c2e1753 (NO_MATHERR): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 10714
diff changeset
56 /* #define LIBS_SYSTEM -lutil */
5902
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
57 #define LIBS_TERMCAP -ltermcap
5901
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
58
6014
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
59 #define NEED_ERRNO
5901
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
60 #define SYSV_SYSTEM_DIR
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
61
6014
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
62 /* Netbsd has POSIX-style pgrp behavior. */
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
63 #undef BSD_PGRPS
0d370ebc038a (BSD_PGRPS): Add #undef.
Richard M. Stallman <rms@gnu.org>
parents: 5938
diff changeset
64
11705
29064b5e5398 (GETPGRP_NO_ARG): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 11336
diff changeset
65 #define GETPGRP_NO_ARG
29064b5e5398 (GETPGRP_NO_ARG): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 11336
diff changeset
66
20032
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
67 #if !defined (NO_SHARED_LIBS) && ! defined (__ELF__)
5901
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
68 /* These definitions should work for either dynamic or static linking,
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
69 whichever is the default for `cc -nostdlib'. */
5938
db25cb887e22 (BROKEN_START, TEXT_START): Don't define.
Roland McGrath <roland@gnu.org>
parents: 5919
diff changeset
70 #define HAVE_TEXT_START /* No need to define `start_of_text'. */
5901
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
71 #define START_FILES pre-crt0.o /usr/lib/crt0.o
5902
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
72 #define UNEXEC unexsunos4.o
5901
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
73 #define RUN_TIME_REMAP
5902
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
74
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
75 /* Try to make this work for both 0.9 and >0.9. */
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
76 #ifndef N_TRELOFF
5901
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
77 #define N_PAGSIZ(x) __LDPGSZ
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
78 #define N_BSSADDR(x) (N_ALIGN(x, N_DATADDR(x)+x.a_data))
0377de94724d (SYSV_SYSTEM_DIR): Define.
Roland McGrath <roland@gnu.org>
parents: 5334
diff changeset
79 #define N_TRELOFF(x) N_RELOFF(x)
5902
916cd5156aed Use -ltermcap, not Emacs's own version. #undef symbols used for
Charles Hannum <mycroft@gnu.org>
parents: 5901
diff changeset
80 #endif
26163
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
81 #endif /* not NO_SHARED_LIBS and not ELF */
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
82
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
83 #if !defined (NO_SHARED_LIBS) && defined (__ELF__)
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
84 #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o
26163
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
85 #define UNEXEC unexelf.o
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
86 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1
26163
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
87 #undef LIB_GCC
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
88 #define LIB_GCC
99c35bcce8c0 netbsd-elf fixes
Ken Raeburn <raeburn@raeburn.org>
parents: 25032
diff changeset
89 #endif
6368
f18c8a4f7125 (LOCALTIME_CACHE): Define this symbol.
Karl Heuer <kwzh@gnu.org>
parents: 6014
diff changeset
90
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
91 #ifdef HAVE_CRTIN
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
92 #define START_FILES_1 /usr/lib/crti.o
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
93 #define END_FILES_1 /usr/lib/crtn.o
51903
707ddd673f01 (START_FILES_1, END_FILES_1): Always define them.
Richard M. Stallman <rms@gnu.org>
parents: 51878
diff changeset
94 #else
707ddd673f01 (START_FILES_1, END_FILES_1): Always define them.
Richard M. Stallman <rms@gnu.org>
parents: 51878
diff changeset
95 #define START_FILES_1
707ddd673f01 (START_FILES_1, END_FILES_1): Always define them.
Richard M. Stallman <rms@gnu.org>
parents: 51878
diff changeset
96 #define END_FILES_1
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
97 #endif
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
98
6388
c82a7e9ae93b (LD_SWITCH_SYSTEM, HAVE_WAIT_HEADER): Define these.
Karl Heuer <kwzh@gnu.org>
parents: 6368
diff changeset
99 #define HAVE_WAIT_HEADER
10714
a383e6129216 (WAIT_USE_INT): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 8916
diff changeset
100 #define WAIT_USE_INT
11336
00320c2e1753 (NO_MATHERR): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 10714
diff changeset
101
12534
3f869873946a (AMPERSAND_FULL_NAME): Defined.
Karl Heuer <kwzh@gnu.org>
parents: 11705
diff changeset
102 #define AMPERSAND_FULL_NAME
20032
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
103
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
104 #ifdef __ELF__
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
105 /* Here is how to find X Windows. LD_SWITCH_X_SITE_AUX gives an -R option
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
106 says where to find X windows at run time. We convert it to a -rpath option
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
107 which is what OSF1 uses. */
39331
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
108 #define LD_SWITCH_SYSTEM_tmp `echo LD_SWITCH_X_SITE_AUX | sed -e 's/-R/-Wl,-rpath,/'`
45600
5265807751c9 Include /usr/pkg in the run time shared library path.
Eli Zaretskii <eliz@gnu.org>
parents: 39349
diff changeset
109 #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
39331
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
110
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
111 /* The following is needed to make `configure' find Xpm, Xaw3d and
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
112 image include and library files if using /usr/bin/gcc. That
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
113 compiler seems to be modified to not find headers in
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
114 /usr/local/include or libs in /usr/local/lib by default. */
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
115
39349
0ad6378e66d4 (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
Gerd Moellmann <gerd@gnu.org>
parents: 39331
diff changeset
116 #define C_SWITCH_SYSTEM -I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib
39331
8dc9a5e60b4f (C_SWITCH_SYSTEM): Add.
Gerd Moellmann <gerd@gnu.org>
parents: 34472
diff changeset
117
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
118 /* Link temacs with -z nocombreloc so that unexec works right, whether or
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
119 not -z combreloc is the default. GNU ld ignores unknown -z KEYWORD
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
120 switches, so this also works with older versions that don't implement
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
121 -z combreloc. */
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
122
51975
8e3081e72d0c Use -Wl syntax.
Richard M. Stallman <rms@gnu.org>
parents: 51903
diff changeset
123 #define LD_SWITCH_SYSTEM_TEMACS -Wl,-z,nocombreloc
51878
aa3263cb4987 (START_FILES, LIB_STANDARD): Use START_FILES_1, END_FILES_1.
Richard M. Stallman <rms@gnu.org>
parents: 49600
diff changeset
124
20032
8b3f96c4cad1 (LD_SWITCH_SYSTEM): Use -Wl,-rpath if __ELF__.
Richard M. Stallman <rms@gnu.org>
parents: 18121
diff changeset
125 #endif /* __ELF__ */
21475
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
126
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
127 /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
128 the library search parth, i.e. it won't search /usr/lib
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
129 for libc and friends. Using -nostartfiles instead avoids
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
130 this problem, and will also work on earlier NetBSD releases */
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
131
6cc3bb84b60e (LINKER): Add definition.
Karl Heuer <kwzh@gnu.org>
parents: 20032
diff changeset
132 #define LINKER $(CC) -nostartfiles
25032
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 21475
diff changeset
133
ae314c884db0 (NARROWPROTO): New.
Gerd Moellmann <gerd@gnu.org>
parents: 21475
diff changeset
134 #define NARROWPROTO 1
30079
1572612184fc Sound support for NetBSD through "Linux emulation" support:
Ken Raeburn <raeburn@raeburn.org>
parents: 29430
diff changeset
135
1572612184fc Sound support for NetBSD through "Linux emulation" support:
Ken Raeburn <raeburn@raeburn.org>
parents: 29430
diff changeset
136 #define DEFAULT_SOUND_DEVICE "/dev/audio"
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
137
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
138 /* Greg A. Woods <woods@weird.com> says we must include signal.h
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
139 before syssignal.h is included, to work around interface conflicts
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
140 that are handled with CPP __RENAME() macro in signal.h. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
141
31524
3935d834ff04 s/netbsd.h: NO_C_SOURCE->NOT_C_CODE
Ken Raeburn <raeburn@raeburn.org>
parents: 31332
diff changeset
142 #ifndef NOT_C_CODE
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
143 #include <signal.h>
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
144 #endif
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
145
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
146 /* Don't close pty in process.c to make it as controlling terminal.
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
147 It is already a controlling terminal of subprocess, because we did
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
148 ioctl TIOCSCTTY. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
149
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
150 #define DONT_REOPEN_PTY
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45600
diff changeset
151
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
152 /* Tell that garbage collector that setjmp is known to save all
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
153 registers relevant for conservative garbage collection in the
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
154 jmp_buf. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
155
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
156 #define GC_SETJMP_WORKS 1
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 45600
diff changeset
157
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
158 /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method. */
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
159
34472
76076c5b2009 (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS instead of `1'.
Gerd Moellmann <gerd@gnu.org>
parents: 31524
diff changeset
160 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
31332
9a247156dd7e Include <signal.h>.
Gerd Moellmann <gerd@gnu.org>
parents: 30079
diff changeset
161
73704
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
162 /* Use sigprocmask and friends instead of sigblock;
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
163 sigblock is considered obsolete on NetBSD. */
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
164
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
165 #define POSIX_SIGNALS 1
7140475b8095 (POSIX_SIGNALS): Defined.
Richard M. Stallman <rms@gnu.org>
parents: 52401
diff changeset
166
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51975
diff changeset
167 /* arch-tag: e80f364a-04e9-4faf-93cb-f36a0fe95c81
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 51975
diff changeset
168 (do not change this comment) */