Mercurial > emacs
comparison src/s/sol2-4.h @ 8475:77d5e055dce1
(PTY_TTY_NAME_SPRINTF): New definition.
(sigsetmask): Add #undef.
(SOLARIS2_4): Defined.
Discard old contents of file. Instead, undef C_SWITCH_SYSTEM and
const, so that we use GCC without -traditional.
(HAVE_VFORK): Defined.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 07 Aug 1994 07:58:18 +0000 |
parents | 2c1c248f97d4 |
children | be7f0e042b3c |
comparison
equal
deleted
inserted
replaced
8474:03938bbc5bbb | 8475:77d5e055dce1 |
---|---|
1 /* Handle Solaris 2.4. */ | 1 /* Handle Solaris 2.4. */ |
2 | 2 |
3 #include "sol2-3.h" | |
4 | |
5 #define SOLARIS2_4 | |
6 | |
7 /* Get rid of -traditional and let const really do its thing. */ | |
8 | |
3 #ifdef __GNUC__ | 9 #ifdef __GNUC__ |
4 #ifdef i386 | 10 #undef C_SWITCH_SYSTEM |
5 /* Since we use gcc -traditional, we have to work around a bogus "volatile" in | 11 #undef const |
6 <sys/machlock.h>. Must do this before #include "sol2-3.h". */ | |
7 #define volatile | |
8 #endif /* i386 */ | |
9 #endif /* __GNUC__ */ | 12 #endif /* __GNUC__ */ |
10 | 13 |
11 #include "sol2-3.h" | 14 #define HAVE_VFORK |
15 | |
16 /* solaris does POSIX signals. this bit is from s/usg-5-4-2.h */ | |
17 | |
18 #define POSIX_SIGNALS | |
19 #undef sigsetmask | |
20 #undef PTY_TTY_NAME_SPRINTF | |
21 #define PTY_TTY_NAME_SPRINTF \ | |
22 { \ | |
23 char *ptsname(), *ptyname; \ | |
24 \ | |
25 sigblock(sigmask(SIGCLD)); \ | |
26 if (grantpt(fd) == -1) \ | |
27 fatal("could not grant slave pty"); \ | |
28 sigunblock(sigmask(SIGCLD)); \ | |
29 if (unlockpt(fd) == -1) \ | |
30 fatal("could not unlock slave pty"); \ | |
31 if (!(ptyname = ptsname(fd))) \ | |
32 fatal ("could not enable slave pty"); \ | |
33 strncpy(pty_name, ptyname, sizeof(pty_name)); \ | |
34 pty_name[sizeof(pty_name) - 1] = 0; \ | |
35 } |