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

  1. /*
  2.  * Main include file for 'strings'.
  3.  * Tests Makefile flags and takes appropriate action.
  4.  * Includes most include files and predefines global defines.
  5.  *
  6.  * sccsid : @(#)  strings.h  (v6.3 5/22/89)
  7.  */
  8.  
  9. # include "config.h"
  10.  
  11. # if defined(DEBUG)
  12. #    include <stdio.h>
  13. # else
  14. #    define stderr    2
  15. #    define NULL        0
  16. # endif DEBUG
  17.  
  18. # ifdef FCNTL
  19. #    if FCNTL == 1
  20. #        include <fcntl.h>
  21. #    endif
  22. #    if FCNTL == 2
  23. #        include <sys/fcntl.h>
  24. #    endif
  25. # else FCNTL
  26. #    define O_RDONLY    0
  27. # endif FCNTL
  28.  
  29. # ifdef DEBUG
  30. FILE * prot;
  31. # endif
  32.  
  33. # ifdef I_SPECIAL
  34. #    ifdef WHAT_LSEEK
  35. #        if WHAT_LSEEK == 1
  36. #            define LSEEK_TYPE    long
  37. #        endif
  38. #        if WHAT_LSEEK == 2
  39. #            define LSEEK_TYPE    int
  40. #        endif
  41. #    endif WHAT_LSEEK
  42.  
  43. #    ifndef LSEEK_TYPE
  44. #        include "ERROR : WHAT_LSEEK defined wrongly"
  45. #    endif LSEEK_TYPE
  46.  
  47. extern LSEEK_TYPE lseek (/* int fd; LSEEK_TYPE offset; int whence */);
  48.  
  49. # else I_SPECIAL
  50. /*
  51.  * If I_SPECIAL is not defined we don't need lseek, but we need a type
  52.  * for offsets.
  53.  */
  54. #    define LSEEK_TYPE    long
  55. # endif I_SPECIAL
  56.  
  57. # if THRESHOLD < IN_BUF_LEN
  58. #    include "ERROR : THRESHOLD must be >= IN_BUF_LEN"
  59. # endif
  60.  
  61. extern char * malloc ();
  62. extern char * realloc ();
  63.  
  64. # define CHAR_TYPE    char
  65.