home *** CD-ROM | disk | FTP | other *** search
/ ftp.muug.mb.ca / 2014.06.ftp.muug.mb.ca.tar / ftp.muug.mb.ca / pub / src / gopher / gopher1.01 / gopherd / gopherd.h.orig < prev    next >
Text File  |  1992-07-05  |  1KB  |  72 lines

  1. #include "conf.h"
  2.  
  3. #include <ctype.h>
  4. #include <stdio.h>
  5.  
  6.  
  7. #include <sys/types.h>
  8. #include <sys/socket.h>
  9. #include <netinet/in.h>
  10. #include <netdb.h>
  11. #ifndef hpux
  12. #include <arpa/inet.h>
  13. #endif
  14. #include <pwd.h>
  15. #include <errno.h>
  16.  
  17. /** For logfile locking... **/
  18. #if !defined(NeXT) && !defined(mips) && !defined(UMAX43) && !defined(sequent)
  19. #  include <unistd.h>
  20. #  include <fcntl.h>
  21. #else
  22. #  include <fcntl.h>
  23. #  include <sys/file.h>
  24. #  ifndef SEEK_END
  25. #    define SEEK_END L_XTND
  26. #    define SEEK_SET L_SET
  27. #  endif
  28. #endif
  29.  
  30. extern int errno;
  31.  
  32. #ifdef __convex__
  33. #include <stdarg.h>
  34. #else
  35. #include <string.h>
  36. #endif
  37.  
  38. #ifndef hpux
  39. #include <strings.h>
  40. #endif
  41. extern char *strstr();
  42.  
  43. #include <sys/stat.h>
  44. #include <time.h>
  45.  
  46. #include <sys/param.h>
  47. /* This might be in <sys/param.h>, usually 64 */
  48. #ifndef MAXHOSTNAMELEN
  49. #define MAXHOSTNAMELEN                (64)
  50. #endif
  51.  
  52. #include "GDgopherdir.h"
  53. #include "Dirent.h"
  54.  
  55. /*
  56.  * Make sure we don't accidentally use a library routine instead of our
  57.  * private restricted version.  Need to avoid the stat in struct stat
  58.  * getting clobbered by the #define for the routine.
  59.  */
  60. typedef struct stat STATSTR;
  61. #include "openers.h"
  62. #define open    barf_ropen
  63. #define fopen    barf_rfopen
  64. #define stat    barf_rstat
  65. #define opendir    barf_ropendir
  66. #define chdir    barf_rchdir
  67.  
  68. /*** This one must be last ***/
  69.  
  70. #include "globals.h"
  71.  
  72.