* files.el (directory-files-no-dot-files-regexp): Doc fix (bug#6298).
[emacs.git] / src / s / usg5-4.h
blob85499fb1124ec6034055be6f7d332c73e7bf4a61
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 /* Define HAVE_TERMIO if the system provides sysV-style ioctls
35 for terminal control. */
36 #define HAVE_TERMIO
38 /* Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir library
39 functions. Almost, but not quite the same as the 4.2 functions. */
40 #define SYSV_SYSTEM_DIR
42 /* The file containing the kernel's symbol table is called /unix. */
43 #define KERNEL_FILE "/unix"
45 /* The kernel symbol where the load average is found is named avenrun. */
46 #define LDAV_SYMBOL "avenrun"
48 /* setjmp and longjmp can safely replace _setjmp and _longjmp,
49 but they will run slower. */
50 #define _setjmp setjmp
51 #define _longjmp longjmp
53 /* On USG systems these have different names. */
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) */
61 /* The docs for system V/386 suggest v.3 has sigpause, so let's try it. */
62 #define HAVE_SYSV_SIGPAUSE
64 /* If we're using the System V X port, BSD bstring functions will be handy. */
65 #ifdef HAVE_X_WINDOWS
66 #define BSTRING
67 #endif /* HAVE_X_WINDOWS */
69 /* On USG systems signal handlers return void. */
70 #define SIGTYPE void
72 /* Undump with ELF. */
73 #undef COFF
75 #define UNEXEC unexelf.o
77 /* Get FIONREAD from <sys/filio.h>. Get <sys/ttold.h> to get struct tchars.
78 But get <termio.h> first to make sure ttold.h doesn't interfere.
79 And don't try to use SIGIO yet. */
80 #ifndef NOT_C_CODE
81 #include <sys/wait.h>
82 #endif
84 #ifdef emacs
85 #include <sys/filio.h>
86 #include <termio.h>
87 #include <sys/ttold.h>
88 #include <signal.h>
89 #include <sys/stream.h>
90 #include <sys/stropts.h>
91 #include <sys/termios.h>
92 #define BROKEN_SIGIO
93 #endif
95 /* Some SVr4s don't define NSIG in sys/signal.h for ANSI environments;
96 instead, there's a system variable _sys_nsig. Unfortunately, we need the
97 constant to dimension an array. So wire in the appropriate value here. */
98 #define NSIG_MINIMUM 32
100 /* We can support this. */
101 #define CLASH_DETECTION
103 /* Define HAVE_PTYS if the system supports pty devices. */
104 #define HAVE_PTYS
105 #define HAVE_TERMIOS
107 /* It is possible to receive SIGCHLD when there are no children
108 waiting, because a previous waitsys(2) cleaned up the carcass of child
109 without clearing the SIGCHLD pending info. So, use a non-blocking
110 wait3 instead, which maps to waitpid(2) in SysVr4. */
111 #define wait3(status, options, rusage) \
112 waitpid ((pid_t) -1, (status), (options))
113 #define WRETCODE(w) (w >> 8)
115 /* TIOCGPGRP is broken in SysVr4, so we can't send signals to PTY
116 subprocesses the usual way. But TIOCSIGNAL does work for PTYs, and
117 this is all we need. */
118 #define TIOCSIGSEND TIOCSIGNAL
120 /* This change means that we don't loop through allocate_pty too many
121 times in the (rare) event of a failure. */
122 #define FIRST_PTY_LETTER 'z'
124 /* This sets the name of the master side of the PTY. */
125 #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
127 /* Push various streams modules onto a PTY channel. */
128 #define SETUP_SLAVE_PTY \
129 if (ioctl (xforkin, I_PUSH, "ptem") == -1) \
130 fatal ("ioctl I_PUSH ptem", errno); \
131 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
132 fatal ("ioctl I_PUSH ldterm", errno); \
133 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
134 fatal ("ioctl I_PUSH ttcompat", errno);
136 /* This definition was suggested for next release. So give it a try. */
137 #define HAVE_SOCKETS
139 /* arch-tag: 1a0ed909-5faa-434b-b7c3-9d86c63d53a6
140 (do not change this comment) */