1 /* s/ file for System V release 4.2.
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4 2007 Free Software Foundation, Inc.
6 This file is part of GNU Emacs.
8 GNU Emacs is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs; see the file COPYING. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA. */
26 /* fnf@cygnus.com says these exist. */
28 #if 0 /* autoconf should take care of this. */
29 #define HAVE_GETHOSTNAME
32 /* #define HAVE_GETWD (appears to be buggy on SVR4.2) */
35 /* Info from fnf@cygnus.com suggests this is appropriate. */
38 /* We don't need the definition from usg5-3.h with POSIX_SIGNALS. */
40 #undef HAVE_SYSV_SIGPAUSE
42 /* Motif needs -lgen. */
44 #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen
46 /* This is the same definition as in usg5-4.h, but with sigblock/sigunblock
47 rather than sighold/sigrelse, which appear to be BSD4.1 specific and won't
48 work if POSIX_SIGNALS is defined. It may also be appropriate for SVR4.x
49 (x<2) but I'm not sure. fnf@cygnus.com */
50 /* This sets the name of the slave side of the PTY. On SysVr4,
51 grantpt(3) forks a subprocess, so keep sigchld_handler() from
52 intercepting that death. If any child but grantpt's should die
53 within, it should be caught after sigrelse(2). */
55 #undef PTY_TTY_NAME_SPRINTF
56 #define PTY_TTY_NAME_SPRINTF \
58 char *ptsname(), *ptyname; \
60 sigblock(sigmask(SIGCLD)); \
61 if (grantpt(fd) == -1) \
62 fatal("could not grant slave pty"); \
63 sigunblock(sigmask(SIGCLD)); \
64 if (unlockpt(fd) == -1) \
65 fatal("could not unlock slave pty"); \
66 if (!(ptyname = ptsname(fd))) \
67 fatal ("could not enable slave pty"); \
68 strncpy(pty_name, ptyname, sizeof(pty_name)); \
69 pty_name[sizeof(pty_name) - 1] = 0; \
72 /* Use libw.a along with X11R6 Xt. */
75 /* ryanr@ellingtn.ftc.nrcs.usda.gov (Richard Anthony Ryan) says -lXimp
76 is needed in UNIX_SV ... 4.2 1.1.2. */
77 #define LIB_MOTIF -lXm -lXimp
79 /* arch-tag: 9bbfcfc1-19be-45a1-9699-af57b87da2c6
80 (do not change this comment) */