]> git.eshelyaron.com Git - emacs.git/commitdiff
(POSIX_SIGNALS, PTY_TTY_NAME_SPRINTF, sigsetmask):
authorRichard M. Stallman <rms@gnu.org>
Thu, 11 Aug 1994 03:42:18 +0000 (03:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 11 Aug 1994 03:42:18 +0000 (03:42 +0000)
Delete those things (moved to sol2-3.h).

src/s/sol2-4.h

index 21a74ca35207cee75cc610f693cf3c20d2f6aa6f..b4d9c68d028e831440d43d6f67474cc39734db01 100644 (file)
 #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;                \
-  }