Changeset View
Changeset View
Standalone View
Standalone View
include/stdlib.h
Show First 20 Lines • Show All 318 Lines • ▼ Show 20 Lines | |||||
__uint64_t | __uint64_t | ||||
strtouq(const char *, char **, int); | strtouq(const char *, char **, int); | ||||
extern char *suboptarg; /* getsubopt(3) external variable */ | extern char *suboptarg; /* getsubopt(3) external variable */ | ||||
#endif /* __BSD_VISIBLE */ | #endif /* __BSD_VISIBLE */ | ||||
#if __EXT1_VISIBLE | #if __EXT1_VISIBLE | ||||
#ifndef _ERRNO_T_DEFINED | #ifndef _ERRNO_T_DEFINED | ||||
arichardson: Unrelated to this patch, but all other types use `_FOO_DECLARED`. Would be nice if we could be… | |||||
#define _ERRNO_T_DEFINED | #define _ERRNO_T_DEFINED | ||||
typedef int errno_t; | typedef int errno_t; | ||||
#endif | #endif | ||||
/* K.3.6 */ | /* K.3.6 */ | ||||
typedef void (*constraint_handler_t)(const char * __restrict, | typedef void (*constraint_handler_t)(const char * __restrict, | ||||
void * __restrict, errno_t); | void * __restrict, errno_t); | ||||
/* 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 */ | |||||
errno_t qsort_s(void *, size_t, size_t, void *, | |||||
kibUnsubmitted Done Inline ActionsPrototype is wrong. Take a look at the K.3.6.3.2. kib: Prototype is wrong. Take a look at the K.3.6.3.2. | |||||
int (*)(const void *, const void *, void *)); | |||||
kibUnsubmitted Done Inline ActionsIndent is wrong. kib: Indent is wrong. | |||||
#endif /* __EXT1_VISIBLE */ | #endif /* __EXT1_VISIBLE */ | ||||
__END_DECLS | __END_DECLS | ||||
__NULLABILITY_PRAGMA_POP | __NULLABILITY_PRAGMA_POP | ||||
#endif /* !_STDLIB_H_ */ | #endif /* !_STDLIB_H_ */ |
Unrelated to this patch, but all other types use _FOO_DECLARED. Would be nice if we could be consistent.
Annoyingly, the clang builtin headers use _RSIZE_T and _SIZE_T, etc. so they are not compatible.