includes.h 1009 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * $Id: includes.h,v 1.1 2004/11/14 07:26:26 paulus Exp $
  3. *
  4. * Copyright (C) 1997 Lars Fenneberg
  5. *
  6. * Copyright 1992 Livingston Enterprises, Inc.
  7. *
  8. * Copyright 1992,1993, 1994,1995 The Regents of the University of Michigan
  9. * and Merit Network, Inc. All Rights Reserved
  10. *
  11. * See the file COPYRIGHT for the respective terms and conditions.
  12. * If the file is missing contact me at lf@elemental.net
  13. * and I'll send you a copy.
  14. *
  15. */
  16. #include <sys/types.h>
  17. #include <ctype.h>
  18. #include <stdio.h>
  19. #include <errno.h>
  20. #include <netdb.h>
  21. #include <syslog.h>
  22. #include <stdlib.h>
  23. #include <string.h>
  24. #include <stdarg.h>
  25. #include <unistd.h>
  26. #include <fcntl.h>
  27. #include <sys/stat.h>
  28. #include <limits.h>
  29. #ifndef PATH_MAX
  30. #define PATH_MAX 1024
  31. #endif
  32. #ifndef UCHAR_MAX
  33. # define UCHAR_MAX 255
  34. #endif
  35. #include <pwd.h>
  36. #include <sys/socket.h>
  37. #include <netinet/in.h>
  38. #include <arpa/inet.h>
  39. #include <time.h>
  40. #include "magic.h"
  41. /* rlib/lock.c */
  42. int do_lock_exclusive(int);
  43. int do_unlock(int);