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

  1. #ifndef _HEADERS_H
  2. #define _HEADERS_H
  3.  
  4. /* --------------------------------------------- */
  5.  
  6. #ifdef HAVE_CONFIG_H
  7. #include <config.h> /* essential */
  8. #endif
  9.  
  10. #include <stdio.h>
  11. #include <unistd.h>
  12. #include <stdlib.h>
  13. #include <stddef.h>
  14. #include <stdarg.h>
  15.  
  16. #include <pwd.h>
  17. #include <utmp.h>
  18. #include <ctype.h>
  19. #include <errno.h>
  20. #include <fcntl.h>
  21.  
  22. #ifdef _PATH_HEQUIV
  23. #undef _PATH_HEQUIV
  24. #endif
  25.  
  26. #include <netdb.h>
  27.  
  28. #ifdef HAVE_PATHS_H
  29. # include <paths.h>
  30. #endif
  31.  
  32. #include <dirent.h>
  33. #include <signal.h>
  34. #include <setjmp.h>
  35. #include <string.h>
  36. #include <malloc.h>
  37. #include <sys/param.h>
  38.  
  39. #ifdef HAVE_MEMORY_H
  40. # include <memory.h>
  41. #endif
  42.  
  43. #include <limits.h>
  44.  
  45. #ifdef SYSLOG_NAMES
  46. # undef SYSLOG_NAMES
  47. #endif
  48.  
  49. #include <syslog.h>
  50.  
  51. #ifdef HAVE_GETOPT_H
  52. # include <getopt.h>
  53. #endif
  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_SYS_STAT_H
  68. # include <sys/stat.h>
  69. #endif
  70.  
  71. #include <sys/un.h>
  72.  
  73. #ifdef HAVE_SYS_SHM_H
  74. #include <sys/shm.h>
  75. #endif
  76.  
  77. #include <sys/ipc.h>
  78.  
  79. #ifdef HAVE_ASM_PAGE_H
  80. # include <asm/page.h>
  81. #endif
  82.  
  83. #ifdef HAVE_KVM_H
  84. #include <kvm.h>
  85. #endif
  86.  
  87. #include <sys/stat.h>
  88. #include <sys/types.h>
  89. #include <netinet/in.h>
  90. #include <sys/socket.h>
  91.  
  92. #ifdef BSD
  93. # include <sys/uio.h>
  94. #endif
  95.  
  96. #include <sys/utsname.h>
  97.  
  98. #ifdef HAVE_SYS_WAIT_H
  99. # include <sys/wait.h>
  100. #endif
  101.  
  102. #ifdef HAVE_UTIME_H
  103. # include <utime.h>
  104. #endif
  105.  
  106. #ifdef TIME_WITH_SYS_TIME
  107. # include <time.h>
  108. # include <sys/time.h>
  109. #else
  110. # ifdef HAVE_SYS_TIME_H
  111. #  include <sys/time.h>
  112. # else
  113. #  include <time.h>
  114. # endif
  115. #endif
  116.  
  117. #ifdef HAVE_SYS_TIMES_H
  118. # include <sys/times.h>
  119. #endif
  120.  
  121. #ifdef HAVE_SYS_TIME_H
  122. # include <sys/time.h>
  123. #endif
  124.  
  125. #ifdef HAVE_SYS_STRLOG_H
  126. #include <sys/strlog.h>
  127. #endif
  128.  
  129. #ifdef HAVE_SYS_STROPTS_H
  130. #include <sys/stropts.h>
  131. #endif
  132.  
  133. /* ------------------------------- */
  134.  
  135. #ifndef __GNUC__
  136. # define __asm__  asm
  137. # define __unix__ unix
  138. # define __vax__  vax
  139. #endif
  140.  
  141. #ifndef __unix__
  142. # error This is for Unix-derived operating systems only.
  143. #endif
  144.  
  145. #ifdef __vax__
  146. # error This will not compile on a VAX machine.
  147. #endif
  148.  
  149. #ifndef __P
  150. # ifdef STDC_HEADERS
  151. #  define __P(x) x
  152. # else
  153. #  define __P(x) ()
  154. # endif
  155. #endif
  156.  
  157. /* _DECLS's */
  158. #ifndef __cplusplus
  159. # ifndef __BEGIN_DECLS
  160. #  define __BEGIN_DECLS
  161. # endif
  162. # ifndef __END_DECLS
  163. #  define __END_DECLS
  164. # endif
  165. #endif
  166. /* -------- */
  167.  
  168. /* ------------------------------- */
  169.  
  170. /* SSL header files */
  171. #ifndef NOSSL
  172. # include "ssl.h"
  173.      
  174. #ifdef HAVE_DB_H
  175. # include "db.h"
  176. #endif
  177.  
  178. # include "err.h"
  179. # include "pem.h"
  180. #endif
  181.  
  182. /* ------------------------------- */
  183.  
  184. #include "macros.h"     /* macro definitions        */
  185. #include "structs.h"    /* global data structures   */
  186. #include "data.h"       /* global data declarations */
  187. #include "functions.h"  /* function declarations    */
  188.  
  189. /* ------------------------------- */
  190.  
  191. #endif /* _HEADERS_H */
  192.