Portable build framework for OpenNTPD
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.

37 lines
683 B

  1. /*
  2. * stdlib.h compatibility shim
  3. * Public domain
  4. */
  5. #include_next <stdlib.h>
  6. #ifndef LIBCOMPAT_STDLIB_H
  7. #define LIBCOMPAT_STDLIB_H
  8. #include <sys/stat.h>
  9. #include <sys/time.h>
  10. #include <stdint.h>
  11. #ifndef HAVE_ARC4RANDOM_
  12. uint32_t arc4random(void);
  13. #endif
  14. #ifndef HAVE_ARC4RANDOM_UNIFORM
  15. uint32_t arc4random_uniform(uint32_t);
  16. #endif
  17. #ifndef HAVE_REALLOCARRAY
  18. void *reallocarray(void *, size_t, size_t);
  19. #endif
  20. #ifndef HAVE_SETPROCTITLE
  21. void compat_init_setproctitle(int argc, char *argv[]);
  22. void setproctitle(const char *fmt, ...);
  23. #endif
  24. #ifndef HAVE_STRTONUM
  25. long long strtonum(const char *nptr, long long minval,
  26. long long maxval, const char **errstr);
  27. #endif
  28. #endif