aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-07 07:58:18 +0000
committerRichard M. Stallman1994-08-07 07:58:18 +0000
commitda6aae60a479603fbe762d14409492fba6a3e10a (patch)
treea27db4249e75045ffc0573c1f35c281379ddf1e5 /src
parent98b29a3edb9e2198fed7b3d60faf907a0fa121ed (diff)
downloademacs-da6aae60a479603fbe762d14409492fba6a3e10a.tar.gz
emacs-da6aae60a479603fbe762d14409492fba6a3e10a.zip
(PTY_TTY_NAME_SPRINTF): New definition.
(sigsetmask): Add #undef. (SOLARIS2_4): Defined. Discard old contents of file. Instead, undef C_SWITCH_SYSTEM and const, so that we use GCC without -traditional. (HAVE_VFORK): Defined.
Diffstat (limited to 'src')
-rw-r--r--src/s/sol2-4.h36
1 files changed, 30 insertions, 6 deletions
diff --git a/src/s/sol2-4.h b/src/s/sol2-4.h
index e2ed1181264..1a05089b215 100644
--- a/src/s/sol2-4.h
+++ b/src/s/sol2-4.h
@@ -1,11 +1,35 @@
1/* Handle Solaris 2.4. */ 1/* Handle Solaris 2.4. */
2 2
3#include "sol2-3.h"
4
5#define SOLARIS2_4
6
7/* Get rid of -traditional and let const really do its thing. */
8
3#ifdef __GNUC__ 9#ifdef __GNUC__
4#ifdef i386 10#undef C_SWITCH_SYSTEM
5/* Since we use gcc -traditional, we have to work around a bogus "volatile" in 11#undef const
6 <sys/machlock.h>. Must do this before #include "sol2-3.h". */
7#define volatile
8#endif /* i386 */
9#endif /* __GNUC__ */ 12#endif /* __GNUC__ */
10 13
11#include "sol2-3.h" 14#define HAVE_VFORK
15
16/* solaris does POSIX signals. this bit is from s/usg-5-4-2.h */
17
18#define POSIX_SIGNALS
19#undef sigsetmask
20#undef PTY_TTY_NAME_SPRINTF
21#define PTY_TTY_NAME_SPRINTF \
22 { \
23 char *ptsname(), *ptyname; \
24 \
25 sigblock(sigmask(SIGCLD)); \
26 if (grantpt(fd) == -1) \
27 fatal("could not grant slave pty"); \
28 sigunblock(sigmask(SIGCLD)); \
29 if (unlockpt(fd) == -1) \
30 fatal("could not unlock slave pty"); \
31 if (!(ptyname = ptsname(fd))) \
32 fatal ("could not enable slave pty"); \
33 strncpy(pty_name, ptyname, sizeof(pty_name)); \
34 pty_name[sizeof(pty_name) - 1] = 0; \
35 }