1 /* 2 * stdlib.h compatibility shim 3 * Public domain 4 */ 5 6 #include_next <stdlib.h> 7 8 #ifndef DIFFCOMPAT_STDLIB_H 9 #define DIFFCOMPAT_STDLIB_H 10 11 #include <sys/types.h> 12 #include <stdint.h> 13 14 const char * getprogname(void); 15 16 void *reallocarray(void *, size_t, size_t); 17 void *recallocarray(void *, size_t, size_t, size_t); 18 int mergesort(void *, size_t, size_t, int (*cmp)(const void *, const void *)); 19 20 #endif 21