]> code.delx.au - gnu-emacs/blobdiff - src/s/hpux.h
*** empty log message ***
[gnu-emacs] / src / s / hpux.h
index 0ddad87e53efe736801e22abd67fc61648c64548..b8f9c62a89387ba998a9d85050d6db9175572ac3 100644 (file)
@@ -1,12 +1,13 @@
 /* Definitions file for GNU Emacs running on HPUX release 7.0.
    Based on AT&T System V.2.
-   Copyright (C) 1985, 1986 Free Software Foundation, Inc.
+   Copyright (C) 1985, 1986, 1999, 2002, 2003, 2004,
+                 2005, 2006 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
 GNU Emacs is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
+the Free Software Foundation; either version 2, or (at your option)
 any later version.
 
 GNU Emacs is distributed in the hope that it will be useful,
@@ -16,7 +17,8 @@ GNU General Public License for more details.
 
 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.  */
 
 
 /*
@@ -58,28 +60,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #define HAVE_TERMIO
 
-/* Says to include time.h, and not include sys/time.h.  */
-
-#define NEED_TIME_H
-
-/*
- *     Define HAVE_TIMEVAL if the system supports the BSD style clock values.
- *     Look in <sys/time.h> for a timeval structure.
- */
-
-#define HAVE_TIMEVAL
-
-/* With HAVE_TIMEVAL define, Emacs expects to use `utimes'.
-   But HPUX does not have one.  */
-
-#define MISSING_UTIMES
-
-/*
- *     Define HAVE_SELECT if the system supports the `select' system call.
- */
-
-#define HAVE_SELECT
-
 /*
  *     Define HAVE_PTYS if the system supports pty devices.
  */
@@ -98,7 +78,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* #define NONSYSTEM_DIR_LIBRARY */
 
 /* Define this symbol if your system has the functions bcopy, etc.
- * s800 and later versions of s300 (s200) kernels have equivilents
+ * s800 and later versions of s300 (s200) kernels have equivalents
  * of the BSTRING functions of BSD.  If your s200 kernel doesn't have
  * em comment out this section.
  */
@@ -145,10 +125,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* #define SHORTNAMES */
 
-/* We use the Berkeley (and usg5.2.2) interface to nlist.  */
-
-#define NLIST_STRUCT
-
 /* The file containing the kernel's symbol table is called /hp-ux.  */
 
 #define KERNEL_FILE "/hp-ux"
@@ -176,37 +152,18 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define _longjmp longjmp
 */
 
-/* On USG systems the system calls are interruptable by signals
- that the user program has elected to catch.  Thus the system call
- must be retried in these cases.  To handle this without massive
- changes in the source code, we remap the standard system call names
- to names for our own functions in sysdep.c that do the system call
- with retries. */
-
-#define read sys_read
-#define open sys_open
-#define write sys_write
-
-#define INTERRUPTIBLE_OPEN
-#define INTERRUPTIBLE_IO
-
 /* Use the system provided termcap(3) library */
 #define TERMINFO
 
-#if 0
-/* The 48-bit versions are more winning for Emacs.  */
-
-#define rand lrand48
-#define srand srand48
-#endif
+/* The 48-bit versions are more winning for Emacs;
+   the ordinary ones don't give even 32 bits.  */
+#define random lrand48
+#define srandom srand48
 
 /* In hpux, the symbol SIGIO is defined, but the feature
-   doesn't work in the way Emacs needs it to.
-
-   Here we assume that signal.h is included before config.h
-   so that we can override it here.  */
+   doesn't work in the way Emacs needs it to.  */
 
-#undef SIGIO
+#define BROKEN_SIGIO
 
 /* USG systems tend to put everything declared static
    into the initialized data area, which becomes pure after dumping Emacs.
@@ -226,7 +183,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* Some additional system facilities exist.  */
 
-#define HAVE_VFORK
 #define HAVE_PERROR  /* Delete this line for version 6.  */
 
 /* The following maps shared exec file to demand loaded exec.
@@ -258,3 +214,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* This is how to get the device name of the control end of a pty.  */
 #define PTY_NAME_SPRINTF \
        sprintf (pty_name, "/dev/ptym/pty%c%x", c, i);
+
+/* This triggers a conditional in xfaces.c.  */
+#define XOS_NEEDS_TIME_H
+
+#ifndef HPUX8
+/* It's possible that HPUX 7 has sys/wait.h but it does not work right.  */
+#undef HAVE_SYS_WAIT_H
+#endif
+
+/* arch-tag: 75c1239f-fedb-4f64-8f86-7893e75699e8
+   (do not change this comment) */