lua-bcrypt

Secure password hashing for Lua
Log | Files | Refs

stdlib.h (532B)


      1 /*
      2  * stdlib.h compatibility shim
      3  * Public domain
      4  */
      5 
      6 #include_next <stdlib.h>
      7 
      8 #ifndef LIBCRYPTOCOMPAT_STDLIB_H
      9 #define LIBCRYPTOCOMPAT_STDLIB_H
     10 
     11 #include <sys/stat.h>
     12 #include <sys/time.h>
     13 #include <stdint.h>
     14 
     15 #ifndef HAVE_ARC4RANDOM_BUF
     16 uint32_t arc4random(void);
     17 void arc4random_buf(void *_buf, size_t n);
     18 #endif
     19 
     20 #ifndef HAVE_REALLOCARRAY
     21 void *reallocarray(void *, size_t, size_t);
     22 #endif
     23 
     24 #ifndef HAVE_STRTONUM
     25 long long strtonum(const char *nptr, long long minval,
     26 		long long maxval, const char **errstr);
     27 #endif
     28 
     29 #endif