Changeset View
Changeset View
Standalone View
Standalone View
include/stdlib.h
Show First 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | |||||
void free(void *); | void free(void *); | ||||
char *getenv(const char *); | char *getenv(const char *); | ||||
long labs(long) __pure2; | long labs(long) __pure2; | ||||
ldiv_t ldiv(long, long) __pure2; | ldiv_t ldiv(long, long) __pure2; | ||||
void *malloc(size_t) __malloc_like __result_use_check __alloc_size(1); | void *malloc(size_t) __malloc_like __result_use_check __alloc_size(1); | ||||
int mblen(const char *, size_t); | int mblen(const char *, size_t); | ||||
size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); | size_t mbstowcs(wchar_t * __restrict , const char * __restrict, size_t); | ||||
int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); | int mbtowc(wchar_t * __restrict, const char * __restrict, size_t); | ||||
void bsort(void *, size_t, size_t, | |||||
delphij: This should probably live under `#if __BSD_VISIBLE` as it's not in POSIX. | |||||
int (* _Nonnull)(const void *, const void *)); | |||||
void qsort(void *, size_t, size_t, | void qsort(void *, size_t, size_t, | ||||
int (* _Nonnull)(const void *, const void *)); | int (* _Nonnull)(const void *, const void *)); | ||||
int rand(void); | int rand(void); | ||||
void *realloc(void *, size_t) __result_use_check __alloc_size(2); | void *realloc(void *, size_t) __result_use_check __alloc_size(2); | ||||
void srand(unsigned); | void srand(unsigned); | ||||
double strtod(const char * __restrict, char ** __restrict); | double strtod(const char * __restrict, char ** __restrict); | ||||
float strtof(const char * __restrict, char ** __restrict); | float strtof(const char * __restrict, char ** __restrict); | ||||
long strtol(const char * __restrict, char ** __restrict, int); | long strtol(const char * __restrict, char ** __restrict, int); | ||||
▲ Show 20 Lines • Show All 177 Lines • ▼ Show 20 Lines | |||||
const char * | const char * | ||||
getprogname(void); | getprogname(void); | ||||
int heapsort(void *, size_t, size_t, | int heapsort(void *, size_t, size_t, | ||||
int (* _Nonnull)(const void *, const void *)); | int (* _Nonnull)(const void *, const void *)); | ||||
#ifdef __BLOCKS__ | #ifdef __BLOCKS__ | ||||
int heapsort_b(void *, size_t, size_t, | int heapsort_b(void *, size_t, size_t, | ||||
int (^ _Nonnull)(const void *, const void *)); | int (^ _Nonnull)(const void *, const void *)); | ||||
void bsort_b(void *, size_t, size_t, | |||||
int (^ _Nonnull)(const void *, const void *)); | |||||
void qsort_b(void *, size_t, size_t, | void qsort_b(void *, size_t, size_t, | ||||
int (^ _Nonnull)(const void *, const void *)); | int (^ _Nonnull)(const void *, const void *)); | ||||
#endif | #endif | ||||
int l64a_r(long, char *, int); | int l64a_r(long, char *, int); | ||||
int mergesort(void *, size_t, size_t, int (*)(const void *, const void *)); | int mergesort(void *, size_t, size_t, int (*)(const void *, const void *)); | ||||
#ifdef __BLOCKS__ | #ifdef __BLOCKS__ | ||||
int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *)); | int mergesort_b(void *, size_t, size_t, int (^)(const void *, const void *)); | ||||
#endif | #endif | ||||
int mkostemp(char *, int); | int mkostemp(char *, int); | ||||
int mkostemps(char *, int, int); | int mkostemps(char *, int, int); | ||||
int mkostempsat(int, char *, int, int); | int mkostempsat(int, char *, int, int); | ||||
void bsort_r(void *, size_t, size_t, void *, | |||||
int (*)(void *, const void *, const void *)); | |||||
void qsort_r(void *, size_t, size_t, void *, | void qsort_r(void *, size_t, size_t, void *, | ||||
int (*)(void *, const void *, const void *)); | int (*)(void *, const void *, const void *)); | ||||
Done Inline ActionsSimilarly -- this should be #if __BSD_VISIBLE. delphij: Similarly -- this should be `#if __BSD_VISIBLE`. | |||||
Done Inline ActionsIt's already BSD_VISIBLE - which makes me wonder if qsort_r() should be out of BSD_VISIBLE actually. See further up! hselasky: It's already BSD_VISIBLE - which makes me wonder if qsort_r() should be out of BSD_VISIBLE… | |||||
int radixsort(const unsigned char **, int, const unsigned char *, | int radixsort(const unsigned char **, int, const unsigned char *, | ||||
unsigned); | unsigned); | ||||
void *reallocarray(void *, size_t, size_t) __result_use_check | void *reallocarray(void *, size_t, size_t) __result_use_check | ||||
__alloc_size2(2, 3); | __alloc_size2(2, 3); | ||||
void *reallocf(void *, size_t) __result_use_check __alloc_size(2); | void *reallocf(void *, size_t) __result_use_check __alloc_size(2); | ||||
int rpmatch(const char *); | int rpmatch(const char *); | ||||
void setprogname(const char *); | void setprogname(const char *); | ||||
int sradixsort(const unsigned char **, int, const unsigned char *, | int sradixsort(const unsigned char **, int, const unsigned char *, | ||||
Show All 29 Lines | |||||
/* K.3.6.1.1 */ | /* K.3.6.1.1 */ | ||||
constraint_handler_t set_constraint_handler_s(constraint_handler_t handler); | constraint_handler_t set_constraint_handler_s(constraint_handler_t handler); | ||||
/* K.3.6.1.2 */ | /* K.3.6.1.2 */ | ||||
_Noreturn void abort_handler_s(const char * __restrict, void * __restrict, | _Noreturn void abort_handler_s(const char * __restrict, void * __restrict, | ||||
errno_t); | errno_t); | ||||
/* K3.6.1.3 */ | /* K3.6.1.3 */ | ||||
void ignore_handler_s(const char * __restrict, void * __restrict, errno_t); | void ignore_handler_s(const char * __restrict, void * __restrict, errno_t); | ||||
/* K.3.6.3.2 */ | /* K.3.6.3.2 */ | ||||
errno_t bsort_s(void *, rsize_t, rsize_t, | |||||
Done Inline ActionsDitto; this is not part of the ISO C standard, so it should be covered by our namespace (I do think it's logically belonging here, nested under __EXT1_VISIBLE) delphij: Ditto; this is not part of the ISO C standard, so it should be covered by our namespace (I do… | |||||
int (*)(const void *, const void *, void *), void *); | |||||
errno_t qsort_s(void *, rsize_t, rsize_t, | errno_t qsort_s(void *, rsize_t, rsize_t, | ||||
int (*)(const void *, const void *, void *), void *); | int (*)(const void *, const void *, void *), void *); | ||||
#endif /* __EXT1_VISIBLE */ | #endif /* __EXT1_VISIBLE */ | ||||
__END_DECLS | __END_DECLS | ||||
__NULLABILITY_PRAGMA_POP | __NULLABILITY_PRAGMA_POP | ||||
#endif /* !_STDLIB_H_ */ | #endif /* !_STDLIB_H_ */ |
This should probably live under #if __BSD_VISIBLE as it's not in POSIX.