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-netbsd.h < prev    next >
C/C++ Source or Header  |  1996-08-17  |  7KB  |  294 lines

  1. /*
  2.  *    Use this file as a template for new s- files
  3.  *    Created by Michael Pins <mtpins@isca.uiowa.edu>
  4.  *    August 15, 1996
  5.  */
  6.  
  7.  
  8. /*
  9.  *    Include header files containing the following definitions:
  10.  *
  11.  *         off_t, time_t, struct stat
  12.  */
  13.  
  14. #include <sys/types.h>
  15. #include <sys/stat.h>
  16.  
  17.  
  18. /*
  19.  *    Define if your system has system V like ioctls
  20.  */
  21.  
  22. #define    HAVE_TERMIOS_H            /* */
  23.  
  24. /*
  25.  *    Define to use terminfo database.
  26.  *    Otherwise, termcap is used
  27.  */
  28.  
  29. /* #define    USE_TERMINFO            /* */
  30.  
  31. /*
  32.  *    Specify the library (or libraries) containing the termcap/terminfo
  33.  *    routines.
  34.  *
  35.  *    Notice:  nn only uses the low-level terminal access routines
  36.  *    (i.e. it does not use curses).
  37.  */
  38.  
  39. #define TERMLIB    -ltermcap
  40.  
  41. /*
  42.  *    Define HAVE_STRCHR if strchr() and strrchr() are available
  43.  */
  44.  
  45. #define HAVE_STRCHR            /* */
  46.  
  47. /*
  48.  *    Availability of varargs/vprintf/vsprintf is normally assumed
  49.  *    on most systems, *unless* NO_VARARGS is defined either here or
  50.  *    in the m- file.
  51.  *
  52.  *    To overrule a NO_VARARGS in the m- file, define HAVE_VARARGS
  53.  *    below if the varargs feature is available, *including* the
  54.  *    vprintf/vsprintf routines.
  55.  *
  56.  *    You may also define NO_VARARGS here, if varargs or the v*printf
  57.  *    are not available on this OS, but the m- file doesn't say so.
  58.  */
  59.  
  60. /* #define HAVE_VARARGS /* Ignore NO_VARARGS -- else default */
  61. /* #define NO_VARARGS /* */
  62.  
  63. /*
  64.  *    Define if a signal handler has type void (see signal.h)
  65.  */
  66.  
  67. #define    SIGNAL_HANDLERS_ARE_VOID    /* */
  68.  
  69. /*
  70.  *    Define if signals must be set again after they are caught
  71.  */
  72.  
  73. #define    RESET_SIGNAL_WHEN_CAUGHT    /* */
  74.  
  75. /*
  76.  *    Define FAKE_INTERRUPT if a keyboard interrupt (^C) cannot interrupt
  77.  *    a read() system call.  This happens on a few BSD based systems
  78.  *    which don't have SV_INTERRUPT defined in <signal.h> and no
  79.  *    siginterrupt() call to make systems call interruptable.  
  80.  *    However, if siginterrupt() is available, but SV_INTERRUPT isn't
  81.  *    defined, then simply define that instead of FAKE_INTERRUPT!
  82.  */
  83.  
  84. /* #define FAKE_INTERRUPT    /* */
  85.  
  86. /*
  87.  *    Define HAVE_HARD_SLEEP if sending a SIGALRM isn't enough to
  88.  *    interrupt a sleep() call - typical symptom is that nnadmin W
  89.  *    doesn't wakeup the nnmaster.
  90.  */
  91.  
  92. /* #define HAVE_HARD_SLEEP        /* BSD ? */
  93.  
  94. /*
  95.  *    Define HAVE_UALARM if your system has a 4.3 BSD like ualarm() call.
  96.  *    Else define MICRO_ALARM(n) to timeout in n/10 seconds if possible.
  97.  *    Don't define either if system only has the standard alarm() call.
  98.  */
  99.  
  100. #define HAVE_UALARM            /* BSD 4.3 */
  101. /* #define MICRO_ALARM(n)    xxxx(n)    /* */
  102.  
  103. /*
  104.  *    Define if your system has BSD like job control (SIGTSTP works)
  105.  */
  106.  
  107. #define HAVE_JOBCONTROL            /* */
  108.  
  109.  
  110. /*
  111.  *    Define if your system has a 4.3BSD like syslog library.
  112.  */
  113.  
  114. #define HAVE_SYSLOG
  115.  
  116. /*
  117.  *    Define if your system provides the "directory(3X)" access routines
  118.  *
  119.  *    If true, include the header file(s) required by the package below
  120.  *    (remember that <sys/types.h> or equivalent is included above)
  121.  *    Also typedef Direntry to the proper struct type.
  122.  */
  123.  
  124. #define    HAVE_DIRECTORY            /* */
  125.  
  126. #include <dirent.h>            /* System V */
  127. /* #include <sys/dir.h>                /* BSD */
  128.  
  129. typedef struct dirent Direntry;        /* System V */
  130. /* typedef struct direct Direntry;        /* BSD */
  131.  
  132. /*
  133.  *    Define if your system has a mkdir() library routine
  134.  */
  135.  
  136. #define    HAVE_MKDIR            /* */
  137.  
  138. /*
  139.  *    Pick one:
  140.  *    Define HAVE_GETHOSTNAME if you have a BSD like gethostname routine.
  141.  *    Define HAVE_UNAME if a system V compatible uname() is available.
  142.  *    Define HOSTNAME_FILE "...." to a file containing the hostname.
  143.  *    Define HOSTNAME_WHOAMI if sysname is defined in <whoami.h>.
  144.  *
  145.  *    As a final resort, define HOSTNAME to the name of your system
  146.  *    (in config.h).
  147.  */
  148.  
  149. #define HAVE_GETHOSTNAME            /* BSD systems */
  150. /* #define HAVE_UNAME                /* System V */
  151. /* #define HOSTNAME_FILE "/etc/uucpname"    /* or another file */
  152. /* #define HOSTNAME_WHOAMI            /* in <whoami.h> */
  153.  
  154. /*
  155.  *    Define HAVE_MULTIGROUP if system has simultaneous multiple group
  156.  *    membership capability (BSD style).
  157.  *    Also define NGROUPS or include the proper .h file if NGROUPS is
  158.  *    not defined in <sys/param.h>.
  159.  *    Also define GIDSET_TYPE to the type of the elements in the array
  160.  *    initialized by getgroups() if different from "int" (many systems
  161.  *    have a gid_t, but very few use it for getgroups()).
  162.  */
  163.  
  164. #define HAVE_MULTIGROUP    /* BSD */
  165. #define    GIDSET_TYPE    gid_t
  166.  
  167. /*
  168.  *    Define DETATCH_TERMINAL to be a command sequence which
  169.  *    will detatch a process from the control terminal
  170.  *    Also include system files needed to perform this HERE.
  171.  *    If not possible, just define it (empty)
  172.  */
  173.  
  174. /* #include "...." */
  175.  
  176. #define    DETATCH_TERMINAL    setpgrp();
  177.  
  178.  
  179. /*
  180.  *    Specify where the Bourne Shell is.
  181.  */
  182.  
  183. #define SHELL        "/bin/sh"
  184.  
  185. /*
  186.  *    Define OLD_AWK to the name of the "old awk" program if your
  187.  *    standard 'awk' is 'nawk' (new awk).  Use full path if necessary.
  188.  *    (This is a temporary hack until I get time to fix the scripts
  189.  *    which breaks nawk).
  190.  */
  191.  
  192. /* #define OLD_AWK    "oawk"        /* */
  193.  
  194. /*
  195.  *    Define AVOID_SHELL_EXEC if the system gets confused by
  196.  *        #!/bin/sh
  197.  *    lines in shell scripts, e.g. only reads #! and thinks it
  198.  *    is a csh script.
  199.  */
  200.  
  201. /* #define AVOID_SHELL_EXEC        /* */
  202.  
  203. /*
  204.  *    Specify the default mailer to be invoked by nnmail
  205.  */
  206.  
  207. /* #define    MAILX        "/usr/bin/mailx"    /* SysV */
  208. #define    MAILX    "/usr/bin/Mail"        /* BSD */
  209.  
  210. /*
  211.  *    Define the maximum length of any pathname that may occur
  212.  */
  213.  
  214. #define    FILENAME     256
  215.  
  216. /*
  217.  *    Define USE_MALLOC_H if the faster malloc() in -lmalloc should be used.
  218.  *    This requires that -lmalloc is added to EXTRA_LIB below.
  219.  *
  220.  *    You can tune the malloc package through the following definitions
  221.  *    according to the descriptions in malloc(3X):
  222.  */
  223.  
  224. /* #define USE_MALLOC_H        /* */
  225.  
  226. /* #define MALLOC_GRAIN        sizeof(double)        /* M_GRAIN */
  227. /* #define MALLOC_MAXFAST    (MALLOC_GRAIN*4)    /* M_MXFAST */
  228. /* #define MALLOC_FASTBLOCKS    100            /* M_NLBLKS */
  229.  
  230. /*
  231.  *    NNTP support requires tcp/ip with socket interface.
  232.  *
  233.  *    Define NO_RENAME if the rename() system call is not available.
  234.  *    Define NO_BZERO if the bzero() function is not available.
  235.  *    Define EXCELAN if the tcp/ip package is EXCELAN based.
  236.  *    Define NNTP_EXTRA_LIB to any libraries required only for nntp.
  237.  */
  238.  
  239. /* #define NO_RENAME            /* */
  240. /* #define NO_BZERO            /* */
  241. /* #define EXCELAN            /* */
  242. /* #define NNTP_EXTRA_LIB -lsocket    /* */
  243.  
  244. /*
  245.  *     Define RESIZING to make nn understand dynamic window-resizing.
  246.  *     (It uses the TIOCGWINSZ ioctl found on most 4.3BSD systems)
  247.  *    This should be defined in the conf/s-xxxxx.h file.
  248.  */
  249.  
  250. #define RESIZING    /* */
  251. #define _SYS_TTYDEV_H_    /* ??? looping headers ??? */
  252.  
  253. /*
  254.  *    Include file configuration.  Most systems with an ANSI conformant C
  255.  *    compiler should have these.  If you have them, you should use them!
  256.  *
  257.  *    IF YOU HAVE THESE FILES, IT IS *VERY IMPORTANT* THAT YOU INCLUDE THEM
  258.  */
  259.  
  260. /* Do you have /usr/include/string.h */
  261. #define HAVE_STRING_H    /* */
  262.  
  263. /* Do you have /usr/include/unistd.h */
  264. #define HAVE_UNISTD_H    /* */
  265.  
  266. /* Do you have /usr/include/stdlib.h */
  267. #define HAVE_STDLIB_H    /* */
  268.  
  269. /* Do you have /usr/include/memory.h */
  270. #define HAVE_MEMORY_H    /* */
  271.  
  272. /* Do you have /usr/include/fcntl.h */
  273. #define HAVE_FCNTL_H        /* */
  274.  
  275. /*
  276.  *    Define standard compiler flags here:
  277.  */
  278.  
  279. #define COMPILER_FLAGS
  280.  
  281. /*
  282.  *    Define standard loader flags here:
  283.  */
  284.  
  285. #define LOADER_FLAGS
  286.  
  287. /*
  288.  *    If your system requires other libraries when linking nn
  289.  *    specify them here:
  290.  */
  291.  
  292. #define EXTRA_LIB
  293.  
  294.