comparison src/s/irix5-0.h @ 2891:c10bb302a315

Changes for Silicon Graphics Iris 5D. * unexelfsgi.c: New file; like unexelf.c, but tolerates program segments above BSS. * m/iris5d.h: New file. * s/irix5-0.h: New file. * process.c [__sgi] (allocate_pty): Give up immediately if pty is inaccessible.
author Jim Blandy <jimb@redhat.com>
date Wed, 19 May 1993 04:56:06 +0000
parents 70a7f2829225
children 589ab12dbe3d
comparison
equal deleted inserted replaced
2890:70a7f2829225 2891:c10bb302a315
1 #include "irix3-3.h" 1 #include "s-usg5-4.h"
2 #ifdef LIBS_SYSTEM
3 #undef LIBS_SYSTEM
4 #endif
2 5
3 #define USG5_3 6 #ifdef SYSTEM_TYPE
7 #undef SYSTEM_TYPE
8 #endif
9 #define SYSTEM_TYPE "silicon-graphics-unix"
10
11 #ifdef SETUP_SLAVE_PTY
12 #undef SETUP_SLAVE_PTY
13 #endif
14
4 15
5 /* Define HAVE_ALLOCA to say that the system provides a properly 16 /* Define HAVE_ALLOCA to say that the system provides a properly
6 working alloca function and it should be used. */ 17 working alloca function and it should be used. */
7 #define HAVE_ALLOCA 18 #define HAVE_ALLOCA
8 #undef C_ALLOCA 19 #undef C_ALLOCA
16 /* SGI has all the fancy wait stuff, but we can't include sys/wait.h 27 /* 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 28 because it defines BIG_ENDIAN and LITTLE_ENDIAN (ugh!.) Instead
18 we'll just define WNOHANG right here. 29 we'll just define WNOHANG right here.
19 (An implicit decl is good enough for wait3.) */ 30 (An implicit decl is good enough for wait3.) */
20 31
21 #define WNOHANG 0x1 32 /* #define WNOHANG 0x1 */
22 33
23 /* No need to use sprintf to get the tty name--we get that from _getpty. */ 34 /* No need to use sprintf to get the tty name--we get that from _getpty. */
35 #ifdef PTY_TTY_NAME_SPRINTF
36 #undef PTY_TTY_NAME_SPRINTF
37 #endif
24 #define PTY_TTY_NAME_SPRINTF 38 #define PTY_TTY_NAME_SPRINTF
25 /* No need to get the pty name at all. */ 39 /* No need to get the pty name at all. */
40 #ifdef PTY_NAME_SPRINTF
41 #undef PTY_NAME_SPRINTF
42 #endif
26 #define PTY_NAME_SPRINTF 43 #define PTY_NAME_SPRINTF
27 #ifdef emacs 44 #ifdef emacs
28 char *_getpty(); 45 char *_getpty();
29 #endif 46 #endif
30 /* We need only try once to open a pty. */ 47 /* We need only try once to open a pty. */