]>
code.delx.au - gnu-emacs/blob - src/s/irix4-0.h
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 /* We need to increase the expression tree space with -Wf,-XNh
22 (ghazi@caip.rutgers.edu 7/8/97.)
24 #define C_SWITCH_SYSTEM -cckr -Wf,-XNh3000
27 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h
28 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
29 we'll just define WNOHANG right here.
30 (An implicit decl is good enough for wait3.) */
34 /* No need to use sprintf to get the tty name--we get that from _getpty. */
35 #undef PTY_TTY_NAME_SPRINTF
36 #define PTY_TTY_NAME_SPRINTF
37 /* No need to get the pty name at all. */
38 #define PTY_NAME_SPRINTF
39 /* We need only try once to open a pty. */
41 /* Here is how to do it. */
42 /* It is necessary to prevent SIGCHLD signals within _getpty.
46 int mask = sigblock (sigmask (SIGCHLD)); \
47 char *name = _getpty (&fd, O_RDWR | O_NDELAY, 0600, 0); \
53 if (fstat (fd, &stb) < 0) \
55 strcpy (pty_name, name); \
58 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined
59 on this system, so inhibit use of matherr. */