Commit 8d40872b authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(POSIX_SIGNALS, PTY_TTY_NAME_SPRINTF, sigsetmask):

Delete those things (moved to sol2-3.h).
parent 35a6034c
......@@ -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; \
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment