Mercurial > emacs
view src/s/sol2-4.h @ 8511:be7f0e042b3c
(HAVE_VFORK): Deleted.
(vfork): Define as emacs_vfork.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 11 Aug 1994 03:38:09 +0000 |
parents | 77d5e055dce1 |
children | e357ba54e6fd |
line wrap: on
line source
/* Handle Solaris 2.4. */ #include "sol2-3.h" #define SOLARIS2_4 /* Solaris 2.4 has a broken vfork. And a header file has a declaration that conflicts with the definition of vfork in sysdep.c. This definition should avoid it. */ #define vfork emacs_vfork /* Get rid of -traditional and let const really do its thing. */ #ifdef __GNUC__ #undef C_SWITCH_SYSTEM #undef const #endif /* __GNUC__ */ /* Solaris does POSIX signals. This is copied from s/usg-5-4-2.h. */ #define POSIX_SIGNALS #undef sigsetmask #undef PTY_TTY_NAME_SPRINTF #define PTY_TTY_NAME_SPRINTF \ { \ char *ptsname(), *ptyname; \ \ sigblock(sigmask(SIGCLD)); \ if (grantpt(fd) == -1) \ fatal("could not grant slave pty"); \ sigunblock(sigmask(SIGCLD)); \ if (unlockpt(fd) == -1) \ fatal("could not unlock slave pty"); \ if (!(ptyname = ptsname(fd))) \ fatal ("could not enable slave pty"); \ strncpy(pty_name, ptyname, sizeof(pty_name)); \ pty_name[sizeof(pty_name) - 1] = 0; \ }