13 /* Include unistd.h, even though we don't define POSIX. */
16 /* Make process_send_signal work by "typing" a signal character on the pty. */
17 #define SIGNALS_VIA_CHARACTERS
21 #define C_SWITCH_MACHINE -cckr
24 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
25 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
26 we'll just define WNOHANG right here.
27 (An implicit decl is good enough for wait3.) */
31 /* No need to use sprintf to get the tty name--we get that from _getpty. */
32 #undef PTY_TTY_NAME_SPRINTF
33 #define PTY_TTY_NAME_SPRINTF
34 /* No need to get the pty name at all. */
35 #define PTY_NAME_SPRINTF
36 /* We need only try once to open a pty. */
38 /* Here is how to do it. */
39 /* It is necessary to prevent SIGCHLD signals within _getpty.
43 int mask = sigblock (sigmask (SIGCHLD)); \
44 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
50 if (fstat (fd, &stb) < 0) \
52 strcpy (pty_name, name); \
55 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
56 on this system, so inhibit use of matherr. */