home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / NN / _NN-NNTP.TAR / usr / lib / nn / src / s-linux.h < prev   
Encoding:
C/C++ Source or Header  |  1994-09-13  |  6.3 KB  |  260 lines

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