9#ifndef ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STDLIB_H_
10#define ZEPHYR_LIB_LIBC_MINIMAL_INCLUDE_STDLIB_H_
21unsigned long strtoul(
const char *nptr,
char **endptr,
int base);
22long strtol(
const char *nptr,
char **endptr,
int base);
23unsigned long long strtoull(
const char *nptr,
char **endptr,
int base);
24long long strtoll(
const char *nptr,
char **endptr,
int base);
31void *
calloc(
size_t nmemb,
size_t size);
35void *
bsearch(
const void *key,
const void *array,
36 size_t count,
size_t size,
37 int (*cmp)(
const void *key,
const void *element));
39void qsort_r(
void *base,
size_t nmemb,
size_t size,
40 int (*compar)(
const void *,
const void *,
void *),
void *arg);
41void qsort(
void *base,
size_t nmemb,
size_t size,
42 int (*compar)(
const void *,
const void *));
46FUNC_NORETURN
void _exit(
int status);
47FUNC_NORETURN
static inline void exit(
int status)
53#ifdef CONFIG_MINIMAL_LIBC_RAND
54#define RAND_MAX INT_MAX
55int rand_r(
unsigned int *seed);
57void srand(
unsigned int seed);
60static inline int abs(
int __n)
62 return (__n < 0) ? -__n : __n;
65static inline long labs(
long __n)
67 return (__n < 0L) ? -__n : __n;
70static inline long long llabs(
long long __n)
72 return (__n < 0LL) ? -__n : __n;
76#if _POSIX_C_SOURCE >= 200112L
77int setenv(
const char *name,
const char *val,
int overwrite);
78int unsetenv(
const char *name);
82int getenv_r(
const char *name,
char *buf,
size_t len);
irp nz macro MOVR cc s mov cc s endm endr irp aw macro LDR aa s
Definition asm-macro-32-bit-gnu.h:17
void qsort_r(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *, void *), void *arg)
void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void *, const void *))
void * calloc(size_t nmemb, size_t size)
long strtol(const char *nptr, char **endptr, int base)
FUNC_NORETURN void abort(void)
static long long llabs(long long __n)
Definition stdlib.h:70
void * bsearch(const void *key, const void *array, size_t count, size_t size, int(*cmp)(const void *key, const void *element))
unsigned long strtoul(const char *nptr, char **endptr, int base)
void * aligned_alloc(size_t alignment, size_t size)
static long labs(long __n)
Definition stdlib.h:65
void * malloc(size_t size)
void * reallocarray(void *ptr, size_t nmemb, size_t size)
char * getenv(const char *name)
static FUNC_NORETURN void exit(int status)
Definition stdlib.h:47
void * realloc(void *ptr, size_t size)
static int abs(int __n)
Definition stdlib.h:60
unsigned long long strtoull(const char *nptr, char **endptr, int base)
long long strtoll(const char *nptr, char **endptr, int base)