You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

unix-std.h 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. /*-
  2. * Copyright 2016 Vsevolod Stakhov
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef RSPAMD_UNIX_STD_H_H
  17. #define RSPAMD_UNIX_STD_H_H
  18. #include "config.h"
  19. /*
  20. * Default unix system includes
  21. */
  22. /* sys/file.h */
  23. #ifdef HAVE_SYS_FILE_H
  24. #include <sys/file.h>
  25. #endif
  26. /* sys/uio.h */
  27. #ifdef HAVE_SYS_UIO_H
  28. #include <sys/uio.h>
  29. #endif
  30. /* sys/mman */
  31. #ifdef HAVE_SYS_MMAN_H
  32. #include <sys/mman.h>
  33. #endif
  34. /* timedb */
  35. #ifdef HAVE_SYS_TIMEB_H
  36. #include <sys/timeb.h>
  37. #endif
  38. #ifdef HAVE_UNISTD_H
  39. #include <unistd.h>
  40. #endif
  41. /* strings */
  42. #ifdef HAVE_STRINGS_H
  43. #include <strings.h>
  44. #endif
  45. /* fcntl */
  46. #ifdef HAVE_FCNTL_H
  47. #include <fcntl.h>
  48. #endif
  49. #ifdef HAVE_SYS_STAT_H
  50. #include <sys/stat.h>
  51. #endif
  52. #ifdef HAVE_DIRENT_H
  53. #include <dirent.h>
  54. #endif
  55. #include <signal.h>
  56. #ifdef HAVE_LIBGEN_H
  57. #include <libgen.h>
  58. #endif
  59. #ifdef HAVE_SYS_SOCKET_H
  60. #include <sys/socket.h>
  61. #endif
  62. #endif