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 801B

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