Rename `image-library-alist' to `dynamic-library-alist'.
[emacs.git] / src / s / usg5-4-common.h
blob4dcb8e50200df6ad111deff3d685e635d0bbf2e9
1 /* Definitions file for GNU Emacs running on AT&T's System V Release 4
3 Copyright (C) 1987, 1990, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
6 Written by James Van Artsdalen of Dell Computer Corp. james@bigtex.cactus.org.
7 Subsequently improved for Dell 2.2 by Eric S. Raymond <esr@snark.thyrsus.com>.
9 This file is part of GNU Emacs.
11 GNU Emacs is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
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.
21 You should have received a copy of the GNU General Public License
22 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
24 /* Use the SysVr3 file for at least base configuration. */
25 #define USG /* System III, System V, etc */
27 #define USG5
28 #define USG5_4
30 /* SYSTEM_TYPE should indicate the kind of system you are using.
31 It sets the Lisp variable system-type. */
32 #define SYSTEM_TYPE "usg-unix-v"
34 /* The file containing the kernel's symbol table is called /unix. */
35 #define KERNEL_FILE "/unix"
37 /* The kernel symbol where the load average is found is named avenrun. */
38 #define LDAV_SYMBOL "avenrun"
40 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
41 but they will run slower. */
42 #define _setjmp setjmp
43 #define _longjmp longjmp
45 /* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */
46 #define HAVE_SYSV_SIGPAUSE
48 /* On USG systems signal handlers return void. */
49 #define SIGTYPE void
51 /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars.
52 But get <termio.h> first to make sure ttold.h doesn't interfere.
53 And don't try to use SIGIO yet. */
54 #include <sys/wait.h>
56 #ifdef emacs
57 #include <sys/filio.h>
58 #include <termio.h>
59 #include <sys/ttold.h>
60 #include <signal.h>
61 #include <sys/stream.h>
62 #include <sys/stropts.h>
63 #include <sys/termios.h>
64 #define BROKEN_SIGIO
65 #endif
67 /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
68 instead, there's a system variable _sys_nsig. Unfortunately, we need the
69 constant to dimension an array. So wire in the appropriate value here. */
70 #define NSIG_MINIMUM 32
72 /* We can support this. */
73 #define CLASH_DETECTION
75 /* Define HAVE_PTYS if the system supports pty devices. */
76 #define HAVE_PTYS
78 /* It is possible to receive SIGCHLD when there are no children
79 waiting, because a previous waitsys(2) cleaned up the carcass of child
80 without clearing the SIGCHLD pending info. So, use a non-blocking
81 wait3 instead, which maps to waitpid(2) in SysVr4. */
82 #define wait3(status, options, rusage) \
83 waitpid ((pid_t) -1, (status), (options))
84 #define WRETCODE(w) (w >> 8)
86 /* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY
87 subprocesses the usual way. But TIOCSIGNAL does work for PTYs, and
88 this is all we need. */
89 #define TIOCSIGSEND TIOCSIGNAL
91 /* This change means that we don't loop through allocate_pty too many
92 times in the (rare) event of a failure. */
93 #define FIRST_PTY_LETTER 'z'
95 /* This sets the name of the master side of the PTY. */
96 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
98 /* Push various streams modules onto a PTY channel. */
99 #define SETUP_SLAVE_PTY \
100 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \
101 fatal ("ioctl I_PUSH ptem", errno); \
102 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
103 fatal ("ioctl I_PUSH ldterm", errno); \
104 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
105 fatal ("ioctl I_PUSH ttcompat", errno);
107 /* This definition was suggested for next release. So give it a try. */
108 #define HAVE_SOCKETS
110 /* arch-tag: 1a0ed909-5faa-434b-b7c3-9d86c63d53a6
111 (do not change this comment) */