Annotation of 43BSDReno/contrib/emacs-18.55/src/s-hpux.h, revision 1.1.1.1

1.1       root        1: /* Definitions file for GNU Emacs running on HPUX release 5.0.
                      2:    Based on AT&T System V.2.
                      3:    Copyright (C) 1985, 1986 Free Software Foundation, Inc.
                      4: 
                      5: This file is part of GNU Emacs.
                      6: 
                      7: GNU Emacs is distributed in the hope that it will be useful,
                      8: but WITHOUT ANY WARRANTY.  No author or distributor
                      9: accepts responsibility to anyone for the consequences of using it
                     10: or for whether it serves any particular purpose or works at all,
                     11: unless he says so in writing.  Refer to the GNU Emacs General Public
                     12: License for full details.
                     13: 
                     14: Everyone is granted permission to copy, modify and redistribute
                     15: GNU Emacs, but only under the conditions described in the
                     16: GNU Emacs General Public License.   A copy of this license is
                     17: supposed to have been given to you along with GNU Emacs so you
                     18: can know your rights and responsibilities.  It should be in a
                     19: file named COPYING.  Among other things, the copyright notice
                     20: and this notice must be preserved on all copies.  */
                     21: 
                     22: 
                     23: /*
                     24:  *     Define symbols to identify the version of Unix this is.
                     25:  *     Define all the symbols that apply correctly.
                     26:  */
                     27: 
                     28: #define USG                            /* System III, System V, etc */
                     29: 
                     30: #define USG5
                     31: 
                     32: #define HPUX
                     33: 
                     34: /* SYSTEM_TYPE should indicate the kind of system you are using.
                     35:  It sets the Lisp variable system-type.  */
                     36: 
                     37: #define SYSTEM_TYPE "hpux"
                     38: 
                     39: /* `nomultiplejobs' should be defined if your system's shell
                     40:  does not have "job control" (the ability to stop a program,
                     41:  run some other program, then continue the first one).
                     42: 
                     43:  On hpux this depends on the precise kind of machine in use,
                     44:  so the m- file defines this symbol if appropriate.  */
                     45: 
                     46: /* Default is to set interrupt_input to 0: don't do input buffering within Emacs */
                     47: 
                     48: /* #define INTERRUPT_INPUT */
                     49: 
                     50: /* Letter to use in finding device name of first pty,
                     51:   if system supports pty's.  'p' means it is /dev/ptym/ptyp0  */
                     52: 
                     53: #define FIRST_PTY_LETTER 'p'
                     54: 
                     55: /*
                     56:  *     Define HAVE_TERMIO if the system provides sysV-style ioctls
                     57:  *     for terminal control.
                     58:  */
                     59: 
                     60: #define HAVE_TERMIO
                     61: 
                     62: /*
                     63:  *     Define HAVE_TIMEVAL if the system supports the BSD style clock values.
                     64:  *     Look in <sys/time.h> for a timeval structure.
                     65:  */
                     66: 
                     67: #define HAVE_TIMEVAL
                     68: 
                     69: /* With HAVE_TIMEVAL define, Emacs expects to use `utimes'.
                     70:    But HPUX does not have one.  */
                     71: 
                     72: #define MISSING_UTIMES
                     73: 
                     74: /*
                     75:  *     Define HAVE_SELECT if the system supports the `select' system call.
                     76:  */
                     77: 
                     78: #define HAVE_SELECT
                     79: 
                     80: /*
                     81:  *     Define HAVE_PTYS if the system supports pty devices.
                     82:  */
                     83: 
                     84: #define HAVE_PTYS
                     85: 
                     86: /* Define HAVE_SOCKETS if system supports 4.2-compatible sockets.  */
                     87: 
                     88: #define HAVE_SOCKETS
                     89: 
                     90: /*
                     91:  *     Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
                     92:  *      The 4.2 opendir, etc., library functions.
                     93:  */
                     94: 
                     95: /* #define NONSYSTEM_DIR_LIBRARY */
                     96: 
                     97: /* Define this symbol if your system has the functions bcopy, etc.
                     98:  * s800 and later versions of s300 (s200) kernels have equivilents
                     99:  * of the BSTRING functions of BSD.  If your s200 kernel doesn't have
                    100:  * em comment out this section.
                    101:  */
                    102: 
                    103: #define BSTRING
                    104: 
                    105: /* subprocesses should be defined if you want to
                    106:  have code for asynchronous subprocesses
                    107:  (as used in M-x compile and M-x shell).
                    108:  This is generally OS dependent, and not supported
                    109:  under most USG systems.  */
                    110: 
                    111: #define subprocesses
                    112: 
                    113: /* If your system uses COFF (Common Object File Format) then define the
                    114:    preprocessor symbol "COFF". */
                    115: 
                    116: /* #define COFF */
                    117: 
                    118: /* define MAIL_USE_FLOCK if the mailer uses flock
                    119:    to interlock access to /usr/spool/mail/$USER.
                    120:    The alternative is that a lock file named
                    121:    /usr/spool/mail/$USER.lock.  */
                    122: 
                    123: /* #define MAIL_USE_FLOCK */
                    124: 
                    125: /* Say we have the SYSV style of interprocess communication.  */
                    126: 
                    127: #define HAVE_SYSVIPC
                    128: 
                    129: /* Define CLASH_DETECTION if you want lock files to be written
                    130:    so that Emacs can tell instantly when you try to modify
                    131:    a file that someone else has modified in his Emacs.  */
                    132: 
                    133: /* #define CLASH_DETECTION */
                    134: 
                    135: /* Define SHORTNAMES if the C compiler can distinguish only
                    136:    short names.  It means that the stuff in ../shortnames
                    137:    must be run to convert the long names to short ones.
                    138: 
                    139:    Some USG systems support long names.
                    140:    If yours is one, DO NOT change this file!
                    141:    Do #undef SHORTNAMES in the m- file or in config.h.  */
                    142: 
                    143: /* #define SHORTNAMES */
                    144: 
                    145: /* We use the Berkeley (and usg5.2.2) interface to nlist.  */
                    146: 
                    147: #define NLIST_STRUCT
                    148: 
                    149: /* The file containing the kernel's symbol table is called /hp-ux.  */
                    150: 
                    151: #define KERNEL_FILE "/hp-ux"
                    152: 
                    153: /* The symbol in the kernel where the load average is found
                    154:    depends on the cpu type, so we let the m- files define LDAV_SYMBOL.  */
                    155: 
                    156: /* Special hacks needed to make Emacs run on this system.  */
                    157: 
                    158: /*
                    159:  *     Make the sigsetmask function go away.  Don't know what the
                    160:  *     ramifications of this are, but doesn't seem possible to
                    161:  *     emulate it properly anyway at this point.
                    162:  */
                    163: 
                    164: /* HPUX has sigsetmask */
                    165: /* #define sigsetmask(mask)    / * Null expansion * / */
                    166: 
                    167: /* setjmp and longjmp can safely replace _setjmp and _longjmp,
                    168:    but they will run slower.  */
                    169: 
                    170: /* HP-UX has _setjmp and _longjmp */
                    171: /*
                    172: #define _setjmp setjmp
                    173: #define _longjmp longjmp
                    174: */
                    175: 
                    176: /* On USG systems the system calls are interruptable by signals
                    177:  that the user program has elected to catch.  Thus the system call
                    178:  must be retried in these cases.  To handle this without massive
                    179:  changes in the source code, we remap the standard system call names
                    180:  to names for our own functions in sysdep.c that do the system call
                    181:  with retries. */
                    182: 
                    183: #define read sys_read
                    184: #define open sys_open
                    185: #define write sys_write
                    186: 
                    187: #define INTERRUPTABLE_OPEN
                    188: #define INTERRUPTABLE_IO
                    189: 
                    190: /* Use the system provided termcap(3) library */
                    191: #define TERMINFO
                    192: 
                    193: /* The 48-bit versions are more winning for Emacs.  */
                    194: 
                    195: #define rand lrand48
                    196: #define srand srand48
                    197: 
                    198: /* In hpux, the symbol SIGIO is defined, but the feature
                    199:    does not really exist.
                    200: 
                    201:    Here we assume that signal.h is included before config.h
                    202:    so that we can override it here.  */
                    203: 
                    204: #undef SIGIO
                    205: 
                    206: /* USG systems tend to put everything declared static
                    207:    into the initialized data area, which becomes pure after dumping Emacs.
                    208:    Foil this.  Emacs carefully avoids static vars inside functions.  */
                    209: 
                    210: #define static
                    211: 
                    212: /* Define extra libraries to load.
                    213:    This should have -lBSD, but that library is said to make
                    214:    `signal' fail to work.  */
                    215: 
                    216: #ifdef HPUX_NET
                    217: #define LIBS_SYSTEM -ln
                    218: #else
                    219: #define LIBS_SYSTEM
                    220: #endif
                    221: 
                    222: /* Some additional system facilities exist.  */
                    223: 
                    224: #define HAVE_DUP2
                    225: #define HAVE_GETTIMEOFDAY
                    226: #define HAVE_VFORK
                    227: 
                    228: /* The following maps shared exec file to demand loaded exec.
                    229:    Don't do this as demand loaded exec is broken in hpux.  */
                    230: 
                    231: #if 0
                    232: 
                    233: /* Adjust a header field for the executable file about to be dumped.  */
                    234: 
                    235: #define ADJUST_EXEC_HEADER   \
                    236:   hdr.a_magic = ((ohdr.a_magic.file_type == OLDMAGIC.file_type) ?  \
                    237:                 NEWMAGIC : ohdr.a_magic);
                    238: 
                    239: #endif
                    240: 
                    241: /* Baud-rate values in tty status have nonstandard meanings.  */
                    242: 
                    243: #define BAUD_CONVERT  \
                    244: { 0, 50, 75, 110, 135, 150, 200, 300, 600, 900, 1200,  \
                    245:   1800, 2400, 3600, 4800, 7200, 9600, 19200, 38400 }
                    246: 
                    247: /* This is needed for HPUX version 6.2; it may not be needed for 6.2.1.  */
                    248: #define SHORT_CAST_BUG
                    249: 
                    250: /* Define killpg so that we have process group functionality under HP.  */
                    251: #define        killpg(PGRP, KSIG)      kill (-(PGRP), KSIG)

unix.superglobalmegacorp.com

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