libfuncs is collection of code (list, queue, circular buffer, io, logging, etc.). https://georgi.unixsol.org/programs/libfuncs/
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.

libfuncs.h 707B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * UX libfuncs main header
  3. * Copyright (C) 2006-2010 Unix Solutions Ltd.
  4. */
  5. #ifndef LIBFUNCS_H
  6. # define LIBFUNCS_H
  7. #undef DEBUG
  8. //#define DEBUG 1
  9. #define DNS_RESOLVER_TIMEOUT 5000
  10. #define FDGETLINE_TIMEOUT 500
  11. #define FDGETLINE_RETRIES 30
  12. #define FDREAD_TIMEOUT 1500
  13. #define FDREAD_RETRIES 7
  14. #define FDWRITE_TIMEOUT 1500
  15. #define FDWRITE_RETRIES 7
  16. #ifndef FREE
  17. #define FREE(x) if(x) { free(x); x=NULL; }
  18. #endif
  19. #ifndef POLLRDHUP
  20. #define POLLRDHUP 0
  21. #endif
  22. #define min(a,b) ((a < b) ? a : b)
  23. #define max(a,b) ((a > b) ? a : b)
  24. #include "asyncdns.h"
  25. #include "http_response.h"
  26. #include "io.h"
  27. #include "list.h"
  28. #include "log.h"
  29. #include "queue.h"
  30. #include "server.h"
  31. #include "misc.h"
  32. #endif