Mercurial > emacs
annotate src/s/usg5-4.h @ 108882:3ff97bad1c47
Move UNEXEC definition to autoconf.
* configure.in (unxec): Do not define and substitute.
(UNEXEC_OBJ): New output variable, replaces cpp UNEXEC.
* msdos/sed1v2.inp (UNEXEC_OBJ): Use UNEXEC_OBJ instead of unexec.
* src/s/usg5-4.h (UNEXEC): Remove, move to configure.in.
* src/s/sol2-10.h (UNEXEC):
* src/s/irix6-5.h (UNEXEC):
* src/s/hpux10-20.h (UNEXEC):
* src/s/gnu-linux.h (UNEXEC):
* src/s/darwin.h (UNEXEC):
* src/s/cygwin.h (UNEXEC):
* src/s/bsd-common.h (UNEXEC):
* src/s/aix4-2.h (UNEXEC):
* src/m/alpha.h (UNEXEC): Likewise.
* src/Makefile.in (UNEXEC_OBJ): Define using @UNEXEC_OBJ@.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Thu, 03 Jun 2010 15:16:02 -0700 |
parents | 4e8dcb0d6fe0 |
children | d86e65007470 |
rev | line source |
---|---|
456 | 1 /* Definitions file for GNU Emacs running on AT&T's System V Release 4 |
108310
17d73312ed65
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108274
diff
changeset
|
2 |
17d73312ed65
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108274
diff
changeset
|
3 Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005, |
17d73312ed65
Move TERMINFO, LIBS_TERMCAP from cpp to configure.
Glenn Morris <rgm@gnu.org>
parents:
108274
diff
changeset
|
4 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. |
456 | 5 |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
6 Written by James Van Artsdalen of Dell Computer Corp. james@bigtex.cactus.org. |
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
7 Subsequently improved for Dell 2.2 by Eric S. Raymond <esr@snark.thyrsus.com>. |
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
8 |
456 | 9 This file is part of GNU Emacs. |
10 | |
94715
1f134b61867c
Switch to recommended form of GPLv3 permissions notice.
Glenn Morris <rgm@gnu.org>
parents:
87649
diff
changeset
|
11 GNU Emacs is free software: you can redistribute it and/or modify |
1039 | 12 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:
87649
diff
changeset
|
13 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:
87649
diff
changeset
|
14 (at your option) any later version. |
456 | 15 |
1039 | 16 GNU Emacs is distributed in the hope that it will be useful, |
17 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 GNU General Public License for more details. | |
20 | |
21 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:
87649
diff
changeset
|
22 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ |
456 | 23 |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
24 /* Use the SysVr3 file for at least base configuration. */ |
96303 | 25 #define USG /* System III, System V, etc */ |
456 | 26 |
96303 | 27 #define USG5 |
456 | 28 #define USG5_4 |
29 | |
96303 | 30 /* SYSTEM_TYPE should indicate the kind of system you are using. |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
31 It sets the Lisp variable system-type. */ |
96303 | 32 #define SYSTEM_TYPE "usg-unix-v" |
33 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
34 /* Define HAVE_TERMIO if the system provides sysV-style ioctls |
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
35 for terminal control. */ |
96303 | 36 #define HAVE_TERMIO |
456 | 37 |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
38 /* Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir library |
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
39 functions. Almost, but not quite the same as the 4.2 functions. */ |
96303 | 40 #define SYSV_SYSTEM_DIR |
41 | |
42 /* The file containing the kernel's symbol table is called /unix. */ | |
43 #define KERNEL_FILE "/unix" | |
44 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
45 /* The kernel symbol where the load average is found is named avenrun. */ |
96303 | 46 #define LDAV_SYMBOL "avenrun" |
47 | |
48 /* setjmp and longjmp can safely replace _setjmp and _longjmp, | |
49 but they will run slower. */ | |
50 #define _setjmp setjmp | |
51 #define _longjmp longjmp | |
4336
96d3869ae231
(bzero, bcmp, bcopy): New macros.
Richard M. Stallman <rms@gnu.org>
parents:
4295
diff
changeset
|
52 |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
53 /* On USG systems these have different names. */ |
96303 | 54 #ifndef HAVE_INDEX |
55 #define index strchr | |
56 #endif /* ! defined (HAVE_INDEX) */ | |
57 #ifndef HAVE_RINDEX | |
58 #define rindex strrchr | |
59 #endif /* ! defined (HAVE_RINDEX) */ | |
60 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
61 /* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */ |
96303 | 62 #define HAVE_SYSV_SIGPAUSE |
63 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
64 /* If we're using the System V X port, BSD bstring functions will be handy. */ |
96303 | 65 #ifdef HAVE_X_WINDOWS |
66 #define BSTRING | |
67 #endif /* HAVE_X_WINDOWS */ | |
68 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
69 /* On USG systems signal handlers return void. */ |
96303 | 70 #define SIGTYPE void |
71 | |
456 | 72 #undef COFF |
73 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
74 /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars. |
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
75 But get <termio.h> first to make sure ttold.h doesn't interfere. |
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
76 And don't try to use SIGIO yet. */ |
13466
e31afd8b6355
Always include sys/wait.h unless NOT_C_CODE;
Richard M. Stallman <rms@gnu.org>
parents:
12734
diff
changeset
|
77 #include <sys/wait.h> |
e31afd8b6355
Always include sys/wait.h unless NOT_C_CODE;
Richard M. Stallman <rms@gnu.org>
parents:
12734
diff
changeset
|
78 |
456 | 79 #ifdef emacs |
80 #include <sys/filio.h> | |
81 #include <termio.h> | |
82 #include <sys/ttold.h> | |
83 #include <signal.h> | |
1039 | 84 #include <sys/stream.h> |
85 #include <sys/stropts.h> | |
86 #include <sys/termios.h> | |
26090 | 87 #define BROKEN_SIGIO |
456 | 88 #endif |
89 | |
2116
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
90 /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments; |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
91 instead, there's a system variable _sys_nsig. Unfortunately, we need the |
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
92 constant to dimension an array. So wire in the appropriate value here. */ |
26090 | 93 #define NSIG_MINIMUM 32 |
2116
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
94 |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
95 /* We can support this. */ |
456 | 96 #define CLASH_DETECTION |
97 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
98 /* Define HAVE_PTYS if the system supports pty devices. */ |
456 | 99 #define HAVE_PTYS |
2116
76df2de3dd55
* s/usg5-4.h: Changes from Eric Raymond:
Jim Blandy <jimb@redhat.com>
parents:
1868
diff
changeset
|
100 #define HAVE_TERMIOS |
456 | 101 |
102 /* It is possible to receive SIGCHLD when there are no children | |
103 waiting, because a previous waitsys(2) cleaned up the carcass of child | |
104 without clearing the SIGCHLD pending info. So, use a non-blocking | |
105 wait3 instead, which maps to waitpid(2) in SysVr4. */ | |
106 #define wait3(status, options, rusage) \ | |
8283
32427329c42c
(PTY_TTY_NAME_SPRINTF): Fail smoothly if cannot get pty.
Richard M. Stallman <rms@gnu.org>
parents:
7947
diff
changeset
|
107 waitpid ((pid_t) -1, (status), (options)) |
456 | 108 #define WRETCODE(w) (w >> 8) |
109 | |
110 /* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY | |
111 subprocesses the usual way. But TIOCSIGNAL does work for PTYs, and | |
112 this is all we need. */ | |
113 #define TIOCSIGSEND TIOCSIGNAL | |
114 | |
115 /* This change means that we don't loop through allocate_pty too many | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
116 times in the (rare) event of a failure. */ |
456 | 117 #define FIRST_PTY_LETTER 'z' |
118 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
119 /* This sets the name of the master side of the PTY. */ |
456 | 120 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx"); |
121 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
122 /* Push various streams modules onto a PTY channel. */ |
456 | 123 #define SETUP_SLAVE_PTY \ |
124 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \ | |
125 fatal ("ioctl I_PUSH ptem", errno); \ | |
126 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ | |
127 fatal ("ioctl I_PUSH ldterm", errno); \ | |
128 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \ | |
129 fatal ("ioctl I_PUSH ttcompat", errno); | |
130 | |
108511
f8e62c2bf3e9
Reformat some comments in src/s/*.h.
Glenn Morris <rgm@gnu.org>
parents:
108310
diff
changeset
|
131 /* This definition was suggested for next release. So give it a try. */ |
1039 | 132 #define HAVE_SOCKETS |
4336
96d3869ae231
(bzero, bcmp, bcopy): New macros.
Richard M. Stallman <rms@gnu.org>
parents:
4295
diff
changeset
|
133 |
52401 | 134 /* arch-tag: 1a0ed909-5faa-434b-b7c3-9d86c63d53a6 |
135 (do not change this comment) */ |