home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / conf / s-freebsd.h < prev    next >
C/C++ Source or Header  |  1996-08-19  |  3KB  |  160 lines

  1. /*
  2.  *      This version is for FreeBSD 2.1
  3.  *      Done by "Andrey A. Chernov" <ache@astral.msk.su>
  4.  */
  5.  
  6.  
  7. /*
  8.  *    Include header files containing the following definitions:
  9.  *
  10.  *         off_t, time_t, struct stat
  11.  */
  12.  
  13. #include <sys/types.h>
  14. #include <sys/stat.h>   /* for S_IFREG */
  15. #include <fcntl.h>      /* for O_RDONLY */
  16.  
  17. #define HAVE_STDLIB_H
  18. #define HAVE_STRING_H
  19. #define HAVE_UNISTD_H
  20. #define HAVE_FCNTL_H
  21.  
  22. #define HAVE_TERMIOS_H
  23.  
  24. /*
  25.  *    Define if your system has system V like ioctls
  26.  */
  27.  
  28. #undef    HAVE_TERMIO_H            /* */
  29.  
  30. /*
  31.  *    Define to use terminfo database.
  32.  *    Otherwise, termcap is used
  33.  */
  34.  
  35. #undef    USE_TERMINFO            /* */
  36.  
  37. /*
  38.  *    Specify the library (or libraries) containing the termcap/terminfo
  39.  *    routines.
  40.  *
  41.  *    Notice:  nn only uses the low-level terminal access routines
  42.  *    (i.e. it does not use curses).
  43.  */
  44.  
  45. #define TERMLIB    -ltermcap
  46.  
  47. /*
  48.  *    Define HAVE_STRCHR if strchr() and strrchr() are available
  49.  */
  50.  
  51. #define HAVE_STRCHR            /* */
  52.  
  53. /*
  54.  *    Define if a signal handler has type void (see signal.h)
  55.  */
  56.  
  57. #define    SIGNAL_HANDLERS_ARE_VOID    /* */
  58.  
  59. /*
  60.  *    Define HAVE_UALARM if your system has a 4.3 BSD like ualarm() call.
  61.  *    Else define MICRO_ALARM(n) to timeout in n/10 seconds if possible.
  62.  *    Don't define either if system only has the standard alarm() call.
  63.  */
  64.  
  65. #define HAVE_UALARM            /* */
  66.  
  67.  
  68. /*
  69.  *    Define if your system has BSD like job control (SIGTSTP works)
  70.  */
  71.  
  72. #define HAVE_JOBCONTROL            /* */
  73.  
  74.  
  75. /*
  76.  *    Define if your system has a 4.3BSD like syslog library.
  77.  */
  78.  
  79. #define HAVE_SYSLOG
  80.  
  81. /*
  82.  *    Define if your system provides the "directory(3X)" access routines
  83.  *
  84.  *    If true, include the header file(s) required by the package below
  85.  *    (remember that <sys/types.h> or equivalent is included above)
  86.  *    Also typedef Direntry to the proper struct type.
  87.  */
  88.  
  89. #define    HAVE_DIRECTORY            /* */
  90.  
  91. #include <dirent.h>            /* POSIX */
  92.  
  93. typedef struct dirent Direntry;        /* POSIX */
  94.  
  95. /*
  96.  *    Define if your system has a mkdir() library routine
  97.  */
  98.  
  99. #define    HAVE_MKDIR            /* */
  100.  
  101. /*
  102.  *    Pick one:
  103.  *    Define HAVE_GETHOSTNAME if you have a BSD like gethostname routine.
  104.  *    Define HAVE_UNAME if a system V compatible uname() is available.
  105.  *    Define HOSTNAME_FILE "...." to a file containing the hostname.
  106.  *    Define HOSTNAME_WHOAMI if sysname is defined in <whoami.h>.
  107.  *
  108.  *    As a final resort, define HOSTNAME to the name of your system
  109.  *    (in config.h).
  110.  */
  111.  
  112. #define HAVE_GETHOSTNAME            /* BSD systems */
  113.  
  114. /*
  115.  *    Define HAVE_MULTIGROUP if system has simultaneous multiple group
  116.  *    membership capability (BSD style).
  117.  *    Also define NGROUPS or include the proper .h file if NGROUPS is
  118.  *    not defined in <sys/param.h>.
  119.  *    Also define GIDSET_TYPE to the type of the elements in the array
  120.  *    initialized by getgroups() if different from "int" (many systems
  121.  *    have a gid_t, but very few use it for getgroups()).
  122.  */
  123.  
  124. #define HAVE_MULTIGROUP    /* BSD */
  125. #define GIDSET_TYPE     gid_t
  126.  
  127. /*
  128.  *    Define DETATCH_TERMINAL to be a command sequence which
  129.  *    will detatch a process from the control terminal
  130.  *    Also include system files needed to perform this HERE.
  131.  *    If not possible, just define it (empty)
  132.  */
  133.  
  134. #define DETATCH_TERMINAL setsid();
  135.  
  136. /*
  137.  *    Specify where the Bourne Shell is.
  138.  */
  139.  
  140. #define SHELL        "/bin/sh"
  141.  
  142. /*
  143.  *    Specify the default mailer to be invoked by nnmail
  144.  */
  145.  
  146. #define    MAILX    "/usr/bin/mail"        /* */
  147.  
  148. /*
  149.  *    Define the maximum length of any pathname that may occur
  150.  */
  151.  
  152. #define    FILENAME     256
  153.  
  154. #define RESIZING
  155.  
  156. #define HAVE_8BIT_CTYPE
  157.  
  158. #define HAVE_WORKING_COLLATE
  159.  
  160.