1/* s/ file for Sequent "ptx 4", which is a modified SVR5.4. 2 3Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 4 2007 Free Software Foundation, Inc. 5 6This file is part of GNU Emacs. 7 8GNU Emacs is free software; you can redistribute it and/or modify 9it under the terms of the GNU General Public License as published by 10the Free Software Foundation; either version 2, or (at your option) 11any later version. 12 13GNU Emacs is distributed in the hope that it will be useful, 14but WITHOUT ANY WARRANTY; without even the implied warranty of 15MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16GNU General Public License for more details. 17 18You should have received a copy of the GNU General Public License 19along with GNU Emacs; see the file COPYING. If not, write to 20the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 21Boston, MA 02110-1301, USA. */ 22 23 24/* Tell usg5-4.h not to include filio.h. */ 25#define NO_FILIO_H 26 27#include "usg5-4.h" 28 29/* Marcus Daniels <marcus@sysc.pdx.edu> says that SIGINFO is defined 30 on ptx4 but it is not a signal. Prevent process.c from doing the 31 wrong thing. */ 32#define BROKEN_SIGINFO 33 34/* pae@dim.com (Phil Ernhardt) says this correction to 35 the definition in usg5-4.h is needed to prevent 36 all asynchronous subprocesses from exiting right away. */ 37 38/* James Youngman <jay@gnu.org> found that on "DYNIX/ptx ARNIE 4.0 39 * V4.4.2 i386", the push of the ttcompat module would fail. It seems 40 * that PTX 4.4.2 doesn't have that module, so if the push fails we 41 * don't kill ourselves. While this version lacks ttcompat, it also 42 * has ptem, but the manual page for ptem indicates that it should 43 * be pushed onto the slave side before the line discipline module. 44 * See also the streampty manual page, if you're curious (and have 45 * a ptx system). 46 */ 47 48/* rms: I hope that older versions which do have ttcompat 49 will not get confused by the code to use ptem. */ 50 51#undef SETUP_SLAVE_PTY 52#define SETUP_SLAVE_PTY \ 53 if (ioctl (xforkin, I_PUSH, "ptem") == -1 && errno != EINVAL) \ 54 fatal ("ioctl I_PUSH ptem", errno); \ 55 if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \ 56 fatal ("ioctl I_PUSH ldterm", errno); \ 57 if (ioctl (xforkin, I_PUSH, "ttcompat") == -1 && errno != EINVAL) \ 58 fatal ("ioctl I_PUSH ttcompat", errno); 59 60/* arch-tag: 14621824-8dca-432b-a97a-049fc4ce0e9f 61 (do not change this comment) */ 62