summaryrefslogtreecommitdiff
path: root/src/s/sol2-4.h
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1994-08-11 03:42:18 +0000
committerRichard M. Stallman <rms@gnu.org>1994-08-11 03:42:18 +0000
commit8d40872b18967a419df4bc10df422928d6e057e1 (patch)
tree10dc463e03e58b5cc36484dad7592a90303cf06e /src/s/sol2-4.h
parent35a6034c33e6d58d946cc95580eff4d4cdc77417 (diff)
downloademacs-8d40872b18967a419df4bc10df422928d6e057e1.tar.gz
(POSIX_SIGNALS, PTY_TTY_NAME_SPRINTF, sigsetmask):
Delete those things (moved to sol2-3.h).
Diffstat (limited to 'src/s/sol2-4.h')
-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 @@
#undef C_SWITCH_SYSTEM
#undef const
#endif /* __GNUC__ */
-
-/* Solaris does POSIX signals. This is copied from s/usg-5-4-2.h. */
-
-#define POSIX_SIGNALS
-#undef sigsetmask
-#undef PTY_TTY_NAME_SPRINTF
-#define PTY_TTY_NAME_SPRINTF \
- { \
- char *ptsname(), *ptyname; \
- \
- sigblock(sigmask(SIGCLD)); \
- if (grantpt(fd) == -1) \
- fatal("could not grant slave pty"); \
- sigunblock(sigmask(SIGCLD)); \
- if (unlockpt(fd) == -1) \
- fatal("could not unlock slave pty"); \
- if (!(ptyname = ptsname(fd))) \
- fatal ("could not enable slave pty"); \
- strncpy(pty_name, ptyname, sizeof(pty_name)); \
- pty_name[sizeof(pty_name) - 1] = 0; \
- }