]> code.delx.au - gnu-emacs/blobdiff - src/s/aix3-1.h
(POSIX_SIGNALS): Defined.
[gnu-emacs] / src / s / aix3-1.h
index ea94e080bc872c4a83d5e0f9749c2687feda5968..f77a209f0d29f7ae4c0e9a612f0a46f34673281f 100644 (file)
@@ -1,22 +1,23 @@
 /* Definitions file for GNU Emacs running on IBM AIX version 3.1
-   Copyright (C) 1985, 1986 Free Software Foundation, Inc.
+   Copyright (C) 1985, 1986, 1990, 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 2, or (at your option)
+any later version.
+
 GNU Emacs is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY.  No author or distributor
-accepts responsibility to anyone for the consequences of using it
-or for whether it serves any particular purpose or works at all,
-unless he says so in writing.  Refer to the GNU Emacs General Public
-License for full details.
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
 
-Everyone is granted permission to copy, modify and redistribute
-GNU Emacs, but only under the conditions described in the
-GNU Emacs General Public License.   A copy of this license is
-supposed to have been given to you along with GNU Emacs so you
-can know your rights and responsibilities.  It should be in a
-file named COPYING.  Among other things, the copyright notice
-and this notice must be preserved on all copies.  */
+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, Inc., 51 Franklin Street, Fifth Floor,
+Boston, MA 02110-1301, USA.  */
 
 
 /*
@@ -52,7 +53,7 @@ and this notice must be preserved on all copies.  */
 /* SYSTEM_TYPE should indicate the kind of system you are using.
  It sets the Lisp variable system-type.  */
 
-#define SYSTEM_TYPE "aix-v3"
+#define SYSTEM_TYPE "aix"
 
 
 /* nomultiplejobs should be defined if your system's shell
@@ -65,30 +66,19 @@ and this notice must be preserved on all copies.  */
 
 /* #define INTERRUPT_INPUT */
 
-/* Letter to use in finding device name of first pty,
-  if system supports pty's.  'p' means it is /dev/ptyp0  */
+/* In AIX, you allocate a pty by opening /dev/ptc to get the master side.
+   To get the name of the slave side, you just ttyname() the master side.  */
 
-#define FIRST_PTY_LETTER 'p'
+#define PTY_ITERATION for (c = 0; !c ; c++)
+#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
+#define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
 
 /*
  *     Define HAVE_TERMIO if the system provides sysV-style ioctls
  *     for terminal control.
  */
 
-#define HAVE_TERMIO
-
-/*
- *     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_TERMIOS
 
 /*
  *     Define HAVE_PTYS if the system supports pty devices.
@@ -150,10 +140,6 @@ and this notice must be preserved on all copies.  */
 
 /* #define SHORTNAMES */
 
-/* We do NOT use the Berkeley (and usg5.2.2) interface to nlist.  */
-
-/* #define NLIST_STRUCT */
-
 /* The file containing the kernel's symbol table is called /unix.  */
 
 #define KERNEL_FILE "/unix"
@@ -179,20 +165,6 @@ and this notice must be preserved on all copies.  */
 #define _setjmp setjmp
 #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
-
 /* On USG systems these have different names */
 
 #define index strchr
@@ -208,7 +180,9 @@ and this notice must be preserved on all copies.  */
 
 /* #define ADDR_CORRECT(x) (x) */
 
+#ifndef __GNUC__
 #define LINKER cc
+#endif
 
 /* Prevent -lg from being used for debugging.  Not needed.  */
 
@@ -228,5 +202,17 @@ and this notice must be preserved on all copies.  */
 
 #define SYSTEM_MALLOC
 
-/* Use the gethostname system call.  */
-#define HAVE_GETHOSTNAME
+/* Include unistd.h, even though we don't define POSIX.  */
+#define NEED_UNISTD_H
+
+/* AIX doesn't define this.  */
+#define unix 1
+
+/* AIX 3.1 has the HFT features.  */
+#define AIXHFT
+
+/* For unexaix.c. */
+#define ALIGN_DATA_RELOC
+
+/* arch-tag: bfff798c-542d-4290-91f2-267394c85b7b
+   (do not change this comment) */