Mercurial > emacs
comparison src/s/irix5-0.h @ 12075:4e06c01054aa
Comment fix.
(POSIX_SIGNALS): Defined.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Mon, 05 Jun 1995 17:30:47 +0000 |
parents | a0fe869703c6 |
children | c653ea0f4abe |
comparison
equal
deleted
inserted
replaced
12074:111aadc2521a | 12075:4e06c01054aa |
---|---|
57 char *_getpty(); | 57 char *_getpty(); |
58 #endif | 58 #endif |
59 /* We need only try once to open a pty. */ | 59 /* We need only try once to open a pty. */ |
60 #define PTY_ITERATION | 60 #define PTY_ITERATION |
61 /* Here is how to do it. */ | 61 /* Here is how to do it. */ |
62 /* It is necessary to prevent SIGCHLD signals within _getpty. | |
63 So we block them. But since all of Emacs uses classic SYSV signal() | |
64 signals, there is no reliable way to do this (unlike BSD sighold or | |
65 POSIX sigaction). On Irix 5.* systems, the implementation of | |
66 sigaction is as close as you can get to a universal. */ | |
67 #define PTY_OPEN \ | 62 #define PTY_OPEN \ |
68 { \ | 63 { \ |
69 struct sigaction ocstat, cstat; \ | 64 struct sigaction ocstat, cstat; \ |
70 char * name; \ | 65 char * name; \ |
71 sigemptyset(&cstat.sa_mask); \ | 66 sigemptyset(&cstat.sa_mask); \ |
80 return -1; \ | 75 return -1; \ |
81 if (fstat (fd, &stb) < 0) \ | 76 if (fstat (fd, &stb) < 0) \ |
82 return -1; \ | 77 return -1; \ |
83 strcpy (pty_name, name); \ | 78 strcpy (pty_name, name); \ |
84 } | 79 } |
80 | |
81 /* Since we use POSIX constructs in PTY_OPEN, we must force POSIX | |
82 throughout. */ | |
83 #define POSIX_SIGNALS | |
85 | 84 |
86 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined | 85 /* jpff@maths.bath.ac.uk reports `struct exception' is not defined |
87 on this system, so inhibit use of matherr. */ | 86 on this system, so inhibit use of matherr. */ |
88 #define NO_MATHERR | 87 #define NO_MATHERR |
89 | 88 |