Annotation of GNUtools/emacs/src/s-aix3-1.h, revision 1.1.1.1

1.1       root        1: /* Definitions file for GNU Emacs running on IBM AIX version 3.1
                      2:    Copyright (C) 1985, 1986, 1990 Free Software Foundation, Inc.
                      3: 
                      4: This file is part of GNU Emacs.
                      5: 
                      6: GNU Emacs is free software; you can redistribute it and/or modify
                      7: it under the terms of the GNU General Public License as published by
                      8: the Free Software Foundation; either version 1, or (at your option)
                      9: any later version.
                     10: 
                     11: GNU Emacs is distributed in the hope that it will be useful,
                     12: but WITHOUT ANY WARRANTY; without even the implied warranty of
                     13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     14: GNU General Public License for more details.
                     15: 
                     16: You should have received a copy of the GNU General Public License
                     17: along with GNU Emacs; see the file COPYING.  If not, write to
                     18: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
                     19: 
                     20: 
                     21: /*
                     22:  *     Define symbols to identify the version of Unix this is.
                     23:  *     Define all the symbols that apply correctly.
                     24:  */
                     25: 
                     26: #define USG                            /* System III, System V, etc */
                     27: #define USG5
                     28: 
                     29: /*      Specify IBM AIX version of system */
                     30: 
                     31: #ifndef AIX
                     32: #define AIX
                     33: #endif
                     34: 
                     35: /*      turn off c prototypes */
                     36: #ifndef _NO_PROTO
                     37: #define _NO_PROTO
                     38: #endif
                     39: 
                     40: /*      This symbol should be defined on AIX Version 3  ??????? */
                     41: #ifndef _AIX
                     42: #define _AIX
                     43: #endif
                     44: 
                     45: /*      Specify "_BSD" to invoke Berkeley compatibility in header files */
                     46: /*#ifndef _BSD
                     47: #define _BSD
                     48: #endif
                     49: */
                     50: 
                     51: /* SYSTEM_TYPE should indicate the kind of system you are using.
                     52:  It sets the Lisp variable system-type.  */
                     53: 
                     54: #define SYSTEM_TYPE "aix-v3"
                     55: 
                     56: 
                     57: /* nomultiplejobs should be defined if your system's shell
                     58:  does not have "job control" (the ability to stop a program,
                     59:  run some other program, then continue the first one).  */
                     60: 
                     61: /* #define NOMULTIPLEJOBS */
                     62: 
                     63: /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
                     64: 
                     65: /* #define INTERRUPT_INPUT */
                     66: 
                     67: /* In AIX, you allocate a pty by opening /dev/ptc to get the master side.
                     68:    To get the name of the slave side, you just ttyname() the master side.  */
                     69: 
                     70: #define PTY_ITERATION for (c = 0; !c ; c++)
                     71: #define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptc");
                     72: #define PTY_TTY_NAME_SPRINTF strcpy (pty_name, ttyname (fd));
                     73: 
                     74: /*
                     75:  *     Define HAVE_TERMIO if the system provides sysV-style ioctls
                     76:  *     for terminal control.
                     77:  */
                     78: 
                     79: #define HAVE_TERMIO
                     80: 
                     81: /*
                     82:  *     Define HAVE_TIMEVAL if the system supports the BSD style clock values.
                     83:  *     Look in <sys/time.h> for a timeval structure.
                     84:  */
                     85: 
                     86: #define HAVE_TIMEVAL
                     87:  
                     88: /*
                     89:  *     Define HAVE_SELECT if the system supports the `select' system call.
                     90:  */
                     91: 
                     92: #define HAVE_SELECT 
                     93: 
                     94: /*
                     95:  *     Define HAVE_PTYS if the system supports pty devices.
                     96:  */
                     97: 
                     98: #define HAVE_PTYS
                     99: 
                    100: /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets.  */
                    101: 
                    102: #define HAVE_SOCKETS
                    103: 
                    104: /*
                    105:  *     Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
                    106:  *      The 4.2 opendir, etc., library functions.
                    107:  */
                    108: 
                    109: /* #define NONSYSTEM_DIR_LIBRARY */
                    110: 
                    111: /*
                    112:  *     Define SYSV_SYSTEM_DIR to use the V.3 getdents/readir
                    113:  *     library functions.  Almost, but not quite the same as
                    114:  *     the 4.2 functions
                    115:  */
                    116: 
                    117: #define SYSV_SYSTEM_DIR
                    118: 
                    119: /* Define this symbol if your system has the functions bcopy, etc. */
                    120: 
                    121: #define BSTRING
                    122: 
                    123: /* subprocesses should be defined if you want to
                    124:  have code for asynchronous subprocesses
                    125:  (as used in M-x compile and M-x shell).
                    126:  This is supposed to work now on system V release 2.  */
                    127: 
                    128: #define subprocesses
                    129: 
                    130: /* If your system uses COFF (Common Object File Format) then define the
                    131:    preprocessor symbol "COFF". */
                    132: 
                    133: /* #define COFF */
                    134: 
                    135: /* define MAIL_USE_FLOCK if the mailer uses flock
                    136:    to interlock access to /usr/spool/mail/$USER.
                    137:    The alternative is that a lock file named
                    138:    /usr/spool/mail/$USER.lock.  */
                    139: 
                    140: /* #define MAIL_USE_FLOCK */
                    141: 
                    142: /* Define CLASH_DETECTION if you want lock files to be written
                    143:    so that Emacs can tell instantly when you try to modify
                    144:    a file that someone else has modified in his Emacs.  */
                    145: 
                    146: /* #define CLASH_DETECTION */
                    147: 
                    148: /* Define SHORTNAMES if the C compiler can distinguish only
                    149:    short names.  It means that the stuff in ../shortnames
                    150:    must be run to convert the long names to short ones.  */
                    151: 
                    152: /* #define SHORTNAMES */
                    153: 
                    154: /* We do NOT use the Berkeley (and usg5.2.2) interface to nlist.  */
                    155: 
                    156: /* #define NLIST_STRUCT */
                    157: 
                    158: /* The file containing the kernel's symbol table is called /unix.  */
                    159: 
                    160: #define KERNEL_FILE "/unix"
                    161: 
                    162: /* The symbol in the kernel where the load average is found
                    163:    is named avenrun.  */
                    164: 
                    165: #define LDAV_SYMBOL "avenrun"
                    166: 
                    167: /* Special itemss needed to make Emacs run on this system.  */
                    168: 
                    169: /*
                    170:  *     Make the sigsetmask function go away.  Don't know what the
                    171:  *     ramifications of this are, but doesn't seem possible to
                    172:  *     emulate it properly anyway at this point.
                    173:  */
                    174: 
                    175: #define sigsetmask(mask)       /* Null expansion */
                    176: 
                    177: /* setjmp and longjmp can safely replace _setjmp and _longjmp,
                    178:    but they will run slower.  */
                    179: 
                    180: #define _setjmp setjmp
                    181: #define _longjmp longjmp
                    182: 
                    183: /* On USG systems the system calls are interruptable by signals
                    184:  that the user program has elected to catch.  Thus the system call
                    185:  must be retried in these cases.  To handle this without massive
                    186:  changes in the source code, we remap the standard system call names
                    187:  to names for our own functions in sysdep.c that do the system call
                    188:  with retries. */
                    189: 
                    190: #define read sys_read
                    191: #define open sys_open
                    192: #define write sys_write
                    193: 
                    194: #define INTERRUPTABLE_OPEN
                    195: #define INTERRUPTABLE_IO
                    196: 
                    197: /* On USG systems these have different names */
                    198: 
                    199: #define index strchr
                    200: #define rindex strrchr
                    201: 
                    202: /* USG systems tend to put everything declared static
                    203:    into the initialized data area, which becomes pure after dumping Emacs.
                    204:    Foil this.  Emacs carefully avoids static vars inside functions.  */
                    205: 
                    206: #undef static
                    207: 
                    208: /* Compiler bug bites on many systems when default ADDR_CORRECT is used.  */
                    209: 
                    210: /* #define ADDR_CORRECT(x) (x) */
                    211: 
                    212: #define LINKER cc
                    213: 
                    214: /* Prevent -lg from being used for debugging.  Not needed.  */
                    215: 
                    216: #define LIBS_DEBUG
                    217: 
                    218: /* No need to specify -lc when linking.  */
                    219: 
                    220: #define LIB_STANDARD
                    221: 
                    222: /* Use terminfo instead of termcap.  */
                    223: 
                    224: #define TERMINFO
                    225: 
                    226: /* The following definition seems to be needed in AIX version 3.1.6.8.
                    227:    It may not have been needed in certain earlier versions.  */
                    228: #define HAVE_TCATTR
                    229: 
                    230: #define SYSTEM_MALLOC
                    231: 
                    232: /* Use the gethostname system call.  */
                    233: #define HAVE_GETHOSTNAME

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.