xref: /freebsd/contrib/libdiff/compat/include/stdlib.h (revision 96190b4fef3b4a0cc3ca0606b0c4e3e69a5e6717)
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