annotate src/s/gnu-linux.h @ 3824:d7069bd44885

Remove #definition of HAVE_CLOSEDIR; autoconf figures this out.
author Jim Blandy <jimb@redhat.com>
date Fri, 18 Jun 1993 18:58:46 +0000
parents b9d69ed987e7
children f250e1299a74
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
1 /* This file is the configuration file for the Linux operating system.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
2 Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
3
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
4 This file is part of GNU Emacs.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
5
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
6 GNU Emacs is free software; you can redistribute it and/or modify
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
8 the Free Software Foundation; either version 2, or (at your option)
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
9 any later version.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
10
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
11 GNU Emacs is distributed in the hope that it will be useful,
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
14 GNU General Public License for more details.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
15
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
17 along with GNU Emacs; see the file COPYING. If not, write to
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
18 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
19
2940
3c7c3bd60e4f * s/linux.h: Remove copyright notices by Michael K. Johnson and
Jim Blandy <jimb@redhat.com>
parents: 2916
diff changeset
20 /* This file was put together by Michael K. Johnson and Rik Faith. */
3c7c3bd60e4f * s/linux.h: Remove copyright notices by Michael K. Johnson and
Jim Blandy <jimb@redhat.com>
parents: 2916
diff changeset
21
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
22
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
23 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
24 * Define symbols to identify the version of Unix this is.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
25 * Define all the symbols that apply correctly.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
26 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
27
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
28 /* #define UNIPLUS */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
29 /* #define USG5 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
30 #define USG
3335
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
31 /* #define BSD */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
32 #define LINUX
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
33
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
34 /* SYSTEM_TYPE should indicate the kind of system you are using.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
35 It sets the Lisp variable system-type. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
36
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
37 #define SYSTEM_TYPE "linux" /* All the best software is free. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
38
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
39 /* Emacs can read input using SIGIO and buffering characters itself,
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
40 or using CBREAK mode and making C-g cause SIGINT.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
41 The choice is controlled by the variable interrupt_input.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
42 Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
43
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
44 SIGIO can be used only on systems that implement it (4.2 and 4.3).
3591
507f64624555 Apply typo patches from Paul Eggert.
Jim Blandy <jimb@redhat.com>
parents: 3335
diff changeset
45 CBREAK mode has two disadvantages
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
46 1) At least in 4.2, it is impossible to handle the Meta key properly.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
47 I hear that in system V this problem does not exist.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
48 2) Control-G causes output to be discarded.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
49 I do not know whether this can be fixed in system V.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
50
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
51 Another method of doing input is planned but not implemented.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
52 It would have Emacs fork off a separate process
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
53 to read the input and send it to the true Emacs process
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
54 through a pipe.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
55 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
56
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
57 /* There have been suggestions made to add SIGIO to Linux. If this
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
58 is done, you may, at your discretion, uncomment the line below.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
59 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
60
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
61 /* #define INTERRUPT_INPUT */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
62
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
63 /* Letter to use in finding device name of first pty,
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
64 if system supports pty's. 'p' means it is /dev/ptyp0 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
65
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
66 #define FIRST_PTY_LETTER 'p'
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
67
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
68 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
69 * Define HAVE_TERMIOS if the system provides POSIX-style
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
70 * functions and macros for terminal control.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
71 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
72
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
73 #define HAVE_TERMIOS
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
74
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
75 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
76 * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
77 * Look in <sys/time.h> for a timeval structure.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
78 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
79
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
80 #define HAVE_TIMEVAL
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
81
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
82 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
83 * Define HAVE_SELECT if the system supports the `select' system call.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
84 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
85
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
86 #define HAVE_SELECT
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
87
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
88 /*
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
89 * Define HAVE_PTYS if the system supports pty devices.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
90 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
91
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
92 #define HAVE_PTYS
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
93
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
94 /* Uncomment this later when other problems are dealt with -mkj */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
95
3014
a416873d97e5 * s/linux.h (HAVE_DUP2, HAVE_ALLOCA_H): Deleted.
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
96 #define HAVE_SOCKETS
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
97
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
98 /* Define this symbol if your system has the functions bcopy, etc. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
99
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
100 #define BSTRING
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
101
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
102 /* subprocesses should be defined if you want to
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
103 have code for asynchronous subprocesses
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
104 (as used in M-x compile and M-x shell).
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
105 This is generally OS dependent, and not supported
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
106 under most USG systems. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
107
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
108 #define subprocesses
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
109
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
110 /* define MAIL_USE_FLOCK if the mailer uses flock
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
111 to interlock access to /usr/spool/mail/$USER.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
112 The alternative is that a lock file named
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
113 /usr/spool/mail/$USER.lock. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
114
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
115 /* Both are used in Linux by different mail programs. I assume that most
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
116 people are using newer mailers that have heard of flock. Change this
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
117 if you need to. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
118
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
119 #define MAIL_USE_FLOCK
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
120
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
121 /* Define CLASH_DETECTION if you want lock files to be written
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
122 so that Emacs can tell instantly when you try to modify
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
123 a file that someone else has modified in his Emacs. */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
124
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
125 /* #define CLASH_DETECTION */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
126
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
127 /* Here, on a separate page, add any special hacks needed
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
128 to make Emacs work on this system. For example,
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
129 you might define certain system call names that don't
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
130 exist on your system, or that do different things on
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
131 your system and must be used only through an encapsulation
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
132 (Which you should place, by convention, in sysdep.c). */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
133
3335
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
134 /* On POSIX systems the system calls are interruptible by signals
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
135 that the user program has elected to catch. Thus the system call
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
136 must be retried in these cases. To handle this without massive
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
137 changes in the source code, we remap the standard system call names
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
138 to names for our own functions in sysdep.c that do the system call
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
139 with retries. */
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
140
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
141 #define read sys_read
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
142 #define write sys_write
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
143 #define open sys_open
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
144 #define close sys_close
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
145
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
146 #define INTERRUPTIBLE_OPEN
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
147 #define INTERRUPTIBLE_CLOSE
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
148 #define INTERRUPTIBLE_IO
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
149
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
150 /* If you mount the proc file system somewhere other than /proc
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
151 you will have to uncomment the following and make the proper
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
152 changes */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
153
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
154 /* #define LINUX_LDAV_FILE "/proc/loadavg" */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
155
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
156 /* This is needed for disknew.c:update_frame() */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
157
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
158 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_pptr - (FILE)->_pbase)
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
159
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
160 /* Linux has crt0.o in a non-standard place */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
161 #define START_FILES pre-crt0.o /usr/lib/crt0.o
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
162
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
163 /* Linux has SIGIO defined, but not implemented, as of version 0.99.8
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
164 * What an ugly kludge! This will not be necessary if the
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
165 * INTERRUPT_INPUT define gets fully implemented.
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
166 */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
167 #ifdef emacs
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
168 #include <signal.h>
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
169 #undef SIGIO
3335
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
170 #undef signal
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
171 #define signal sys_signal
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
172 #include <values.h>
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
173 #endif
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
174
3014
a416873d97e5 * s/linux.h (HAVE_DUP2, HAVE_ALLOCA_H): Deleted.
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
175 #define HAVE_SETSID
a416873d97e5 * s/linux.h (HAVE_DUP2, HAVE_ALLOCA_H): Deleted.
Jim Blandy <jimb@redhat.com>
parents: 2989
diff changeset
176
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
177 /* This is needed for sysdep.c */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
178
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
179 #define HAVE_UNISTD_H /* for getpagesize.h */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
180 #define NO_SIOCTL_H /* don't have sioctl.h */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
181
3680
6c88b630141b * config.h.in (HAVE_XRMSETDATABASE, HAVE_RANDOM, HAVE_LIBXBSD):
Jim Blandy <jimb@redhat.com>
parents: 3596
diff changeset
182 #if 0 /* autoconf should take care of this. */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
183 #define HAVE_RANDOM /* is builtin */
3680
6c88b630141b * config.h.in (HAVE_XRMSETDATABASE, HAVE_RANDOM, HAVE_LIBXBSD):
Jim Blandy <jimb@redhat.com>
parents: 3596
diff changeset
184 #endif
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
185 #define HAVE_GETPAGESIZE
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
186 #define HAVE_VFORK
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
187 #define HAVE_SYS_SIGLIST
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
188 #define HAVE_GETWD /* cure conflict with getcwd? */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
189
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
190 #define USE_UTIME /* don't have utimes */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
191 #define SYSV_SYSTEM_DIR /* use dirent.h */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
192 #define USG_SYS_TIME /* use sys/time.h, not time.h */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
193
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
194 #define POSIX /* affects only getpagesize.h */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
195 #define POSIX_SIGNALS
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
196
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
197 /* libc-linux/sysdeps/linux/i386/ulimit.c says that due to shared library, */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
198 /* we cannot get the maximum address for brk */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
199 #define ULIMIT_BREAK_VALUE (32*1024*1024)
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
200
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
201 /* Best not to include -lg, unless it is last on the command line */
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
202 #define LIBS_DEBUG
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
203 #define LIBS_TERMCAP -ltermcap -lcurses /* save some space with shared libs*/
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
204 #define LIB_STANDARD -lc /* avoid -lPW */
3279
40cbb2abad94 * linux.h (C_OPTIMIZE_SWITCH): Set this to the empty string;
Jim Blandy <jimb@redhat.com>
parents: 3207
diff changeset
205 #define C_OPTIMIZE_SWITCH /* configure can guess this just fine */
2915
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
206 #ifdef HAVE_X11
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
207 #define LD_SWITCH_SYSTEM -L/usr/X386/lib
2c9dde3bd3a0 Initial revision
Jim Blandy <jimb@redhat.com>
parents:
diff changeset
208 #endif
3207
257a856de952 * s/linux.h (SIGNALS_VIA_CHARACTERS): Try this out for a bit.
Jim Blandy <jimb@redhat.com>
parents: 3154
diff changeset
209
3335
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
210 /* Work around a bug in glibc with _longjmp. */
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
211 #define C_SWITCH_SYSTEM -D_BSD_SOURCE
580d53a2e450 (HAVE_TCATTR): Deleted.
Richard M. Stallman <rms@gnu.org>
parents: 3279
diff changeset
212
3596
9137e78cc171 * s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this.
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
213 /* Let's try this out, just in case.
9137e78cc171 * s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this.
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
214 Nah. Rik Faith <faith@cs.unc.edu> says it doesn't work well. */
9137e78cc171 * s/linux.h (SIGNALS_VIA_CHARACTERS): Don't #define this.
Jim Blandy <jimb@redhat.com>
parents: 3591
diff changeset
215 /* #define SIGNALS_VIA_CHARACTERS */
3729
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
216
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
217 /* Rob Malouf <malouf@csli.stanford.edu> says:
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
218 SYSV IPC is standard a standard part of Linux since version 0.99pl10,
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
219 and is a very common addition to previous versions. */
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
220 #define LIBS_MACHINE -lipc
b9d69ed987e7 * s/linux.h (LIBS_MACHINE, HAVE_SYSVIPC): Set the former to -lipc,
Jim Blandy <jimb@redhat.com>
parents: 3680
diff changeset
221 #define HAVE_SYSVIPC