/* Definitions file for GNU Emacs running on Data General's DG/UX
- version 4.32 and above.
- Copyright (C) 1985, 1986, 1991 Free Software Foundation, Inc.
+ version 4.32 upto and including 5.4.1.
+ Copyright (C) 1994, 1999, 2002, 2003, 2004,
+ 2005 Free Software Foundation, Inc.
This file is part of GNU Emacs.
You should have received a copy of the GNU General Public License
along with GNU Emacs; see the file COPYING. If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
-
+the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA. */
/*
* Define symbols to identify the version of Unix this is.
#define BSD4_2
#define BSD4_3
#define BSD4_4
-#define BSD
-#define SVR4
+#define BSD_SYSTEM
/* SYSTEM_TYPE should indicate the kind of system you are using.
It sets the Lisp variable system-type. */
-#define SYSTEM_TYPE "dgc-unix"
+#define SYSTEM_TYPE "dgux"
/* NOMULTIPLEJOBS should be defined if your system's shell
does not have "job control" (the ability to stop a program,
to read the input and send it to the true Emacs process
through a pipe.
-NOTE: On DGUX, there is a problem using INTERRUPT_INPUT: When invoked
-under X11 using a job control shell (csh, ksh) in the background,
-emacs will stop on tty output. I suspect this is a kernel problem and
-have reported it and a sample program to DGC. Meanwhile, a workaround
-is to define BROKEN_FIONREAD and not use INTERRUPT_INPUT.
-
--pmr@rock.concert.net
*/
-#define BROKEN_FIONREAD
-/* #define INTERRUPT_INPUT */
-
-/*
- * Define HAVE_TIMEVAL if the system supports the BSD style clock values.
- * Look in <sys/time.h> for a timeval structure.
- */
-
-#define HAVE_TIMEVAL
-
-/*
- * Define HAVE_SELECT if the system supports the `select' system call.
- */
-
-#define HAVE_SELECT
-
-/*
- * Define HAVE_SETSID if the system supports POSIX disassociate
- * terminal.
- */
-
-#define HAVE_SETSID
+#define INTERRUPT_INPUT
/*
* Define HAVE_SOCKETS if the system supports sockets.
#define HAVE_PTYS
-/* (Assume) we do have vfork. */
-
-#define HAVE_VFORK
-
/*
* Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
* The 4.2 opendir, etc., library functions.
#define BAUD_CONVERT { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \
4800, 9600, 19200, 38400 }
-/*
- * Define NLIST_STRUCT if the system has nlist.h
- */
-
-#define NLIST_STRUCT
-
/*
* Make WM Interface Compliant.
*/
#define TERMINFO
+/*
+ * Send signals to subprocesses using characters.
+ *
+ */
+
+#define SIGNALS_VIA_CHARACTERS
+
/*
* Define HAVE_TERMIOS since this is POSIX,
* for terminal control. Prevent redundant inclusion of termio.h.
#define HAVE_TERMIOS
#define NO_TERMIO
-/* Letter to use in finding device name of first pty,
- if system supports pty's. 'p' means it is /dev/ptyp0 */
-
-#define FIRST_PTY_LETTER 'p'
-
/*
* Use a Berkeley style sys/wait.h.
* This makes WIF* macros operate on structures instead of ints.
* Use BSD and POSIX-style signals. This is crucial!
*/
-/* pmr now says the GNU malloc works. */
-/* pmr@rock.concert.net says Emacs fails without this. We don't know why. */
/* #define SYSTEM_MALLOC */
/* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
-#ifndef THIS_IS_YMAKEFILE
+#ifndef NOT_C_CODE
/* Make sure signal.h is included so macros below don't mess with it. */
/* DG/UX include files prevent multiple inclusion. */
#define POSIX_SIGNALS
-/* Define this if you use System 5 Release 4 Streams */
-#define SYSV4_PTYS
-#define open sys_open
-#define close sys_close
-#define read sys_read
-#define write sys_write
-
-#define INTERRUPTIBLE_OPEN
-#define INTERRUPTIBLE_CLOSE
-/* can't hurt to define these, even though read/write should auto restart */
-#define INTERRUPTIBLE_IO
-
+#ifndef NO_DGUX_SIGNAL_REDEF
/* Can't use sys_signal because then etc/server.c would need sysdep.o. */
extern struct sigaction act, oact;
#define signal(SIG,FUNC) berk_signal(SIG,FUNC)
+#endif
-#else /* THIS_IS_YMAKEFILE */
-/* force gcc to be used */
-CC=gcc
-#endif /* not THIS_IS_YMAKEFILE */
+#endif /* not NOT_C_CODE */
-#define LD_SWITCH_SYSTEM
+#ifndef __GNUC__
+#error You must use GCC to compiler Emascs on DGUX
+#endif
+
+#define ORDINARY_LINK
#define START_FILES pre-crt0.o
-#define LIBS_SYSTEM -ldgc
#define LIB_GCC /usr/lib/gcc/libgcc.a
#ifdef _M88KBCS_TARGET
else \
sprintf (pty_name, "/dev/tty%c%x", c, i);
-#define C_COMPILER \
- TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -traditional
-
-#define LINKER \
- TARGET_BINARY_INTERFACE=m88kdguxcoff gcc
-
-#define MAKE_COMMAND \
- TARGET_BINARY_INTERFACE=m88kdguxcoff make
-
#define C_DEBUG_SWITCH -g
#else /* not COFF */
-#define C_COMPILER \
- TARGET_BINARY_INTERFACE=m88kdguxelf gcc -traditional
-
-#define LINKER \
- TARGET_BINARY_INTERFACE=m88kdguxelf gcc
+/* We are generating ELF object format. This makes the system more
+ SVR4 like. */
-#define MAKE_COMMAND \
- TARGET_BINARY_INTERFACE=m88kdguxelf make
+#define SVR4
+/* Pseudo-terminal support under SVR4 only loops to deal with errors. */
+
+#define PTY_ITERATION for (i = 0; i < 1; i++)
+
+/* This sets the name of the master side of the PTY. */
+
+#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
+
+/* This sets the name of the slave side of the PTY. On SysVr4,
+ grantpt(3) forks a subprocess, so keep sigchld_handler() from
+ intercepting that death. If any child but grantpt's should die
+ within, it should be caught after sigrelse(2). */
+
+#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; \
+ }
+
+/* Push various streams modules onto a PTY channel. */
+
+#define SETUP_SLAVE_PTY \
+ if (ioctl (xforkin, I_PUSH, "ptem") == -1) \
+ fatal ("ioctl I_PUSH ptem", errno); \
+ if (ioctl (xforkin, I_PUSH, "ldterm") == -1) \
+ fatal ("ioctl I_PUSH ldterm", errno); \
+ if (ioctl (xforkin, I_PUSH, "ttcompat") == -1) \
+ fatal ("ioctl I_PUSH ttcompat", errno);
+
+#ifdef __GNUC__
#define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard
-#endif /* COFF */
+#endif
+
+#endif /* ELF */
/* Extra stuff which probably should be someplace else but is here out
of expediency. */
#define LIB_X11_LIB -lX11
+#define LIB_MOTIF -lXm -lgen
+
+/* Process groups work in the traditional BSD manner. */
+
+#define BSD_PGRPS
+
+/* arch-tag: 1b6d117d-82d2-4480-a6d0-3f7a8360f658
+ (do not change this comment) */