5 /* XPointer is not defined in the older X headers -- JPff@maths.bath.ac.uk */
6 #define XPointer caddr_t
15 /* Include unistd.h, even though we don't define POSIX. */
18 /* Make process_send_signal work by "typing" a signal character on the pty. */
19 #define SIGNALS_VIA_CHARACTERS
23 /* We need to increase the expression tree space with -Wf,-XNh
24 (ghazi@caip.rutgers.edu 7/8/97.)
26 #define C_SWITCH_SYSTEM -cckr -Wf,-XNh4000
29 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
30 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
31 we'll just define WNOHANG right here.
32 (An implicit decl is good enough for wait3.) */
36 /* No need to use sprintf to get the tty name--we get that from _getpty. */
37 #undef PTY_TTY_NAME_SPRINTF
38 #define PTY_TTY_NAME_SPRINTF
39 /* No need to get the pty name at all. */
40 #define PTY_NAME_SPRINTF
41 /* We need only try once to open a pty. */
43 /* Here is how to do it. */
44 /* It is necessary to prevent SIGCHLD signals within _getpty.
48 int mask = sigblock (sigmask (SIGCHLD)); \
49 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
55 if (fstat (fd, &stb) < 0) \
57 strcpy (pty_name, name); \
60 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
61 on this system, so inhibit use of matherr. */