home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / pub / linux / backup / star-1.3.1.tar.gz / star-1.3.1.tar / star-1.3.1 / include / xmconfig.h < prev   
C/C++ Source or Header  |  2000-05-28  |  35KB  |  1,356 lines

  1. /* @(#)xmconfig.h    1.27 00/05/28 Copyright 1995 J. Schilling */
  2. /*
  3.  *    Manual generated static definitions for machine configuration
  4.  *
  5.  *    Copyright (c) 1995 J. Schilling
  6.  *
  7.  *    This file is made to be included from <mconfig.h> and may be used
  8.  *    instead of configurations that are dynamically autogenerated.
  9.  *    Use only cpp instructions.
  10.  *
  11.  *    NOTE: SING: (Schily Is Not Gnu)
  12.  */
  13. /*
  14.  * This program is free software; you can redistribute it and/or modify
  15.  * it under the terms of the GNU General Public License as published by
  16.  * the Free Software Foundation; either version 2, or (at your option)
  17.  * any later version.
  18.  *
  19.  * This program is distributed in the hope that it will be useful,
  20.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  21.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  22.  * GNU General Public License for more details.
  23.  *
  24.  * You should have received a copy of the GNU General Public License
  25.  * along with this program; see the file COPYING.  If not, write to
  26.  * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  27.  */
  28.  
  29. #ifndef _XMCONFIG_H
  30. #define _XMCONFIG_H
  31.  
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35.  
  36. /*
  37.  * 1) Compiler and language related headers
  38.  *
  39.  * define PROTOTYPES    to use ansi C prototypes
  40.  *
  41.  * define HAVE_ELF    Object files are stored in System V.4 ELF format.
  42.  *
  43.  * define HAVE_COFF    Object files are stored in System V.2 COFF format.
  44.  *
  45.  * define HAVE_AOUT    Object files are stored in ATT/BSD a.out format.
  46.  *
  47.  * define HAVE_STDARG_H    to use stdarg.h, else use varargs.h
  48.  *            NOTE: SaberC on a Sun has prototypes but no stdarg.h.
  49.  *
  50.  * define HAVE_VA_COPY    have va_copy() to do assignements of va_list type objects.
  51.  * define HAVE__VA_COPY    have __va_copy() to do assignements of va_list type objects.
  52.  *
  53.  * define HAVE_STDLIB_H    to use general utility defines (malloc(), size_t ...)
  54.  *            some C library prototypes my be found here
  55.  *
  56.  * define HAVE_STRING_H to get NULL and string function prototypes
  57.  *
  58.  * define HAVE_STRINGS_H to get BSD string function prototypes
  59.  *
  60.  * define HAVE_STDC_HEADERS to declare the presence of other ansi C headers
  61.  * define STDC_HEADERS     same as above (GNU name)
  62.  *
  63.  * define HAVE_LONGLONG    to use long long for space/transfer calculations
  64.  *
  65.  * define HAVE_SIZE_T    The type size_t is present
  66.  * define NO_SIZE_T    The type size_t is not present
  67.  *
  68.  *
  69.  * 2) Operating system related headers
  70.  *
  71.  * define HAVE_OSDEF    to prevent later definitions to overwrite current
  72.  *
  73.  * define __NOT_SVR4__    Not a real SVR4 implementation
  74.  *
  75.  * define HAVE_UNISTD_H    to use access, lockf and lseek constants
  76.  *            syscall prototypes may be found here also
  77.  *            use sys/file.h otherwise for above constants
  78.  *
  79.  * define HAVE_FCNTL_H    to use access, O_XXX constants for open()
  80.  *            and open(), creat(), fcntl() prototypes
  81.  *            use sys/file.h otherwise for above constants
  82.  *
  83.  * define HAVE_DIRENT_H    to use dirent.h instead of the old BSD sys/dir.h
  84.  * define HAVE_SYS_DIR_H to use the old BSD sys/dir.h, otherwise no readdir()
  85.  * define HAVE_NDIR_H    to use ndir.h
  86.  * define HAVE_SYS_NDIR_H to use sys/ndir.h
  87.  *
  88.  * define HAVE_MALLOC_H if malloc.h exists
  89.  *
  90.  * define HAVE_TERMIOS_H to use posix terminal and session control (termios.h)
  91.  * define HAVE_TERMIO_H    to use SV terminal control (termio.h) *- no setpgrp -*
  92.  *            Else use BSD style sgttyb and setpgrp (ioctl.h)
  93.  *            XXX session control should be another define XXX
  94.  * 
  95.  * define HAVE_SYS_TIME_H may include sys/time.h for struct timeval
  96.  *            used internally in timedefs.h
  97.  *
  98.  * define HAVE_UTIMES    to use BSD utimes() and sys/time.h
  99.  * define HAVE_UTIME_H    to use utime.h for the utimbuf structure declaration
  100.  *            Else declare struct utimbuf yourself.
  101.  *
  102.  * define HAVE_WAIT_H    to use wait.h for prototypes and union wait
  103.  * define HAVE_SYS_WAIT_H else use sys/wait.h
  104.  *            Else declare it by yourself.
  105.  *
  106.  * define HAVE_SYS_PARAM_H if it is ok to include sys/param.h
  107.  *
  108.  * define HAVE_SYS_SYSTEMINFO_H to use sysinfo()
  109.  * define HAVE_SYS_UTSNAME_H to use uname()
  110.  *
  111.  * define HAVE_SYS_PRIOCNTL_H to use priocntl() instead of nice()/setpriority()
  112.  * define HAVE_SYS_RTPRIOCNTL_H if the system supports real time classes.
  113.  *
  114.  * define HAVE_SYS_MTIO_H to use mtio definitions from sys/mtio.h
  115.  * define HAVE_MTGET_DSREG if struct mtget contains mt_dsreg (drive status)
  116.  * define HAVE_MTGET_RESID if struct mtget contains mt_resid (residual count)
  117.  * define HAVE_MTGET_FILENO if struct mtget contains mt_fileno (file #)
  118.  * define HAVE_MTGET_BLKNO if struct mtget contains mt_blkno (block #0
  119.  *
  120.  * define MAJOR_IN_MKDEV if we should include sys/mkdev.h to get 
  121.  *            major(), minor() and makedev()
  122.  *
  123.  * define MAJOR_IN_SYSMACROS if we should include sys/sysmacros.h to get 
  124.  *            major(), minor() and makedev()
  125.  *
  126.  *            ... else look in sys/types.h for major()
  127.  *
  128.  * 3) Miscellaneous operating system/library/processor related things
  129.  *
  130.  * define HAVE_USG_STDIO to enable the use USG stdio.h internals
  131.  *            To to this we need:
  132.  *            f->_flag & _IONBF    ... Unbuffered
  133.  *            f->_flag & _IOERR    ... I/O error
  134.  *            f->_flag & _IOEOF    ... End of File
  135.  *            f->_cnt            ... r/w count in buf
  136.  *            f->_ptr            ... pointer into buf
  137.  *            _filbuf(FILE * f)    ... fill buffer, return 1st ch
  138.  *            _flsbuf(unsigned char *, FILE * f) ... flush buffer
  139.  *
  140.  * define HAVE_BRK    may use brk()
  141.  * 
  142.  * define HAVE_SBRK    may use sbrk()
  143.  * 
  144.  *
  145.  * define HAVE_DTOA    use the 4.4BSD function __dtoa() instead of
  146.  *            the AT&T standard functions ecvt()/fcvt()/gcvt()
  147.  *
  148.  * define HAVE_GETCWD    use SysV getcwd() instead of BSD getwd()
  149.  *
  150.  * define HAVE_STRERROR    may use strerror() instead of sys_errlist[] and sys_nerr
  151.  *
  152.  * define HAVE_MEMMOVE    should use memmove() instead of bcopy()
  153.  *
  154.  * define HAVE_MLOCKALL    may use mlockall() to lock the whole process into memory
  155.  *
  156.  * define HAVE_MMAP    may map memory (sys/types.h + sys/mman.h)
  157.  * define HAVE_SMMAP    may map anonymous memory to get shared mem
  158.  *
  159.  * define HAVE_USGSHM    may get shared memory SV style (sys/types.h + sys/ipc.h)
  160.  *
  161.  * define HAVE_USGSEM    may use SysV style shared memory and semaphores.
  162.  *            May use shared memory and semaphores to manage a
  163.  *            sharing buffer and its synchronization.
  164.  *            If this is not defined, use mmap and flock.
  165.  *
  166.  * define HAVE_MSEM    Has OSF/1 style memory semaphores.
  167.  *            Use instead of SysV semaphores or flock
  168.  *            for shared memory synchronisation.
  169.  *
  170.  * define HAVE_LDSTUB    Has SPARC ldstub atomic instruction.
  171.  *            May be used instead of system V semaphores or flock
  172.  *            for shared memory synchronisation.
  173.  *
  174.  * define HAVE_XCHG    Has i386 xchg atomic instruction.
  175.  *            May be used instead of system V semaphores or flock
  176.  *            for shared memory synchronisation.
  177.  *
  178.  * define HAVE_FLOCK    Use flock for synchronization on logfiles.
  179.  *            If this is not defined use lockf.
  180.  *
  181.  * define HAVE_FCHDIR    The fchdir system call may be used
  182.  *            to change the current directory and back.
  183.  *            Else remember the pathname and use chdir.
  184.  *
  185.  * define HAVE_STATVFS    The statvfs and fstatvfs calls are available.
  186.  *            Else get filesystem statistics with
  187.  *            statfs or getmnt (on ultrix).
  188.  *
  189.  * define HAVE_QUOTA    The quota or quotactl system calls are available.
  190.  *
  191.  * define HAVE_YP    To use yellow pages.
  192.  *
  193.  * define HAVE_SHADOW    To use shadow password file.
  194.  *
  195.  * define HAVE_SETREUID    have BSD setreuid()
  196.  * define HAVE_SETRESUID have HPUX only ??? setresuid()
  197.  * define HAVE_SETEUID    have SVr4 seteuid()
  198.  *
  199.  * define HAVE_LCHOWN    Need to use lchown() instead of chown() on symlinks.
  200.  *
  201.  * define HAVE_PROCFS    SVr4 style procfs is available.
  202.  *
  203.  * define HAVE_PROCFS2    SVr4.2 (SMP) style procfs is available.
  204.  *
  205.  * define HAVE_SIGINFO    Use waitid and the siginfo_t structure for waiting
  206.  *            for child processes.
  207.  *            Else use wait3 and union wait.
  208.  *
  209.  * define HAVE_WAIT3    Have wait3.
  210.  *
  211.  * define HAVE_WAITPID    Use waitpid and no resource usage instead of wait3.
  212.  *
  213.  * define HAVE_UNION_WAIT Have union wait in wait.h
  214.  *
  215.  * define HAVE_GETHOSTNAME to use gethostname()
  216.  *
  217.  * define HAVE_STREAMS    Use streams networking calls. Else use sockets.
  218.  *
  219.  * define HAVE_STRPTYS    Use SVr4 style streams pseudo ttys.
  220.  *
  221.  * define HAVE_POLL    Use the poll system call to wait for I/O.
  222.  *            Else use select.
  223.  *
  224.  * define HAVE_SELECT    Use the select system call to wait for I/O.
  225.  *
  226.  * define HAVE_TIRPC    The remote procedure call library is of the
  227.  *            transport independent flavour.
  228.  *
  229.  * define GID_T        The type to use for the getgroups() array.
  230.  *            This should be gid_t, but some BSD based systems
  231.  *            must have int there.
  232.  *
  233.  *
  234.  * 4) Specials for libschily
  235.  *
  236.  * define HAVE_SCANSTACK Scanning of the stack is implemented for this
  237.  *            architecture:
  238.  *                getfp()
  239.  *            and the derived functions:
  240.  *                handlecond(), raisecond()
  241.  *            are working.
  242.  *
  243.  * XXX It is most likely that getfp() does not really work correctly
  244.  * XXX if getav0() is not working.
  245.  * XXX For this reason, HAVE_GETAV0 is not used anymore.
  246.  * XXX Instead avoffset.h is included and the existence of
  247.  * XXX AV_OFFSET and FP_INDIR is checked instead.
  248.  *
  249.  * define HAVE_GETAV0    Scanning of stack and locating the arg vector
  250.  *            is implemented for this architecture:
  251.  *                getav0()
  252.  *            is working.
  253.  *            get_progname() in saveargs.c will work in the main
  254.  *            thread without a prior call to save_args().
  255.  *
  256.  */
  257.  
  258. #if defined(sun) || defined(__sun) || defined(__sun__)
  259. #    ifndef    IS_SUN
  260. #    define    IS_SUN
  261. #    endif
  262. #endif
  263.  
  264. #if    defined(SOL2) || defined(SOL2) || defined(S5R4) || defined(__S5R4) \
  265.                             || defined(SVR4)
  266. #    ifndef    __SVR4
  267. #        define    __SVR4
  268. #    endif
  269. #endif
  270.  
  271. #ifdef    __SVR4
  272. #    ifndef    SVR4
  273. #        define    SVR4
  274. #    endif
  275. #endif
  276.  
  277. /*
  278.  * SunOS 4.x
  279.  */
  280. #if defined(IS_SUN) && !defined(__SVR4)
  281.     /*
  282.      * Sun C defines __STDC__ as zero. 
  283.      */
  284. #    ifdef __STDC__
  285. #        define    PROTOTYPES
  286. #        ifndef SABER
  287. #            define    HAVE_STDARG_H
  288. #            define    HAVE_LONGLONG
  289. #        endif
  290. #    endif
  291. #    define    HAVE_AOUT
  292. #    define    HAVE_STDLIB_H
  293. #    define    HAVE_STRING_H
  294. #    define    HAVE_UNISTD_H
  295. #    define    HAVE_FCNTL_H
  296. #    define    HAVE_DIRENT_H
  297. #    define    HAVE_SYS_DIR_H
  298. #    define    HAVE_TERMIOS_H
  299. #    define    HAVE_TERMIO_H
  300. #    define    HAVE_SYS_TIME_H
  301. #    define    HAVE_UTIMES
  302. #    define    HAVE_UTIME_H
  303. #    define    HAVE_SYS_WAIT_H
  304. #    define    HAVE_SYS_PARAM_H
  305. #    define    HAVE_SYS_UTSNAME_H
  306. #    define    HAVE_SYS_MTIO_H
  307. #    define    HAVE_MTGET_DSREG
  308. #    define    HAVE_MTGET_RESID
  309. #    define    HAVE_MTGET_FILENO
  310. #    define    HAVE_MTGET_BLKNO
  311. #    define    MAJOR_IN_SYSMACROS
  312. #    define    HAVE_UNION_WAIT
  313. #    define    HAVE_USG_STDIO
  314. #    define    HAVE_GETCWD
  315. #    define    HAVE_MLOCKALL
  316. #    define    HAVE_MMAP
  317. #    define    HAVE_SMMAP
  318. #    define    HAVE_USGSHM
  319. #    define    HAVE_USGSEM
  320. #    ifdef sparc
  321. #        define    HAVE_LDSTUB
  322. #    endif
  323. #    define    HAVE_FLOCK
  324. #    define    HAVE_FCHDIR
  325. #    define    HAVE_QUOTA
  326. #    define    HAVE_YP
  327. #    define    HAVE_SETREUID
  328. #    define    HAVE_WAIT3
  329. #    define    HAVE_GETHOSTNAME
  330. #    define    HAVE_SELECT
  331. #    define    GID_T        int
  332. #    define    USLEEPRETURN_T    unsigned int
  333. #    define    HAVE_GETAV0    /* SunOS < 5 only runs on sparc/mc680xx */
  334. #    define    HAVE_SCANSTACK    /* SunOS < 5 only runs on sparc/mc680xx */
  335. #endif
  336.  
  337. /*
  338.  * AIX
  339.  */
  340. #if    defined(_IBMR2) || defined(_AIX)
  341. #    define    IS_UNIX        /* ??? really ??? */
  342. #    define    NO_FLOATINGPOINT/* XXX until isinf()/isnan() is solved*/
  343. #    define    USE_FLOATINGARGS/* Use up args from floatingpoint format */
  344. #ifndef    PROTOTYPES
  345. #    define    PROTOTYPES
  346. #endif
  347. #    define    HAVE_COFF
  348. #    define    HAVE_STDARG_H
  349. #    define    HAVE_STDLIB_H
  350. #    define    HAVE_STRING_H
  351. #    define    HAVE_LONGLONG
  352. #    define    HAVE_UNISTD_H
  353. #    define    HAVE_FCNTL_H
  354. #    define    HAVE_DIRENT_H
  355. #    define    HAVE_TERMIOS_H
  356. #    define    HAVE_TERMIO_H
  357. #    define    HAVE_SYS_TIME_H
  358. #    define    HAVE_UTIMES
  359. #    define    HAVE_UTIME_H
  360. #    define    HAVE_SYS_WAIT_H
  361. #    define    HAVE_SYS_PARAM_H
  362. #    define    HAVE_SYS_UTSNAME_H
  363. #    define    MAJOR_IN_SYSMACROS
  364. /*#    define    HAVE_USG_STDIO*/
  365. #    define    HAVE_GETCWD
  366. #    define    HAVE_STRERROR
  367. #    define    HAVE_MEMMOVE
  368. #    define    HAVE_MMAP
  369. #    define    HAVE_SMMAP
  370. #    define    HAVE_USGSHM
  371. #    define    HAVE_USGSEM
  372. #    define    HAVE_MSEM
  373. #    define    HAVE_FLOCK
  374. #    define    HAVE_QUOTA
  375. #    define    HAVE_YP
  376. #    define    HAVE_WAIT3
  377. #    define    HAVE_WAITPID
  378. #    define    HAVE_GETHOSTNAME
  379. #    define    HAVE_STREAMS
  380. #    define    HAVE_POLL
  381. #    define    HAVE_SELECT
  382.  
  383. #    define    GID_T        gid_t
  384. #    define    USLEEPRETURN_T    int
  385. #endif
  386.  
  387. /*
  388.  * Silicon Graphics    (must be before SVR4)
  389.  */
  390. #if defined(sgi) || defined(__sgi)
  391. #    define    __NOT_SVR4__    /* Not a real SVR4 implementation */
  392.  
  393. #    define    PROTOTYPES
  394. #    define    HAVE_ELF
  395. #    define    HAVE_COFF
  396. #    define    HAVE_STDARG_H
  397. #    define    HAVE_LONGLONG
  398. #    define    HAVE_UNISTD_H
  399. #    define    HAVE_FCNTL_H
  400. #    define    HAVE_DIRENT_H
  401. #    define    HAVE_TERMIOS_H
  402. #    define    HAVE_TERMIO_H
  403. #    define    HAVE_SYS_TIME_H
  404. #    define    HAVE_UTIMES
  405. #    define    HAVE_UTIME_H
  406. #    define    HAVE_WAIT_H
  407. #    define    HAVE_SYS_WAIT_H
  408. #    define    HAVE_SYS_PARAM_H
  409. #    define    HAVE_SYS_SYSTEMINFO_H
  410. #    define    HAVE_SYS_UTSNAME_H
  411. #    define    HAVE_SYS_MTIO_H
  412. #    define    HAVE_MTGET_DSREG
  413. #    define    HAVE_MTGET_RESID
  414. #    define    HAVE_MTGET_FILENO
  415. #    define    HAVE_MTGET_BLKNO
  416. #    define    MAJOR_IN_MKDEV
  417. #    define    HAVE_USG_STDIO
  418. #    define    HAVE_GETCWD
  419. #    define    HAVE_STRERROR
  420. #    define    HAVE_MEMMOVE
  421. #    define    HAVE_MMAP
  422. #    define    HAVE_SMMAP
  423. #    define    HAVE_USGSHM
  424. #    define    HAVE_USGSEM
  425. #    define    HAVE_FLOCK
  426. #    define    HAVE_FCHDIR
  427. #    define    HAVE_STATVFS
  428. #    define    HAVE_QUOTA
  429. #    define    HAVE_YP
  430. #    define    HAVE_SHADOW
  431. #    define    HAVE_PROCFS
  432. #    define    HAVE_SIGINFO
  433. #    define    HAVE_WAIT3
  434. #    define    HAVE_WAITPID
  435. #    define    HAVE_GETHOSTNAME
  436. #    define    HAVE_STREAMS
  437. #    define    HAVE_STRPTYS
  438. #    define    HAVE_POLL
  439. #    define    HAVE_SELECT
  440. #    define    HAVE_STRPTYS
  441. #    define    GID_T        gid_t
  442. /*#    define    USLEEPRETURN_T    unsigned int*/
  443. #    define    vfork        fork
  444. #endif
  445.  
  446. #if defined(mips) && !(defined(ultrix) || defined(sony) || defined(sgi))
  447. #    define    HAVE_COFF
  448. #    define    HAVE_UNISTD_H
  449. #    define    HAVE_USGSHM
  450. #    define    HAVE_USGSEM
  451. #    define    HAVE_FLOCK
  452. #    define    HAVE_YP
  453. #    define    GID_T        int
  454. #    define    USLEEPRETURN_T    unsigned int
  455. #endif
  456.  
  457. #if defined(sony)
  458. #    ifdef mips
  459. #        define    HAVE_COFF
  460. #    else
  461. #        define    HAVE_AOUT
  462. #    endif
  463. #    define    HAVE_USGSHM
  464. #    define    HAVE_USGSEM
  465. #    define    HAVE_FLOCK
  466. #    define    HAVE_QUOTA
  467. #    define    HAVE_YP
  468. #    define    GID_T        int
  469. #    define    USLEEPRETURN_T    unsigned int
  470. #    ifndef    SEEK_SET
  471. #    define    SEEK_SET    0 /* Set file pointer to "offset" */
  472. #    define    SEEK_CUR    1 /* Set file pointer to current plus "offset" */
  473. #    define    SEEK_END    2 /* Set file pointer to EOF plus "offset" */
  474. #    endif
  475. #endif
  476.  
  477. /*
  478.  * Digital UNIX (OSF1)
  479.  */
  480. #if defined(__osf__)
  481. #    define    PROTOTYPES
  482. #    define    HAVE_OSDEF    /* prevent later definitions to overwrite current */
  483. /*#    define    __NOT_SVR4__*/    /* Not a real SVR4 implementation */
  484.  
  485. /*#    define    HAVE_ELF*/
  486. #    define    HAVE_COFF
  487. /*#    define    HAVE_AOUT*/
  488. #    define    HAVE_STDARG_H
  489. /*#    define    HAVE_VA_COPY*/
  490. #    define    HAVE_STDLIB_H
  491. #    define    HAVE_STRING_H
  492. #    define    HAVE_STDC_HEADERS
  493. #    define    STDC_HEADERS    /* GNU name */
  494. #    define    HAVE_LONGLONG
  495.  
  496. #    define    HAVE_UNISTD_H
  497. #    define    HAVE_FCNTL_H
  498. #    define    HAVE_DIRENT_H
  499. #    define    HAVE_SYS_DIR_H
  500. /*#    define    HAVE_NDIR_H*/
  501. /*#    define    HAVE_SYS_NDIR_H*/
  502. #    define    HAVE_TERMIOS_H
  503. #    define    HAVE_TERMIO_H
  504. #    define    HAVE_SYS_TIME_H
  505. #    define    HAVE_UTIMES
  506. #    define    HAVE_UTIME_H
  507. #    define    HAVE_WAIT_H
  508. #    define    HAVE_SYS_WAIT_H
  509. #    define    HAVE_SYS_PARAM_H
  510. #    define    HAVE_SYS_SYSTEMINFO_H
  511. #    define    HAVE_SYS_UTSNAME_H
  512. #    define    HAVE_SYS_PRIOCNTL_H
  513. #    define    HAVE_SYS_RTPRIOCNTL_H
  514. #    define    HAVE_SYS_MTIO_H
  515. #    define    HAVE_MTGET_DSREG
  516. #    define    HAVE_MTGET_RESID
  517. #    define    HAVE_MTGET_FILENO
  518. #    define    HAVE_MTGET_BLKNO
  519. /*#    define    MAJOR_IN_MKDEV*/
  520. #    define    MAJOR_IN_SYSMACROS
  521. #    define    HAVE_USG_STDIO
  522. /*#    define    HAVE_DTOA*/
  523. #    define    HAVE_GETCWD
  524. #    define    HAVE_STRERROR
  525. #    define    HAVE_MEMMOVE
  526. #    define    HAVE_MLOCKALL
  527. #    define    HAVE_MMAP
  528. #    define    HAVE_SMMAP
  529. #    define    HAVE_USGSHM
  530. #    define    HAVE_USGSEM
  531. #    define    HAVE_MSEM
  532. /*#    define    HAVE_LDSTUB*/
  533. /*#    define    HAVE_XCHG*/
  534. #    define    HAVE_FLOCK
  535. #    define    HAVE_FCHDIR
  536. #    define    HAVE_STATVFS
  537. #    define    HAVE_QUOTA
  538. #    define    HAVE_YP
  539. /*#    define    HAVE_SHADOW*/    /* No, but C2 */
  540. #    define    HAVE_SETREUID
  541. /*#    define    HAVE_SETRESUID*/
  542. #    define    HAVE_SETEUID
  543. #    define    HAVE_LCHOWN
  544. #    define    HAVE_PROCFS
  545. /*#    define    HAVE_PROCFS2*/    /* No */
  546. #    define    HAVE_SIGINFO
  547. #    define    HAVE_WAIT3
  548. #    define    HAVE_WAITPID
  549. #    define    HAVE_UNION_WAIT
  550. #    define    HAVE_GETHOSTNAME
  551. #    define    HAVE_STREAMS
  552. #    define    HAVE_STRPTYS
  553. #    define    HAVE_POLL
  554. #    define    HAVE_SELECT    /* XXX needs sys/select.h */
  555. /*#    define    HAVE_TIRPC*/
  556. #    define    GID_T        gid_t
  557. #    define    USLEEPRETURN_T    int
  558. /*#    define    USLEEPRETURN_T    void*/
  559. /*#    define    USLEEPISVOID*/
  560.  
  561. /*#    define    HAVE_GETAV0*/
  562. /*#    define    HAVE_SCANSTACK*/
  563. #endif
  564.  
  565. #if defined(ultrix)
  566. #    ifdef mips
  567. #        define    HAVE_COFF
  568. #    else
  569. #        define    HAVE_AOUT
  570. #    endif
  571. #    define    HAVE_STDLIB_H
  572. #    define    HAVE_UNISTD_H
  573. #    define    HAVE_SYS_DIR_H
  574. #    define    HAVE_TERMIOS_H
  575. #    define    HAVE_UTIME_H
  576. #    define    HAVE_USGSHM
  577. #    define    HAVE_USGSEM
  578. #    define    HAVE_FLOCK
  579. #    define    HAVE_QUOTA
  580. #    define    HAVE_YP
  581. #    define    GID_T        int
  582. #    define    USLEEPRETURN_T    unsigned int
  583. #endif
  584.  
  585. /*
  586.  * HP/UX
  587.  */
  588. #if defined(__hpux) || defined(hpux)
  589. /*#    define    PROTOTYPES*/
  590. #    define    HAVE_AOUT
  591. #    define    HAVE_STDARG_H
  592. #    define    HAVE_UNISTD_H
  593. #    define    HAVE_FCNTL_H
  594. #    define    HAVE_DIRENT_H
  595. #    define    HAVE_TERMIOS_H
  596. #    define    HAVE_TERMIO_H
  597. #    define    HAVE_SYS_TIME_H
  598. #    define    HAVE_UTIME_H
  599. #    define    HAVE_SYS_WAIT_H
  600. #    define    HAVE_SYS_PARAM_H
  601. #    define    HAVE_SYS_UTSNAME_H
  602. #    define    HAVE_SYS_MTIO_H
  603. #    define    MAJOR_IN_SYSMACROS
  604. #    define    HAVE_GETCWD
  605. #    define    HAVE_STRERROR
  606. #    define    HAVE_MEMMOVE
  607. #    define    HAVE_MMAP
  608. #    define    HAVE_SMMAP
  609. #    define    HAVE_USGSHM
  610. #    define    HAVE_USGSEM
  611. #if    0
  612. #        define    HAVE_MSEM
  613. #    endif
  614. #    define    HAVE_FCHDIR
  615. #    define    HAVE_QUOTA
  616. #    define    HAVE_YP
  617. #    define    HAVE_SETRESUID
  618. #    define    HAVE_WAIT3
  619. #    define    HAVE_WAITPID
  620. #    define    HAVE_GETHOSTNAME
  621. #    define    HAVE_STREAMS
  622. #    define    HAVE_STRPTYS
  623. #    define    HAVE_POLL
  624. #    define    HAVE_SELECT
  625. #    define    GID_T        gid_t
  626. /*#    define    USLEEPRETURN_T    unsigned int*/
  627. #endif
  628.  
  629. /*
  630.  * Data General
  631.  */
  632. #if defined(__DGUX__)
  633. #    define    PROTOTYPES
  634. #    define    HAVE_ELF
  635. #    define    HAVE_STDARG_H
  636. #    define    HAVE_UNISTD_H
  637. #    define    HAVE_DIRENT_H
  638. #    define    HAVE_TERMIOS_H
  639. #    define    HAVE_SYS_TIME_H
  640. #    define    HAVE_UTIMES
  641. #    define    HAVE_UTIME_H
  642. #    define    HAVE_SYS_PARAM_H
  643. #    undef    HAVE_MTGET_DSREG
  644. #    undef    HAVE_MTGET_RESID
  645. #    undef    HAVE_MTGET_FILENO
  646. #    undef    HAVE_MTGET_BLKNO
  647. #    define    mt_type        mt_model
  648. #    define    mt_dsreg    mt_status1
  649. #    define    mt_erreg    mt_status2
  650. #    define    HAVE_GETCWD
  651. #    define    HAVE_STRERROR
  652. #    define    HAVE_MEMMOVE
  653. #    define    HAVE_USGSEM
  654. #    if defined(__i386_) || defined(i386)
  655. #        define    HAVE_XCHG
  656. #    endif
  657.     /*
  658.      * DGUX hides its flock as dg_flock.
  659.      */
  660. #    define    HAVE_FLOCK
  661. #    define    flock    dg_flock
  662. #    define    HAVE_FCHDIR
  663. #    define    HAVE_STATVFS
  664. #    undef    HAVE_QUOTA
  665. #    define    HAVE_YP
  666. #    define    HAVE_SHADOW
  667. #    undef    HAVE_PROCFS
  668. #    undef    HAVE_PROCFS2
  669. #    define    HAVE_WAIT3
  670. #    define    HAVE_UNION_WAIT
  671. /*#    define    HAVE_GETHOSTNAME*/
  672. #    define    HAVE_STREAMS
  673. #    define    HAVE_STRPTYS
  674. #    define    HAVE_POLL
  675. #    define    HAVE_SELECT
  676. #    undef    HAVE_TIRPC
  677. #    define    GID_T        gid_t
  678. #    define    USLEEPRETURN_T    unsigned int
  679.     /*
  680.      * Use the BSD style wait on DGUX to get the resource usages of child
  681.      * processes.
  682.      */
  683. #    define    _BSD_WAIT_FLAVOR
  684.  
  685. /*#    define    HAVE_GETAV0*/
  686. #    ifdef    i386
  687. #        define    HAVE_SCANSTACK
  688. #    endif
  689. #endif
  690.  
  691. /*
  692.  * Linux
  693.  */
  694. #if defined(__linux__) || defined(__linux)
  695. #    define    PROTOTYPES
  696. #    ifdef    __ELF__
  697. #        define    HAVE_ELF
  698. #    else
  699. #        define    HAVE_AOUT
  700. #    endif
  701. #    define    HAVE_STDARG_H
  702. #    define    HAVE_STDLIB_H
  703. #    define    HAVE_STRING_H
  704. #    define    HAVE_STDC_HEADERS
  705. #    define    STDC_HEADERS    /* GNU name */
  706. #    define    HAVE_LONGLONG
  707. #    define    HAVE_UNISTD_H
  708. #    define    HAVE_FCNTL_H
  709. #    define    HAVE_DIRENT_H
  710. #    define    HAVE_TERMIOS_H
  711. #    define    HAVE_TERMIO_H
  712. #    define    HAVE_SYS_TIME_H
  713. #    define    HAVE_UTIMES
  714. #    define    HAVE_UTIME_H
  715. /*#    define    HAVE_WAIT_H*/
  716. #    define    HAVE_SYS_WAIT_H
  717. #    define    HAVE_SYS_PARAM_H
  718. #    define    HAVE_SYS_UTSNAME_H
  719. #    define    HAVE_SYS_MTIO_H
  720. #    define    HAVE_MTGET_DSREG
  721. #    define    HAVE_MTGET_RESID
  722. #    define    HAVE_MTGET_FILENO
  723. #    define    HAVE_MTGET_BLKNO
  724. #    define    MAJOR_IN_SYSMACROS
  725. #    define    HAVE_GETCWD
  726. #    define    HAVE_STRERROR
  727. #    define    HAVE_MEMMOVE
  728. #    define    HAVE_MLOCKALL
  729. #    define    HAVE_MMAP
  730. /*#    define    HAVE_SMMAP*/
  731. #    define    HAVE_USGSHM
  732. #    define    HAVE_USGSEM
  733. #    define    HAVE_FLOCK
  734. #    define    HAVE_FCHDIR
  735. #    define    HAVE_STATVFS
  736. #    define    HAVE_QUOTA
  737. #    define    HAVE_YP
  738. #    define    HAVE_SETREUID    /* >= Linux 1.1.37 */
  739. #    define    HAVE_SETEUID
  740. /*#    define    HAVE_PROCFS*/    /* ??? */
  741. /*#    define    HAVE_PROCFS2*/
  742. #    define    HAVE_WAIT3
  743. #    define    HAVE_WAITPID
  744. #    define    HAVE_GETHOSTNAME
  745. #    define    HAVE_SELECT
  746.  
  747. #    define    GID_T        gid_t
  748. #    define    USLEEPRETURN_T    void
  749. #    define    USLEEPISVOID
  750.  
  751. /*#    define    HAVE_GETAV0*/
  752. #    define    HAVE_SCANSTACK
  753. #endif
  754.  
  755.  
  756. #if defined(OLD__bsdi__)
  757. #    define    HAVE_MSEM    /* ??? */
  758. #    define    F_ULOCK    0    /* Unlock a previously locked region */
  759. #    define    F_LOCK    1    /* Lock a region for exclusive use */
  760. #    define    F_TLOCK    2    /* Test and lock a region for exclusive use */
  761. #    define    F_TEST    3    /* Test a region for other processes locks */
  762. #endif
  763.  
  764. /*
  765.  * Prototype for FreeBSD / NetBSD / OpenBSD / BSD/OS
  766.  */
  767. #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
  768. #    define    PROTOTYPES
  769. #    define    HAVE_AOUT
  770. #    define    HAVE_STDARG_H
  771. #    define    HAVE_STDLIB_H
  772. #    define    HAVE_STRING_H
  773. #    define    HAVE_STDC_HEADERS
  774. #    define    STDC_HEADERS    /* GNU name */
  775. #    define    HAVE_LONGLONG
  776. #    define    HAVE_UNISTD_H
  777. #    define    HAVE_FCNTL_H
  778. #    define    HAVE_DIRENT_H
  779. #    define    HAVE_TERMIOS_H
  780. #    define    HAVE_SYS_TIME_H
  781. #    define    HAVE_UTIMES
  782. #    define    HAVE_UTIME_H
  783. #    define    HAVE_SYS_WAIT_H
  784. #    define    HAVE_SYS_PARAM_H
  785. #    define    HAVE_SYS_UTSNAME_H
  786. #    define    HAVE_SYS_MTIO_H
  787. #    define    HAVE_MTGET_DSREG
  788. #    define    HAVE_MTGET_RESID
  789. #    define    HAVE_MTGET_FILENO
  790. #    define    HAVE_MTGET_BLKNO
  791. /*#    define    HAVE_USG_STDIO*/
  792. #    define    HAVE_DTOA
  793. #    define    HAVE_GETCWD
  794. #    define    HAVE_STRERROR
  795. #    define    HAVE_MEMMOVE
  796. #    define    HAVE_MMAP
  797. #    define    HAVE_SMMAP
  798. #    define    HAVE_USGSHM
  799. #    define    HAVE_USGSEM
  800. #    ifdef sparc
  801. #        define    HAVE_LDSTUB
  802. #    endif
  803. #    ifdef i386
  804. #        define    HAVE_XCHG
  805. #    endif
  806. #    define    HAVE_FLOCK
  807. #    define    HAVE_FCHDIR
  808. #    define    HAVE_QUOTA
  809. #    define    HAVE_YP
  810. #    define    HAVE_SETREUID
  811. /*#    define    HAVE_SETRESUID*/
  812. #    define    HAVE_SETEUID
  813. /*#    define    HAVE_LCHOWN*/
  814. #    define    HAVE_WAIT3
  815. #    define    HAVE_WAITPID
  816. #    define    HAVE_UNION_WAIT
  817. #    define    HAVE_GETHOSTNAME
  818. #    define    HAVE_SELECT
  819. #    define    GID_T        gid_t
  820. /*#    define    USLEEPRETURN_T    unsigned int*/
  821. #    define    USLEEPRETURN_T    void
  822. #    define    USLEEPISVOID
  823.  
  824. /*#    define    HAVE_GETAV0*/
  825. /*#    define    HAVE_SCANSTACK*/
  826. #endif
  827.  
  828. /*
  829.  * SysVr4
  830.  */
  831. #if defined(__SVR4) && !defined(__NOT_SVR4__)
  832. #    define    PROTOTYPES
  833. #    define    HAVE_ELF
  834. #    define    HAVE_STDARG_H
  835. #    if defined(IS_SUN)
  836. #        define    HAVE_LONGLONG
  837. #        define    HAVE_UTIMES
  838. #        define    HAVE_QUOTA
  839. #        define    HAVE_GETAV0    /* XXX what about PPC ??? */
  840. #        define    HAVE_SCANSTACK    /* XXX what about PPC ??? */
  841. #        define    HAVE_STRSIGNAL
  842. #        define    HAVE_STR2SIG
  843. #        define    HAVE_SIG2STR
  844. #    endif
  845. #    define    HAVE_UNISTD_H
  846. #    define    HAVE_FCNTL_H
  847. #    define    HAVE_DIRENT_H
  848. #    define    HAVE_TERMIOS_H
  849. #    define    HAVE_TERMIO_H
  850. #    define    HAVE_SYS_TIME_H
  851. #    define    HAVE_UTIME_H
  852. #    define    HAVE_WAIT_H
  853. #    define    HAVE_SYS_WAIT_H
  854. #    define    HAVE_SYS_PARAM_H
  855. #    define    HAVE_SYS_SYSTEMINFO_H
  856. #    define    HAVE_SYS_UTSNAME_H
  857. #    define    HAVE_SYS_PRIOCNTL_H
  858. #    define    HAVE_SYS_RTPRIOCNTL_H
  859. #    define    HAVE_SYS_MTIO_H
  860. #    define    HAVE_MTGET_DSREG
  861. #    define    HAVE_MTGET_RESID
  862. #    define    HAVE_MTGET_FILENO
  863. #    define    HAVE_MTGET_BLKNO
  864. #    define    MAJOR_IN_MKDEV
  865. #    define    HAVE_USG_STDIO
  866. #    define    HAVE_GETCWD
  867. #    define    HAVE_STRERROR
  868. #    define    HAVE_MEMMOVE
  869. #    define    HAVE_MLOCKALL
  870. #    define    HAVE_MMAP
  871. #    define    HAVE_SMMAP
  872. #    define    HAVE_USGSHM
  873. #    define    HAVE_USGSEM
  874. #    ifdef sparc
  875. #        define    HAVE_LDSTUB
  876. #    endif
  877. #    ifdef i386
  878. #        define    HAVE_XCHG
  879. #    endif
  880. #    define    HAVE_FCHDIR
  881. #    define    HAVE_STATVFS
  882. #    define    HAVE_YP
  883. #    define    HAVE_SHADOW
  884. #    define    HAVE_SETEUID
  885. #    define    HAVE_LCHOWN
  886. #    define    HAVE_PROCFS
  887. #    if (defined(i386) && !defined(IS_SUN))
  888. #        define    HAVE_PROCFS2
  889. #        define    HAVE_QUOTA
  890. #    endif
  891. #    define    HAVE_SIGINFO
  892. #    define    HAVE_WAITPID
  893. #    define    HAVE_STREAMS
  894. #    define    HAVE_STRPTYS
  895. #    define    HAVE_POLL
  896. #    define    HAVE_SELECT
  897. #    define    HAVE_TIRPC
  898. #    define    GID_T        gid_t
  899. #    define    USLEEPRETURN_T    unsigned int
  900. #endif
  901.  
  902. /*
  903.  * Apple Rhapsody
  904.  */
  905. #if defined(__NeXT__) && defined(__TARGET_OSNAME) && __TARGET_OSNAME == rhapsody
  906. #    define HAVE_OSDEF /* prevent later definitions to overwrite current */
  907.  
  908. #    define    PROTOTYPES
  909. /*#    define    HAVE_ELF*/
  910. /*#    define    HAVE_COFF*/
  911. /*#    define    HAVE_AOUT*/
  912. #    define    HAVE_STDARG_H
  913. #    define    HAVE_STDLIB_H
  914. #    define    HAVE_STRING_H
  915. #    define    HAVE_STDC_HEADERS
  916. #    define    STDC_HEADERS    /* GNU name */
  917. #    define    HAVE_LONGLONG
  918. #    define    HAVE_UNISTD_H
  919. #    define    HAVE_FCNTL_H
  920. #    define    HAVE_DIRENT_H
  921. #    define    HAVE_SYS_DIR_H
  922. /*#    define    HAVE_NDIR_H*/
  923. /*#    define    HAVE_SYS_NDIR_H*/
  924. #    define    HAVE_TERMIOS_H
  925. /*#    define    HAVE_TERMIO_H*/
  926. #    define    HAVE_SYS_TIME_H
  927. #    define    HAVE_UTIMES
  928. #    define    HAVE_UTIME_H
  929. /*#    define    HAVE_WAIT_H*/
  930. #    define    HAVE_SYS_WAIT_H
  931. #    define    HAVE_SYS_PARAM_H
  932. /*#    define    HAVE_SYS_SYSTEMINFO_H*/
  933. #    define    HAVE_SYS_UTSNAME_H
  934. /*#    define    HAVE_SYS_PRIOCNTL_H*/
  935. /*#    define    HAVE_SYS_RTPRIOCNTL_H*/
  936. #    define    HAVE_SYS_MTIO_H
  937. #    define    HAVE_MTGET_DSREG
  938. #    define    HAVE_MTGET_RESID
  939. #    define    HAVE_MTGET_FILENO
  940. #    define    HAVE_MTGET_BLKNO
  941. /*#    define    MAJOR_IN_MKDEV*/
  942. /*#    define    MAJOR_IN_SYSMACROS*/
  943. /*#    define    HAVE_USG_STDIO*/
  944. #    define    HAVE_DTOA
  945. #    define    HAVE_GETCWD
  946. #    define    HAVE_STRERROR
  947. #    define    HAVE_MEMMOVE
  948. #    define    HAVE_MMAP
  949. #    define    HAVE_SMMAP
  950. #    define    HAVE_USGSHM
  951. #    define    HAVE_USGSEM
  952. /*#    define    HAVE_MSEM*/
  953. /*#    define    HAVE_LDSTUB*/
  954. #    if defined(__i386_) || defined(i386)
  955. #        define    HAVE_XCHG
  956. #    endif
  957. #    define    HAVE_FLOCK
  958. /*#    define    HAVE_FCHDIR*/
  959. /*#    define    HAVE_STATVFS*/
  960. #    define    HAVE_QUOTA
  961. #    define    HAVE_YP
  962. /*#    define    HAVE_SHADOW*/
  963. #    define    HAVE_SETREUID
  964. /*#    define    HAVE_SETRESUID*/
  965. #    define    HAVE_SETEUID
  966. /*#    define    HAVE_LCHOWN*/
  967. /*#    define    HAVE_PROCFS*/
  968. /*#    define    HAVE_PROCFS2*/
  969. /*#    define    HAVE_SIGINFO*/
  970. #    define    HAVE_WAIT3
  971. /*#    define    HAVE_WAITPID*/
  972. #    define    HAVE_UNION_WAIT
  973. #    define    HAVE_GETHOSTNAME
  974. /*#    define    HAVE_STREAMS*/
  975. /*#    define    HAVE_STRPTYS*/
  976. #    define    HAVE_POLL
  977. #    define    HAVE_SELECT
  978. /*#    define    HAVE_TIRPC*/
  979. /*#    define    GID_T        gid_t*/
  980. /*#    define    USLEEPRETURN_T    unsigned int*/
  981. /*#    define    USLEEPRETURN_T    void*/
  982. #    define    USLEEPISVOID
  983.  
  984. /*#    define    HAVE_GETAV0*/
  985. /*#    define    HAVE_SCANSTACK*/
  986. #endif
  987.  
  988. /*
  989.  * NextStep
  990.  */
  991. #if defined(__NeXT__) && !defined(HAVE_OSDEF)
  992.  
  993. #define    printf    Xprintf
  994. #define    fprintf    Xfprintf
  995. #define    sprintf    Xsprintf
  996. #ifdef    XXX
  997. #    define    __NOT_SVR4__    /* Not a real SVR4 implementation */
  998. #endif
  999.  
  1000. #    define    PROTOTYPES
  1001. /*#    define    HAVE_ELF*/
  1002. /*#    define    HAVE_COFF*/
  1003. /*#    define    HAVE_AOUT*/
  1004. #    define    HAVE_STDARG_H
  1005. #    define    HAVE_STDLIB_H
  1006. #    define    HAVE_STRING_H
  1007. #    define    HAVE_STDC_HEADERS
  1008. #    define    STDC_HEADERS    /* GNU name */
  1009. #    define    HAVE_LONGLONG
  1010. #    define    HAVE_UNISTD_H
  1011. #    define    HAVE_FCNTL_H
  1012. /*#    define    HAVE_DIRENT_H         XXX not posix compliant */
  1013. #    define    HAVE_SYS_DIR_H
  1014. /*#    define    HAVE_NDIR_H*/
  1015. /*#    define    HAVE_SYS_NDIR_H*/
  1016. /*#    define    HAVE_TERMIOS_H        XXX need buggy -lposix */
  1017. /*#    define    HAVE_TERMIO_H*/
  1018. #    define    HAVE_SYS_TIME_H
  1019. #    define    HAVE_UTIMES
  1020. #    define    HAVE_UTIME_H
  1021. /*#    define    HAVE_WAIT_H*/
  1022. #    define    HAVE_SYS_WAIT_H
  1023. #    define    HAVE_SYS_PARAM_H
  1024. /*#    define    HAVE_SYS_SYSTEMINFO_H*/
  1025. /*#    define    HAVE_SYS_UTSNAME_H    XXX needs buggy -lposix */
  1026. /*#    define    HAVE_SYS_PRIOCNTL_H*/
  1027. /*#    define    HAVE_SYS_RTPRIOCNTL_H*/
  1028. #    define    HAVE_SYS_MTIO_H
  1029. #    define    HAVE_MTGET_DSREG
  1030. #    define    HAVE_MTGET_RESID
  1031. #    define    HAVE_MTGET_FILENO
  1032. #    define    HAVE_MTGET_BLKNO
  1033. /*#    define    MAJOR_IN_MKDEV*/
  1034. /*#    define    MAJOR_IN_SYSMACROS*/
  1035. /*#    define    HAVE_USG_STDIO        XXX different _flsbuf() */
  1036. #    define    HAVE_STRERROR
  1037. /*#    define    HAVE_MEMMOVE*/
  1038. /*#    define    HAVE_MMAP*/
  1039. /*#    define    HAVE_SMMAP*/
  1040. /*#    define    HAVE_USGSHM*/
  1041. /*#    define    HAVE_USGSEM*/
  1042. /*#    define    HAVE_MSEM*/
  1043. /*#    define    HAVE_LDSTUB*/
  1044. /*#    define    HAVE_XCHG*/
  1045. #    define    HAVE_FLOCK
  1046. /*#    define    HAVE_FCHDIR*/
  1047. /*#    define    HAVE_STATVFS*/
  1048. /*#    define    HAVE_QUOTA*/
  1049. /*#    define    HAVE_YP*/
  1050. /*#    define    HAVE_SHADOW*/
  1051. #    define    HAVE_SETREUID
  1052. /*#    define    HAVE_SETRESUID*/
  1053. #    define    HAVE_SETEUID
  1054. /*#    define    HAVE_LCHOWN*/
  1055. /*#    define    HAVE_PROCFS*/
  1056. /*#    define    HAVE_PROCFS2*/
  1057. /*#    define    HAVE_SIGINFO*/
  1058. #    define    HAVE_WAIT3
  1059. /*#    define    HAVE_WAITPID*/
  1060. #    define    HAVE_UNION_WAIT
  1061. #    define    HAVE_GETHOSTNAME
  1062. /*#    define    HAVE_STREAMS*/
  1063. /*#    define    HAVE_STRPTYS*/
  1064. /*#    define    HAVE_POLL*/
  1065. #    define    HAVE_SELECT
  1066. /*#    define    HAVE_TIRPC*/
  1067. #    define    GID_T        gid_t
  1068. #    define    USLEEPRETURN_T    int
  1069. /*#    define    USLEEPRETURN_T    void*/
  1070. /*#    define    USLEEPISVOID*/
  1071.  
  1072. /*#    define    HAVE_GETAV0*/
  1073. /*#    define    HAVE_SCANSTACK*/
  1074. #endif
  1075.  
  1076. /*
  1077.  * Cygwin 32 (NT)
  1078.  */
  1079. #if    defined(__CYGWIN32__)
  1080. #    define    PROTOTYPES
  1081. #    define    HAVE_OSDEF    /* prevent later definitions to overwrite current */
  1082. #    define    __NOT_SVR4__    /* Not a real SVR4 implementation */
  1083.  
  1084. /*#    define    HAVE_ELF*/
  1085. /*#    define    HAVE_COFF*/
  1086. #    define    HAVE_AOUT
  1087. #    define    HAVE_STDARG_H
  1088. /*#    define    HAVE_VA_COPY*/
  1089. #    define    HAVE_STDLIB_H
  1090. #    define    HAVE_STRING_H
  1091. #    define    HAVE_STDC_HEADERS
  1092. #    define    STDC_HEADERS    /* GNU name */
  1093. #    define    HAVE_LONGLONG
  1094.  
  1095. #    define    HAVE_UNISTD_H
  1096. #    define    HAVE_FCNTL_H
  1097. #    define    HAVE_DIRENT_H
  1098. /*#    define    HAVE_SYS_DIR_H*/
  1099. /*#    define    HAVE_NDIR_H*/
  1100. /*#    define    HAVE_SYS_NDIR_H*/
  1101. #    define    HAVE_TERMIOS_H
  1102. #    define    HAVE_TERMIO_H
  1103. #    define    HAVE_SYS_TIME_H
  1104. /*#    define    HAVE_UTIMES*/
  1105. #    define    HAVE_UTIME_H
  1106. /*#    define    HAVE_WAIT_H*/
  1107. #    define    HAVE_SYS_WAIT_H
  1108. #    define    HAVE_SYS_PARAM_H
  1109. /*#    define    HAVE_SYS_SYSTEMINFO_H*/
  1110. #    define    HAVE_SYS_UTSNAME_H
  1111. /*#    define    HAVE_SYS_PRIOCNTL_H*/
  1112. /*#    define    HAVE_SYS_RTPRIOCNTL_H*/
  1113. /*#    define    HAVE_SYS_MTIO_H*/
  1114. /*#    define    HAVE_MTGET_DSREG*/
  1115. /*#    define    HAVE_MTGET_RESID*/
  1116. /*#    define    HAVE_MTGET_FILENO*/
  1117. /*#    define    HAVE_MTGET_BLKNO*/
  1118. /*#    define    MAJOR_IN_MKDEV*/
  1119. /*#    define    MAJOR_IN_SYSMACROS*/
  1120. /*#    define    HAVE_USG_STDIO*/
  1121. /*#    define    HAVE_DTOA*/    /* XXX eigentlich doch da */
  1122. #    define    HAVE_GETCWD
  1123. #    define    HAVE_STRERROR
  1124. #    define    HAVE_MEMMOVE
  1125. #    define    HAVE_MMAP
  1126. #    define    HAVE_SMMAP
  1127. /*#    define    HAVE_USGSHM*/
  1128. /*#    define    HAVE_USGSEM*/
  1129. /*#    define    HAVE_MSEM*/
  1130. /*#    define    HAVE_LDSTUB*/
  1131. #    if defined(__i386_) || defined(i386)
  1132. #        define    HAVE_XCHG
  1133. #    endif
  1134. /*#    define    HAVE_FLOCK*/
  1135. /*#    define    HAVE_FCHDIR*/
  1136. /*#    define    HAVE_STATVFS*/
  1137. /*#    define    HAVE_QUOTA*/
  1138. /*#    define    HAVE_YP*/
  1139. /*#    define    HAVE_SHADOW*/
  1140. /*#    define    HAVE_SETREUID*/
  1141. /*#    define    HAVE_SETRESUID*/
  1142. /*#    define    HAVE_SETEUID*/
  1143. /*#    define    HAVE_LCHOWN*/
  1144. /*#    define    HAVE_PROCFS*/
  1145. /*#    define    HAVE_PROCFS2*/
  1146. /*#    define    HAVE_SIGINFO*/
  1147. #    define    HAVE_WAIT3
  1148. #    define    HAVE_WAITPID
  1149. #    define    HAVE_UNION_WAIT
  1150. #    define    HAVE_GETHOSTNAME
  1151. /*#    define    HAVE_STREAMS*/
  1152. /*#    define    HAVE_STRPTYS*/
  1153. /*#    define    HAVE_POLL*/
  1154. #    define    HAVE_SELECT
  1155. /*#    define    HAVE_TIRPC*/
  1156. #    define    GID_T        gid_t
  1157. #    define    USLEEPRETURN_T    unsigned int
  1158. /*#    define    USLEEPRETURN_T    void*/
  1159. /*#    define    USLEEPISVOID*/
  1160.  
  1161. /*#    define    HAVE_GETAV0*/
  1162. /*#    define    HAVE_SCANSTACK*/
  1163. #endif    /* __CYGWIN32__ */
  1164.  
  1165. #if defined(VMS)
  1166. #    define    PROTOTYPES
  1167. #    define    HAVE_OSDEF    /* prevent later definitions to overwrite current */
  1168. #    define    __NOT_SVR4__    /* Not a real SVR4 implementation */
  1169.  
  1170. #    define    HAVE_UNISTD_H
  1171. /*  #    define    HAVE_SYS_TIME_H    */
  1172. #    define    HAVE_FCNTL_H
  1173. #       define  HAVE_USLEEP
  1174. #    define    HAVE_INTTYPES_H
  1175. #    include <types.h>
  1176. #    define HOST_CPU    "Alpha/VAX"
  1177. #    define HOST_VENDOR "CPQ"
  1178. #    define HOST_OS "VMS/OpenVMS"
  1179. #    define RETSIGTYPE   void
  1180. /*#    define    HAVE_ELF    */
  1181. /*#    define    HAVE_COFF   */
  1182. /*#    define    HAVE_AOUT   */
  1183. /*#    define    HAVE_STDARG_H    */
  1184. /*#    define    HAVE_VA_COPY    */
  1185. /*#    define    HAVE_STDLIB_H    */
  1186. /*#    define    HAVE_STRING_H    */
  1187. /*#    define    HAVE_STDC_HEADERS   */
  1188. /*#    define    STDC_HEADERS    */
  1189. /*#    define    HAVE_LONGLONG    */
  1190.  
  1191. /*#    define    HAVE_UNISTD_H    */
  1192. /*#    define    HAVE_FCNTL_H    */
  1193. /*#    define    HAVE_DIRENT_H    */
  1194. /*#    define    HAVE_SYS_DIR_H    */
  1195. /*#    define    HAVE_NDIR_H */
  1196. /*#    define    HAVE_SYS_NDIR_H    */
  1197. /*#    define    HAVE_TERMIOS_H    */
  1198. /*#    define    HAVE_TERMIO_H    */
  1199. /*#    define    HAVE_SYS_TIME_H    */
  1200. /*#    define    HAVE_UTIMES */
  1201. /*#    define    HAVE_UTIME_H    */
  1202. /*#    define    HAVE_WAIT_H */
  1203. /*#    define    HAVE_SYS_WAIT_H    */
  1204. /*#    define    HAVE_SYS_SYSTEMINFO_H    */
  1205. /*#    define    HAVE_SYS_UTSNAME_H  */
  1206. /*#    define    HAVE_SYS_PRIOCNTL_H */
  1207. /*#    define    HAVE_SYS_RTPRIOCNTL_H    */
  1208. /*#    define    HAVE_SYS_MTIO_H    */
  1209. /*#    define    HAVE_MTGET_DSREG    */
  1210. /*#    define    HAVE_MTGET_RESID    */
  1211. /*#    define    HAVE_MTGET_FILENO   */
  1212. /*#    define    HAVE_MTGET_BLKNO    */
  1213. /*#    define    MAJOR_IN_MKDEV    */
  1214. /*#    define    MAJOR_IN_SYSMACROS  */
  1215. /*#    define    HAVE_USG_STDIO    */
  1216. /*#    define    HAVE_DTOA   */
  1217. /*#    define    HAVE_STRERROR    */
  1218. /*#    define    HAVE_MEMMOVE    */
  1219. /*#    define    HAVE_MMAP   */
  1220. /*#    define    HAVE_SMMAP  */
  1221. /*#    define    HAVE_USGSHM */
  1222. /*#    define    HAVE_USGSEM */
  1223. /*#    define    HAVE_MSEM   */
  1224. /*#    define    HAVE_LDSTUB */
  1225. /*#    define    HAVE_XCHG   */
  1226. /*#    define    HAVE_FLOCK  */
  1227. /*#    define    HAVE_FCHDIR */
  1228. /*#    define    HAVE_STATVFS    */
  1229. /*#    define    HAVE_QUOTA  */
  1230. /*#    define    HAVE_YP    */
  1231. /*#    define    HAVE_SHADOW */
  1232. /*#    define    HAVE_SETREUID    */
  1233. /*#    define    HAVE_SETRESUID    */
  1234. /*#    define    HAVE_SETEUID    */
  1235. /*#    define    HAVE_LCHOWN */
  1236. /*#    define    HAVE_PROCFS */
  1237. /*#    define    HAVE_PROCFS2    */
  1238. /*#    define    HAVE_SIGINFO    */
  1239. /*#    define    HAVE_WAIT3  */
  1240. /*#    define    HAVE_WAITPID    */
  1241. /*#    define    HAVE_UNION_WAIT    */
  1242. #    define    HAVE_GETHOSTNAME
  1243. /*#    define    HAVE_STREAMS    */
  1244. /*#    define    HAVE_STRPTYS    */
  1245. /*#    define    HAVE_POLL   */
  1246. #    define    HAVE_SELECT
  1247. /*#    define    HAVE_TIRPC  */
  1248. /*#    define    GID_T        gid_t    */
  1249. #    define    USLEEPRETURN_T    uint
  1250. /*#    define    USLEEPRETURN_T    void    */
  1251. /*#    define    USLEEPISVOID    */
  1252. /*#    define    HAVE_GETAV0 */
  1253. /*#    define    HAVE_SCANSTACK    */
  1254. #endif
  1255.  
  1256. /*
  1257.  * Prototype for new systems
  1258.  */
  1259. #if defined(__NEW_SYSTEM_TO_DEFINE__)
  1260. #    define    PROTOTYPES
  1261. #    define    HAVE_OSDEF    /* prevent later definitions to overwrite current */
  1262. #    define    __NOT_SVR4__    /* Not a real SVR4 implementation */
  1263.  
  1264. #    define    HAVE_ELF
  1265. #    define    HAVE_COFF
  1266. #    define    HAVE_AOUT
  1267. #    define    HAVE_STDARG_H
  1268. #    define    HAVE_VA_COPY
  1269. #    define    HAVE__VA_COPY
  1270. #    define    HAVE_STDLIB_H
  1271. #    define    HAVE_STRING_H
  1272. #    define    HAVE_STRINGS_H
  1273. #    define    HAVE_STDC_HEADERS
  1274. #    define    STDC_HEADERS    /* GNU name */
  1275. #    define    HAVE_LONGLONG
  1276. #    define    HAVE_SIZE_T
  1277. #    define    NO_SIZE_T
  1278.  
  1279. #    define    HAVE_UNISTD_H
  1280. #    define    HAVE_FCNTL_H
  1281. #    define    HAVE_DIRENT_H
  1282. #    define    HAVE_SYS_DIR_H
  1283. #    define    HAVE_NDIR_H
  1284. #    define    HAVE_MALLOC_H
  1285. #    define    HAVE_SYS_NDIR_H
  1286. #    define    HAVE_TERMIOS_H
  1287. #    define    HAVE_TERMIO_H
  1288. #    define    HAVE_SYS_TIME_H
  1289. #    define    HAVE_UTIMES
  1290. #    define    HAVE_UTIME_H
  1291. #    define    HAVE_WAIT_H
  1292. #    define    HAVE_SYS_WAIT_H
  1293. #    define    HAVE_SYS_PARAM_H
  1294. #    define    HAVE_SYS_SYSTEMINFO_H
  1295. #    define    HAVE_SYS_UTSNAME_H
  1296. #    define    HAVE_SYS_PRIOCNTL_H
  1297. #    define    HAVE_SYS_RTPRIOCNTL_H
  1298. #    define    HAVE_SYS_MTIO_H
  1299. #    define    HAVE_MTGET_DSREG
  1300. #    define    HAVE_MTGET_RESID
  1301. #    define    HAVE_MTGET_FILENO
  1302. #    define    HAVE_MTGET_BLKNO
  1303. #    define    MAJOR_IN_MKDEV
  1304. #    define    MAJOR_IN_SYSMACROS
  1305. #    define    HAVE_USG_STDIO
  1306. #    define    HAVE_BRK
  1307. #    define    HAVE_SBRK
  1308. #    define    HAVE_DTOA
  1309. #    define    HAVE_GETCWD
  1310. #    define    HAVE_STRERROR
  1311. #    define    HAVE_MEMMOVE
  1312. #    define    HAVE_MLOCKALL
  1313. #    define    HAVE_MMAP
  1314. #    define    HAVE_SMMAP
  1315. #    define    HAVE_USGSHM
  1316. #    define    HAVE_USGSEM
  1317. #    define    HAVE_MSEM
  1318. #    define    HAVE_LDSTUB
  1319. #    define    HAVE_XCHG
  1320. #    define    HAVE_FLOCK
  1321. #    define    HAVE_FCHDIR
  1322. #    define    HAVE_STATVFS
  1323. #    define    HAVE_QUOTA
  1324. #    define    HAVE_YP
  1325. #    define    HAVE_SHADOW
  1326. #    define    HAVE_SETREUID
  1327. #    define    HAVE_SETRESUID
  1328. #    define    HAVE_SETEUID
  1329. #    define    HAVE_LCHOWN
  1330. #    define    HAVE_PROCFS
  1331. #    define    HAVE_PROCFS2
  1332. #    define    HAVE_SIGINFO
  1333. #    define    HAVE_WAIT3
  1334. #    define    HAVE_WAITPID
  1335. #    define    HAVE_UNION_WAIT
  1336. #    define    HAVE_GETHOSTNAME
  1337. #    define    HAVE_STREAMS
  1338. #    define    HAVE_STRPTYS
  1339. #    define    HAVE_POLL
  1340. #    define    HAVE_SELECT
  1341. #    define    HAVE_TIRPC
  1342. #    define    GID_T        gid_t
  1343. #    define    USLEEPRETURN_T    unsigned int
  1344. #    define    USLEEPRETURN_T    void
  1345. #    define    USLEEPISVOID
  1346.  
  1347. #    define    HAVE_GETAV0
  1348. #    define    HAVE_SCANSTACK
  1349. #endif    /* __NEW_SYSTEM_TO_DEFINE__ */
  1350.  
  1351. #ifdef __cplusplus
  1352. }
  1353. #endif
  1354.  
  1355. #endif /* _XMCONFIG_H */
  1356.