aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-11 03:42:18 +0000
committerRichard M. Stallman1994-08-11 03:42:18 +0000
commit8d40872b18967a419df4bc10df422928d6e057e1 (patch)
tree10dc463e03e58b5cc36484dad7592a90303cf06e /src
parent35a6034c33e6d58d946cc95580eff4d4cdc77417 (diff)
downloademacs-8d40872b18967a419df4bc10df422928d6e057e1.tar.gz
emacs-8d40872b18967a419df4bc10df422928d6e057e1.zip
(POSIX_SIGNALS, PTY_TTY_NAME_SPRINTF, sigsetmask):
Delete those things (moved to sol2-3.h).
Diffstat (limited to 'src')
-rw-r--r--src/s/sol2-4.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/s/sol2-4.h b/src/s/sol2-4.h
index 21a74ca3520..b4d9c68d028 100644
--- a/src/s/sol2-4.h
+++ b/src/s/sol2-4.h
@@ -15,24 +15,3 @@
15#undef C_SWITCH_SYSTEM 15#undef C_SWITCH_SYSTEM
16#undef const 16#undef const
17#endif /* __GNUC__ */ 17#endif /* __GNUC__ */
18
19/* Solaris does POSIX signals. This is copied from s/usg-5-4-2.h. */
20
21#define POSIX_SIGNALS
22#undef sigsetmask
23#undef PTY_TTY_NAME_SPRINTF
24#define PTY_TTY_NAME_SPRINTF \
25 { \
26 char *ptsname(), *ptyname; \
27 \
28 sigblock(sigmask(SIGCLD)); \
29 if (grantpt(fd) == -1) \
30 fatal("could not grant slave pty"); \
31 sigunblock(sigmask(SIGCLD)); \
32 if (unlockpt(fd) == -1) \
33 fatal("could not unlock slave pty"); \
34 if (!(ptyname = ptsname(fd))) \
35 fatal ("could not enable slave pty"); \
36 strncpy(pty_name, ptyname, sizeof(pty_name)); \
37 pty_name[sizeof(pty_name) - 1] = 0; \
38 }