diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/s/sol2-4.h | 21 |
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 | } | ||