5 /* Define HAVE_ALLOCA to say that the system provides a properly
6 working alloca function and it should be used. */
9 #define alloca __builtin_alloca
13 #define C_SWITCH_MACHINE -cckr
16 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
17 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
18 we'll just define WNOHANG right here.
19 (An implicit decl is good enough for wait3.) */
23 /* No need to use sprintf to get the tty name--we get that from _getpty. */
24 #define PTY_TTY_NAME_SPRINTF
25 /* No need to get the pty name at all. */
26 #define PTY_NAME_SPRINTF
30 /* We need only try once to open a pty. */
32 /* Here is how to do it. */
33 /* It is necessary to prevent SIGCHLD signals within _getpty.
37 int mask = sigblock (sigmask (SIGCHLD)); \
38 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
44 if (fstat (fd, &stb) < 0) \
46 strcpy (pty_name, name); \