everything.H 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // everything.H -- everything in the way of macros and includes
  3. //
  4. // Copyright 2003-2013 Michael Sweet
  5. // Copyright 2002 Greg Ercolano
  6. //
  7. // This program is free software; you can redistribute it and/or modify
  8. // it under the terms of the GNU General Public Licensse as published by
  9. // the Free Software Foundation; either version 2 of the License, or
  10. // (at your option) any later version.
  11. //
  12. // This program is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. // GNU General Public License for more details.
  16. //
  17. // You should have received a copy of the GNU General Public License
  18. // along with this program; if not, write to the Free Software
  19. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  20. //
  21. #ifndef EVERYTHING_H
  22. #define EVERYTHING_H
  23. #include "config.h"
  24. #define _BSD_SIGNALS 1 /* IRIX */
  25. #define _USE_BSD /* LINUX */
  26. #define _BSD /* OSF1 */
  27. #include <sys/types.h>
  28. #include <sys/stat.h>
  29. #include <sys/wait.h> // waitpid
  30. #include <sys/file.h> // flock()
  31. #include <arpa/inet.h> // inet_ntoa()
  32. #include <unistd.h>
  33. #include <signal.h>
  34. #include <string.h>
  35. #include <ctype.h>
  36. #include <stdlib.h>
  37. #include <netdb.h>
  38. #include <stdio.h>
  39. #include <stdlib.h>
  40. #include <errno.h>
  41. #include <time.h>
  42. #include <pwd.h>
  43. #include <grp.h>
  44. #include <poll.h>
  45. #include <string>
  46. #include <vector>
  47. #include <algorithm>
  48. #include <sstream>
  49. using namespace std;
  50. // Constants...
  51. #define LINE_LEN 4096
  52. #define GROUP_MAX 1024
  53. #define FIELD_MAX 1024
  54. #define AUTH_FAIL 0 // no auth supplied yet
  55. #define AUTH_READ 1 // allow reading
  56. #define AUTH_POST 2 // allow posting
  57. #define AUTH_ALL 3 // allow read + post
  58. #define AUTH_NOAUTH 4 // no auth needed
  59. #include "Configuration.H"
  60. #endif /*!EVERYTHING_H*/