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