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