home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume7 / nstrings.bsd / tune.h < prev   
Encoding:
C/C++ Source or Header  |  1989-06-03  |  2.0 KB  |  65 lines

  1. /*
  2.  *
  3.  * sccsid = @(#)  tune.h  (v6.2 5/17/89)
  4.  * 
  5.  * This file contains the flags with which you can tune strings.
  6.  * Define USE_USER_DEFINES in Makefile to really get them going.
  7.  */
  8.  
  9. /*
  10.  * Look in /usr/include, /usr/include/sys, ...
  11.  * Where are the flags O_RDONLY, O_WRONLY, ... ?
  12.  * Define FCNTL as
  13.  * 1 : /usr/include/fcntl.h
  14.  * 2 : /usr/include/sys/fcntl.h
  15.  * If they are not defined, then omit FCNTL.
  16.  * strings will use old flag 0 (read only).
  17.  *
  18.  * Examples:
  19.  * vax BSD43, sun SUN OS  : 1
  20.  * mx2 SINIX (System III) : 2
  21.  */
  22. # define FCNTL 2
  23.  
  24. /*
  25.  * We copy sequences of characters with a fast memory copy routine.
  26.  * On BSD systems this routine is called bcopy. Its usage is :
  27.  *        bcopy (from, to, count)
  28.  * On SYS 5 systems this routine is called memcpy. Its usage is :
  29.  *        memcpy (to, from, count)
  30.  * Decide what your system uses and define bcopy accordingly.
  31.  * If you don't define FAST_COPY here, a routine of my own, called
  32.  * FAST_COPY will be used.
  33.  */
  34. # define FAST_COPY(from,to,count)        bcopy(from,to,count)
  35.  
  36. /*
  37.  * Take a look at your manual. What does it say about 'lseek' ?
  38.  * Is it :
  39.  * 1 : long lseek (int fd, long dist, int whence)
  40.  * 2 : int lseek (int fd, int dist, int whence)
  41.  * If it is something else, you will have to change the source. You can
  42.  * ignore it of course, if int==long on your machine.
  43.  */
  44. # define WHAT_LSEEK    1
  45.  
  46. /*
  47.  * As a default strings looks at the beginning of a file. If it thinks
  48.  * it has found an object, it only examines the initialized data in it.
  49.  * If you want this behaviour define I_SPECIAL. If you always want the
  50.  * whole file examined, or if you are on a non-UNIX machine where the
  51.  * identification of object files is different, do not define I_SPECIAL.
  52.  */
  53. # define I_SPECIAL
  54.  
  55. /*
  56.  * How big should the buffers be?
  57.  * IN_BUF_LEN  : Length of input buffer for reads.
  58.  * OUT_BUF_LEN : Maximal size of output buffer.
  59.  * TRHESHOLD   : Minimal size for writes. If the output buffer grows beyond
  60.  *               THRESHOLD then it is output.
  61.  */
  62. # define IN_BUF_LEN        1024
  63. # define OUT_BUF_LEN    8192
  64. # define THRESHOLD        1024
  65.