home *** CD-ROM | disk | FTP | other *** search
/ Power Hacker 2003 / Power_Hacker_2003.iso / Exploit and vulnerability / w00w00 / sectools / SRS / server / include / headers.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-12  |  2.5 KB  |  168 lines

  1. /* source system to use standard ANSI C & POSIX */
  2. #ifndef _HEADERS_H
  3. #define _HEADERS_H
  4.  
  5. #ifdef HAVE_CONFIG_H
  6. #include <config.h> /* essential */
  7. #endif
  8.  
  9. #include <stdio.h>
  10. #include <unistd.h>
  11. #include <stdlib.h>
  12. #include <stddef.h>
  13. #include <stdarg.h>
  14.  
  15. #include <errno.h>
  16. #include <fcntl.h>
  17. #include <ctype.h>
  18.  
  19. #ifdef _PATH_HEQUIV
  20. # undef _PATH_HEQUIV
  21. #endif
  22.  
  23. #include <netdb.h>
  24.  
  25. #include <string.h>
  26. #include <signal.h>
  27. #include <malloc.h>
  28.  
  29. #include <pwd.h>
  30. /* ------------------------- */
  31.  
  32. #ifdef NEED_MEMORY_H
  33. #include <memory.h>
  34. #endif
  35.  
  36. #ifdef HAVE_GETOPT_H
  37. #include <getopt.h>
  38. #endif
  39.  
  40. #include <limits.h>
  41. #include <setjmp.h>
  42.  
  43. #ifdef SYSLOG_NAMES
  44. # undef SYSLOG_NAMES
  45. #endif
  46.  
  47. #include <syslog.h>
  48.  
  49. #ifdef HAVE_SYS_SHM_H
  50. #include <sys/shm.h>
  51. #endif
  52.  
  53. #include <sys/ipc.h>
  54.  
  55. #ifdef HAVE_SYS_SELECT_H
  56. #include <sys/select.h>
  57. #endif
  58.  
  59. #ifdef HAVE_POSIX_OPT_H
  60. #include <posix_opt.h>
  61. #endif
  62.  
  63. #ifdef _POSIX_SAVED_IDS
  64. # undef _POSIX_SAVED_IDS
  65. #endif
  66.  
  67. #ifdef HAVE_KVM_H
  68. # include <kvm.h>
  69. #endif
  70.  
  71. #ifdef HAVE_ASM_PAGE_H
  72. # include <asm/page.h>
  73. #endif
  74.  
  75. #ifdef HAVE_SYS_WAIT_H
  76. # include <sys/wait.h>
  77. #endif
  78.  
  79. #include <sys/stat.h>
  80.  
  81. #ifdef HAVE_UTIME_H
  82. # include <utime.h>
  83. #endif
  84.  
  85. #ifdef TIME_WITH_SYS_TIME
  86. # include <time.h>
  87. # include <sys/time.h>
  88. #else
  89. # ifdef HAVE_SYS_TIME_H
  90. #  include <sys/time.h>
  91. # else
  92. #  include <time.h>
  93. # endif
  94. #endif
  95.  
  96. #ifdef HAVE_SYS_TIMES_H
  97. # include <sys/times.h>
  98. #endif
  99.  
  100. #include <sys/types.h>
  101. #include <sys/socket.h>
  102. #include <netinet/in.h>
  103. #include <sys/utsname.h>
  104.  
  105. #ifdef NLIST_STRUCT
  106. # include <nlist.h>
  107. #endif
  108.  
  109. /* ------------------------------ */
  110.  
  111. /* not needed yet.. but might be */
  112. #ifndef __GNUC__
  113. #define __asm__  asm
  114. #define __unix__ unix
  115. #define __vax__  vax
  116. #endif
  117.  
  118. #ifndef __unix__
  119. #error This is for Unix-derived clients only.
  120. #endif
  121.  
  122. #ifdef __vax__
  123. #error This will not work on a VAX machine.
  124. #endif
  125.  
  126. #ifndef __P
  127. # ifdef STDC_HEADERS
  128. #  define __P(x) x
  129. # else
  130. #  define __P(x) ()
  131. # endif
  132. #endif /* STDC_HEADERS */
  133.  
  134. /* _DECLS's */
  135. #ifndef __cplusplus
  136. # ifndef __BEGIN_DECLS
  137. #  define __BEGIN_DECLS
  138. # endif
  139. # ifndef __END_DECLS
  140. #  define __END_DECLS
  141. # endif
  142.  
  143. #endif
  144. /* -------- */
  145.  
  146. /* ------------------------------ */
  147.  
  148. /* SSL header files */
  149. #ifndef NOSSL
  150. # include "ssl.h"
  151.  
  152. #ifdef HAVE_DB_H
  153. # include "db.h"
  154. #endif
  155.  
  156. # include "err.h"
  157. # include "pem.h"
  158. #endif
  159. /* ---------------- */
  160.  
  161. #include "macros.h"     /* macro definitions    */
  162. #include "errors.h"     /* error definitions    */
  163. #include "data.h"       /* global data declarations  */
  164. #include "structs.h"    /* has the global structures */
  165. #include "functions.h"  /* function declarations     */
  166.  
  167. #endif /* _HEADERS_H */
  168.