]>
git.saurik.com Git - apple/xnu.git/blob - libsa/libsa/stdlib.h
304f0807e8c3033c7a7713a744f407d5ae7c1381
1 #ifndef _LIBSA_STDLIB_H_
2 #define _LIBSA_STDLIB_H_
5 #include <sys/_types.h>
9 typedef __darwin_size_t
size_t;
13 #if defined (__cplusplus)
16 #define NULL ((void *)0)
21 __private_extern__
const char *kld_basefile_name
;
27 __private_extern__
void * malloc(size_t size
);
28 __private_extern__
void free(void * address
);
29 __private_extern__
void free_all(void); // "Free" all memory blocks
30 __private_extern__
void malloc_reset(void); // Destroy all memory regions
31 __private_extern__
void * realloc(void * address
, size_t new_size
);
33 __private_extern__
char * strrchr(const char *cp
, int ch
);
34 __private_extern__
char * strstr(const char *in
, const char *str
);
36 __private_extern__
void qsort(
40 int (*)(const void *, const void *));
42 __private_extern__
const void * bsearch(
43 register const void *key
,
47 register int (*compar
)(const void *, const void *));
51 #endif /* _LIBSA_STDLIB_H_ */