home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / emacs-19.16 / src / s / dgux.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-12  |  9.5 KB  |  335 lines

  1. /* Definitions file for GNU Emacs running on Data General's DG/UX
  2.    version 4.32 and above.
  3.    Copyright (C) 1985, 1986, 1991 Free Software Foundation, Inc.
  4.  
  5. This file is part of GNU Emacs.
  6.  
  7. GNU Emacs is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2, or (at your option)
  10. any later version.
  11.  
  12. GNU Emacs is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with GNU Emacs; see the file COPYING.  If not, write to
  19. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21.  
  22. /*
  23.  *    Define symbols to identify the version of Unix this is.
  24.  *    Define all the symbols that apply correctly.
  25.  */
  26.  
  27. /* #define UNIPLUS */
  28. /* #define USG5 */
  29. /* #define USG */
  30. /* #define HPUX */
  31. /* #define UMAX */
  32. /* #define BSD4_1 */
  33. #define BSD4_2
  34. #define BSD4_3
  35. #define BSD4_4
  36. #define BSD
  37. #define SVR4
  38.  
  39. /* SYSTEM_TYPE should indicate the kind of system you are using.
  40.  It sets the Lisp variable system-type.  */
  41.  
  42. #define SYSTEM_TYPE "dgc-unix"
  43.  
  44. /* NOMULTIPLEJOBS should be defined if your system's shell
  45.  does not have "job control" (the ability to stop a program,
  46.  run some other program, then continue the first one).  */
  47.  
  48. /* #define NOMULTIPLEJOBS */
  49.  
  50. /* Emacs can read input using SIGIO and buffering characters itself,
  51.    or using CBREAK mode and making C-g cause SIGINT.
  52.    The choice is controlled by the variable interrupt_input.
  53.    Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO)
  54.  
  55.    SIGIO can be used only on systems that implement it (4.2 and 4.3).
  56.    CBREAK mode has two disadvantages
  57.      1) At least in 4.2, it is impossible to handle the Meta key properly.
  58.         I hear that in system V this problem does not exist.
  59.      2) Control-G causes output to be discarded.
  60.         I do not know whether this can be fixed in system V.
  61.  
  62.    Another method of doing input is planned but not implemented.
  63.    It would have Emacs fork off a separate process
  64.    to read the input and send it to the true Emacs process
  65.    through a pipe.
  66. */
  67.  
  68. #define INTERRUPT_INPUT
  69.  
  70. /* Letter to use in finding device name of first pty,
  71.   if system supports pty's.  'a' means it is /dev/ptya0  */
  72.  
  73. #define FIRST_PTY_LETTER 'p'
  74.  
  75. /*
  76.  *    Define HAVE_TIMEVAL if the system supports the BSD style clock values.
  77.  *    Look in <sys/time.h> for a timeval structure.
  78.  */
  79.  
  80. #define HAVE_TIMEVAL
  81.  
  82. /*
  83.  *    Define HAVE_SELECT if the system supports the `select' system call.
  84.  */
  85.  
  86. #define HAVE_SELECT
  87.  
  88. /*
  89.  *    Define HAVE_SETSID if the system supports POSIX disassociate
  90.  *      terminal.
  91.  */
  92. #define HAVE_SETSID
  93. /*
  94.  *    Define HAVE_SOCKETS if the system supports sockets.
  95.  */
  96.  
  97. #define HAVE_SOCKETS
  98.  
  99. /*
  100.  *    Define HAVE_UNIX_DOMAIN if the system supports Unix
  101.  *      domain sockets.
  102.  */
  103. #define HAVE_UNIX_DOMAIN
  104. /*
  105.  *    Define HAVE_PTYS if the system supports pty devices.
  106.  */
  107.  
  108. #define HAVE_PTYS
  109.  
  110. /*
  111.  *    Define NONSYSTEM_DIR_LIBRARY to make Emacs emulate
  112.  *      The 4.2 opendir, etc., library functions.
  113.  */
  114.  
  115. /* #define NONSYSTEM_DIR_LIBRARY */
  116.  
  117. /* Define this symbol if your system has the functions bcopy, etc. */
  118.  
  119. #define BSTRING
  120.  
  121. /* subprocesses should be defined if you want to
  122.    have code for asynchronous subprocesses
  123.    (as used in M-x compile and M-x shell).
  124.    This is generally OS dependent, and not supported
  125.    under most USG systems. */
  126.  
  127. #define subprocesses
  128.  
  129. /* If your system uses COFF (Common Object File Format) then define the
  130.    preprocessor symbol "COFF".
  131.  
  132.    DGUX can use either COFF or ELF; the default is ELF.
  133.    To compile for COFF (or BCS) use the TARGET_BINARY_INTERFACE
  134.    environment variable.   */
  135.  
  136. #if defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET)
  137. #undef ELF
  138. #ifndef COFF
  139. #define COFF
  140. #endif  /* COFF */
  141. #else   /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
  142. #undef COFF
  143. #ifndef ELF
  144. #define ELF
  145. #endif  /* ELF */
  146. #endif  /* defined(_DGUXCOFF_TARGET) || defined(_DGUXBCS_TARGET) */
  147.  
  148. #ifndef COFF /* People will probably find this apparently unreliable
  149.         till the NFS dumping bug is fixed.  */
  150.  
  151. /* It is possible to undump to ELF with DG/UX 5.4, but for revisions below
  152.    5.4.1 the undump MUST be done on a local file system, or the kernel will
  153.    panic.  ELF executables have the advantage of using shared libraries,
  154.    while COFF executables will still work on 4.2x systems. */
  155.  
  156. #define UNEXEC unexelf.o
  157.  
  158. /* This makes sure that all segments in the executable are undumped,
  159.    not just text, data, and bss.  In the case of Mxdb and shared
  160.    libraries, additional information is stored in other sections.
  161.    It does not hurt to have this defined if you don't use Mxdb or
  162.    shared libraries.  In fact, it makes no difference. */
  163.  
  164. /* Necessary for shared libraries and Mxdb debugging information. */
  165. #define USG_SHARED_LIBRARIES
  166. #endif
  167.  
  168. /* define MAIL_USE_FLOCK if the mailer uses flock
  169.    to interlock access to /usr/spool/mail/$USER.
  170.    The alternative is that a lock file named
  171.    /usr/spool/mail/$USER.lock.  */
  172.  
  173. /* #define MAIL_USE_FLOCK */
  174.  
  175. /* Define CLASH_DETECTION if you want lock files to be written
  176.    so that Emacs can tell instantly when you try to modify
  177.    a file that someone else has modified in his Emacs.  */
  178.  
  179. /* #define CLASH_DETECTION */
  180.  
  181. /* Define a replacement for the baud rate switch, since DG/UX uses a different
  182.    from BSD.  */
  183.  
  184. #define    BAUD_CONVERT    { 0, 110, 134, 150, 300, 600, 1200, 1800, 2400, \
  185.               4800, 9600, 19200, 38400 }
  186.  
  187. /*
  188.  *    Define NLIST_STRUCT if the system has nlist.h
  189.  */
  190.  
  191. #define    NLIST_STRUCT
  192.  
  193. /*
  194.  *      Make WM Interface Compliant.
  195.  */
  196.  
  197. #define XICCC
  198.  
  199. /* Here, on a separate page, add any special hacks needed
  200.    to make Emacs work on this system.  For example,
  201.    you might define certain system call names that don't
  202.    exist on your system, or that do different things on
  203.    your system and must be used only through an encapsulation
  204.    (Which you should place, by convention, in sysdep.c).  */
  205.  
  206. /* Some compilers tend to put everything declared static
  207.    into the initialized data area, which becomes pure after dumping Emacs.
  208.    On these systems, you must #define static as nothing to foil this.
  209.    Note that emacs carefully avoids static vars inside functions.  */
  210.  
  211. /* #define static */
  212.  
  213. /* DG/UX SPECIFIC ADDITIONS TO TEMPLATE FOLLOW: */
  214.  
  215. /* Use the Berkeley flavors of the library routines, instead of System V.  */
  216.  
  217. #define setpgrp(pid,pgrp) setpgrp2(pid,pgrp)
  218. #define getpgrp(pid) getpgrp2(pid)
  219.  
  220. /* Act like Berkeley. */
  221.  
  222. #define _setjmp(env) sigsetjmp(env,0)
  223. #define    _longjmp(env,val) longjmp(env,val)
  224.  
  225. /* Use TERMINFO instead of termcap */
  226.  
  227. #define    TERMINFO
  228.  
  229. /*
  230.  *    Define HAVE_TERMIOS since this is POSIX,
  231.  *    for terminal control.
  232.  */
  233.  
  234. #define HAVE_TERMIOS
  235.  
  236. /*
  237.  *    Use a Berkeley style sys/wait.h.
  238.  *      This makes WIF* macros operate on structures instead of ints.
  239.  */
  240.  
  241. #define _BSD_WAIT_FLAVOR
  242.  
  243. /*
  244.  *      Use BSD and POSIX-style signals.  This is crucial!
  245.  */
  246.  
  247. /* pmr@rock.concert.net says Emacs fails without this.  We don't know why.  */
  248. #define SYSTEM_MALLOC
  249.  
  250. /* MAKING_MAKEFILE must be defined in "ymakefile" before including config.h */
  251. #ifndef THIS_IS_YMAKEFILE
  252.  
  253. /* Make sure signal.h is included so macros below don't mess with it. */
  254. /* DG/UX include files prevent multiple inclusion. */
  255.  
  256. #include <signal.h>
  257.  
  258. /* but undefine the sigmask and sigpause macros since they will get
  259.    #define'd later. */
  260. #undef sigmask
  261. #undef sigpause
  262.  
  263. #define POSIX_SIGNALS
  264.  
  265. /* Define this if you use System 5 Release 4 Streams */
  266. #define SYSV4_PTYS
  267. #define open  sys_open
  268. #define close sys_close
  269. #define read  sys_read
  270. #define write sys_write
  271.  
  272. #define INTERRUPTIBLE_OPEN
  273. #define INTERRUPTIBLE_CLOSE
  274. /* can't hurt to define these, even though read/write should auto restart */
  275. #define INTERRUPTIBLE_IO
  276.  
  277. /* Can't use sys_signal because then etc/server.c would need sysdep.o.  */
  278. extern struct sigaction act, oact;
  279. #define signal(SIG,FUNC) berk_signal(SIG,FUNC)
  280.  
  281. #else /* THIS_IS_YMAKEFILE */
  282. /* force gcc to be used */
  283. CC=gcc
  284. #endif /* not THIS_IS_YMAKEFILE */
  285.  
  286. #define LD_SWITCH_SYSTEM
  287. /* Cannot depend on /lib/crt0.o because make does not understand an elink(1) */
  288. #define START_FILES pre-crt0.o
  289. #define LIBS_SYSTEM -ldgc /lib/crt0.o
  290. #define LIB_GCC /usr/lib/gcc/libgcc.a
  291.  
  292. #ifdef _M88KBCS_TARGET
  293. /* Karl Berry says: the environment
  294.    recommended by gcc (88/open, a.k.a. m88kbcs) doesn't support some system
  295.    functions, and gcc doesn't make it easy to switch environments.  */
  296. #define NO_GET_LOAD_AVG
  297. #endif
  298.  
  299. /* definitions for xmakefile production */
  300. #ifdef COFF
  301.  
  302. #define C_COMPILER \
  303.   TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -traditional
  304.  
  305. #define LINKER \
  306.   TARGET_BINARY_INTERFACE=m88kdguxcoff gcc -nostdlib
  307.  
  308. #define MAKE_COMMAND \
  309.   TARGET_BINARY_INTERFACE=m88kdguxcoff make
  310.  
  311. #define C_DEBUG_SWITCH
  312. #else /* not COFF */
  313.  
  314. #define C_COMPILER \
  315.   TARGET_BINARY_INTERFACE=m88kdguxelf gcc -traditional
  316.  
  317. #define LINKER \
  318.   TARGET_BINARY_INTERFACE=m88kdguxelf gcc -nostdlib
  319.  
  320. #define MAKE_COMMAND \
  321.   TARGET_BINARY_INTERFACE=m88kdguxelf make
  322.  
  323. #define C_DEBUG_SWITCH -g -V2 -mversion-03.00 -mstandard
  324. #endif /* COFF */
  325. /* Define switches affecting x/ymakefile */
  326. #define C_OPTIMIZE_SWITCH
  327.  
  328. /* Paul M Reilly <pmr@rock.concert.net> writes:
  329.    On some systems (DGUX comes to mind real fast) FASYNC causes
  330.    background writes to the terminal to stop all processes in the
  331.    process group when invoked under the csh (and probably any shell
  332.    with job control). This stops Emacs dead in its tracks when coming
  333.    up under X11. */
  334. #define BROKEN_FASYNC
  335.