VSF Documented
Data Structures | Macros | Typedefs | Functions | Variables
stdlib.h File Reference
#include "shell/sys/linux/vsf_linux_cfg.h"
#include "./stddef.h"
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  div_t
 
struct  ldiv_t
 
struct  lldiv_t
 
struct  vsf_linux_libc_stdlib_vplt_t
 

Macros

#define VSF_LINUX_LIBC_HAS_ITOA   1
 
#define aligned_alloc   VSF_LINUX_LIBC_WRAPPER(aligned_alloc)
 
#define free   VSF_LINUX_LIBC_WRAPPER(free)
 
#define posix_memalign   VSF_LINUX_LIBC_WRAPPER(posix_memalign)
 
#define malloc_usable_size   VSF_LINUX_LIBC_WRAPPER(malloc_usable_size)
 
#define exit   VSF_LINUX_LIBC_WRAPPER(exit)
 
#define atexit   VSF_LINUX_LIBC_WRAPPER(atexit)
 
#define _Exit   VSF_LINUX_LIBC_WRAPPER(_Exit)
 
#define system   VSF_LINUX_LIBC_WRAPPER(system)
 
#define realpath   VSF_LINUX_LIBC_WRAPPER(realpath)
 
#define mktemps   VSF_LINUX_LIBC_WRAPPER(mktemps)
 
#define mktemp   VSF_LINUX_LIBC_WRAPPER(mktemp)
 
#define mkstemp   VSF_LINUX_LIBC_WRAPPER(mkstemp)
 
#define mkostemp   VSF_LINUX_LIBC_WRAPPER(mkostemp)
 
#define mkstemps   VSF_LINUX_LIBC_WRAPPER(mkstemps)
 
#define mkostemps   VSF_LINUX_LIBC_WRAPPER(mkostemps)
 
#define mkdtemp   VSF_LINUX_LIBC_WRAPPER(mkdtemp)
 
#define __NR_exit   exit
 
#define RAND_MAX   0x7FFF
 
#define EXIT_SUCCESS   0
 
#define EXIT_FAILURE   -1
 
#define malloc(__size)   ____malloc_ex(NULL, (__size), __FILE__, __FUNCTION__, __LINE__)
 
#define calloc(__n, __size)   ____calloc_ex(NULL, (__n), (__size), __FILE__, __FUNCTION__, __LINE__)
 
#define realloc(__ptr, __size)   ____realloc_ex(NULL, (__ptr), (__size), __FILE__, __FUNCTION__, __LINE__)
 

Typedefs

typedef struct vsf_linux_libc_stdlib_vplt_t vsf_linux_libc_stdlib_vplt_t
 
typedef struct vsf_linux_process_t vsf_linux_process_t
 

Functions

void * ____malloc_ex (vsf_linux_process_t *process, size_t size, const char *file, const char *func, int line)
 
void * ____calloc_ex (vsf_linux_process_t *process, size_t n, size_t size, const char *file, const char *func, int line)
 
void * ____realloc_ex (vsf_linux_process_t *process, void *p, size_t size, const char *file, const char *func, int line)
 
void free (void *p)
 
void * aligned_alloc (size_t alignment, size_t size)
 
int posix_memalign (void **memptr, size_t alignment, size_t size)
 
size_t malloc_usable_size (void *p)
 
char * mktemps (char *template_str, int suffixlen)
 
char * mktemp (char *template_str)
 
int mkstemp (char *template_str)
 
int mkostemp (char *template_str, int flags)
 
int mkstemps (char *template_str, int suffixlen)
 
int mkostemps (char *template_str, int suffixlen, int flags)
 
char * mkdtemp (char *template_str)
 
div_t div (int numer, int denom)
 
ldiv_t ldiv (long int numer, long int denom)
 
lldiv_t lldiv (long long int numer, long long int denom)
 
int atoi (const char *str)
 
long int atol (const char *str)
 
long long int atoll (const char *str)
 
double atof (const char *str)
 
long strtol (const char *str, char **endptr, int base)
 
unsigned long strtoul (const char *str, char **endptr, int base)
 
long long strtoll (const char *str, char **endptr, int base)
 
unsigned long long strtoull (const char *str, char **endptr, int base)
 
float strtof (const char *str, char **endptr)
 
double strtod (const char *str, char **endptr)
 
void * bsearch (const void *key, const void *base, size_t nitems, size_t size, int(*compar)(const void *, const void *))
 
int rand (void)
 
void srand (unsigned int seed)
 
void srandom (unsigned int seed)
 
long int random (void)
 
void qsort (void *base, size_t nitems, size_t size, int(*compar)(const void *, const void *))
 
VSF_CAL_NO_RETURN void abort (void)
 
int system (const char *command)
 
VSF_CAL_NO_RETURN void exit (int status)
 
int atexit (void(*func)(void))
 
VSF_CAL_NO_RETURN void _Exit (int exit_code)
 
int abs (int j)
 
long labs (long j)
 
long long llabs (long long j)
 
intmax_t imaxabs (intmax_t j)
 
int getloadavg (double loadavg[], int nelem)
 
char * realpath (const char *path, char *resolved_path)
 
int at_quick_exit (void(*func)(void))
 
void quick_exit (int status)
 
int mblen (const char *str, size_t n)
 
size_t mbstowcs (wchar_t *dst, const char *src, size_t len)
 
int mbtowc (wchar_t *pwc, const char *str, size_t n)
 
size_t wcstombs (char *str, const wchar_t *pwcs, size_t n)
 
int wctomb (char *str, wchar_t wchar)
 

Variables

__VSF_VPLT_DECORATOR__ vsf_linux_libc_stdlib_vplt_t vsf_linux_libc_stdlib_vplt
 

Macro Definition Documentation

◆ VSF_LINUX_LIBC_HAS_ITOA

#define VSF_LINUX_LIBC_HAS_ITOA   1

◆ aligned_alloc

#define aligned_alloc   VSF_LINUX_LIBC_WRAPPER(aligned_alloc)

◆ free

#define free   VSF_LINUX_LIBC_WRAPPER(free)

◆ posix_memalign

#define posix_memalign   VSF_LINUX_LIBC_WRAPPER(posix_memalign)

◆ malloc_usable_size

#define malloc_usable_size   VSF_LINUX_LIBC_WRAPPER(malloc_usable_size)

◆ exit

#define exit   VSF_LINUX_LIBC_WRAPPER(exit)

◆ atexit

#define atexit   VSF_LINUX_LIBC_WRAPPER(atexit)

◆ _Exit

#define _Exit   VSF_LINUX_LIBC_WRAPPER(_Exit)

◆ system

#define system   VSF_LINUX_LIBC_WRAPPER(system)

◆ realpath

#define realpath   VSF_LINUX_LIBC_WRAPPER(realpath)

◆ mktemps

#define mktemps   VSF_LINUX_LIBC_WRAPPER(mktemps)

◆ mktemp

#define mktemp   VSF_LINUX_LIBC_WRAPPER(mktemp)

◆ mkstemp

#define mkstemp   VSF_LINUX_LIBC_WRAPPER(mkstemp)

◆ mkostemp

#define mkostemp   VSF_LINUX_LIBC_WRAPPER(mkostemp)

◆ mkstemps

#define mkstemps   VSF_LINUX_LIBC_WRAPPER(mkstemps)

◆ mkostemps

#define mkostemps   VSF_LINUX_LIBC_WRAPPER(mkostemps)

◆ mkdtemp

#define mkdtemp   VSF_LINUX_LIBC_WRAPPER(mkdtemp)

◆ __NR_exit

#define __NR_exit   exit

◆ RAND_MAX

#define RAND_MAX   0x7FFF

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

◆ EXIT_FAILURE

#define EXIT_FAILURE   -1

◆ malloc

#define malloc (   __size)    ____malloc_ex(NULL, (__size), __FILE__, __FUNCTION__, __LINE__)

◆ calloc

#define calloc (   __n,
  __size 
)    ____calloc_ex(NULL, (__n), (__size), __FILE__, __FUNCTION__, __LINE__)

◆ realloc

#define realloc (   __ptr,
  __size 
)    ____realloc_ex(NULL, (__ptr), (__size), __FILE__, __FUNCTION__, __LINE__)

Typedef Documentation

◆ vsf_linux_libc_stdlib_vplt_t

◆ vsf_linux_process_t

Function Documentation

◆ ____malloc_ex()

void * ____malloc_ex ( vsf_linux_process_t process,
size_t  size,
const char *  file,
const char *  func,
int  line 
)

◆ ____calloc_ex()

void * ____calloc_ex ( vsf_linux_process_t process,
size_t  n,
size_t  size,
const char *  file,
const char *  func,
int  line 
)

◆ ____realloc_ex()

void * ____realloc_ex ( vsf_linux_process_t process,
void *  p,
size_t  size,
const char *  file,
const char *  func,
int  line 
)

◆ free()

void free ( void *  p)

◆ aligned_alloc()

void * aligned_alloc ( size_t  alignment,
size_t  size 
)

◆ posix_memalign()

int posix_memalign ( void **  memptr,
size_t  alignment,
size_t  size 
)

◆ malloc_usable_size()

size_t malloc_usable_size ( void *  p)

◆ mktemps()

char * mktemps ( char *  template_str,
int  suffixlen 
)

◆ mktemp()

char * mktemp ( char *  template_str)

◆ mkstemp()

int mkstemp ( char *  template_str)

◆ mkostemp()

int mkostemp ( char *  template_str,
int  flags 
)

◆ mkstemps()

int mkstemps ( char *  template_str,
int  suffixlen 
)

◆ mkostemps()

int mkostemps ( char *  template_str,
int  suffixlen,
int  flags 
)

◆ mkdtemp()

char * mkdtemp ( char *  template_str)

◆ div()

div_t div ( int  numer,
int  denom 
)

◆ ldiv()

ldiv_t ldiv ( long int  numer,
long int  denom 
)

◆ lldiv()

lldiv_t lldiv ( long long int  numer,
long long int  denom 
)

◆ atoi()

int atoi ( const char *  str)

◆ atol()

long int atol ( const char *  str)

◆ atoll()

long long int atoll ( const char *  str)

◆ atof()

double atof ( const char *  str)

◆ strtol()

long strtol ( const char *  str,
char **  endptr,
int  base 
)

◆ strtoul()

unsigned long strtoul ( const char *  str,
char **  endptr,
int  base 
)

◆ strtoll()

long long strtoll ( const char *  str,
char **  endptr,
int  base 
)

◆ strtoull()

unsigned long long strtoull ( const char *  str,
char **  endptr,
int  base 
)

◆ strtof()

float strtof ( const char *  str,
char **  endptr 
)

◆ strtod()

double strtod ( const char *  str,
char **  endptr 
)

◆ bsearch()

void * bsearch ( const void *  key,
const void *  base,
size_t  nitems,
size_t  size,
int(*)(const void *, const void *)  compar 
)

◆ rand()

int rand ( void  )

◆ srand()

void srand ( unsigned int  seed)

◆ srandom()

void srandom ( unsigned int  seed)

◆ random()

long int random ( void  )

◆ qsort()

void qsort ( void *  base,
size_t  nitems,
size_t  size,
int(*)(const void *, const void *)  compar 
)

◆ abort()

VSF_CAL_NO_RETURN void abort ( void  )

◆ system()

int system ( const char *  command)

◆ exit()

VSF_CAL_NO_RETURN void exit ( int  status)

◆ atexit()

int atexit ( void(*)(void)  func)

◆ _Exit()

VSF_CAL_NO_RETURN void _Exit ( int  exit_code)

◆ abs()

int abs ( int  j)

◆ labs()

long labs ( long  j)

◆ llabs()

long long llabs ( long long  j)

◆ imaxabs()

intmax_t imaxabs ( intmax_t  j)

◆ getloadavg()

int getloadavg ( double  loadavg[],
int  nelem 
)

◆ realpath()

char * realpath ( const char *  path,
char *  resolved_path 
)

◆ at_quick_exit()

int at_quick_exit ( void(*)(void)  func)

◆ quick_exit()

void quick_exit ( int  status)

◆ mblen()

int mblen ( const char *  str,
size_t  n 
)

◆ mbstowcs()

size_t mbstowcs ( wchar_t dst,
const char *  src,
size_t  len 
)

◆ mbtowc()

int mbtowc ( wchar_t pwc,
const char *  str,
size_t  n 
)

◆ wcstombs()

size_t wcstombs ( char *  str,
const wchar_t pwcs,
size_t  n 
)

◆ wctomb()

int wctomb ( char *  str,
wchar_t  wchar 
)

Variable Documentation

◆ vsf_linux_libc_stdlib_vplt

__VSF_VPLT_DECORATOR__ vsf_linux_libc_stdlib_vplt_t vsf_linux_libc_stdlib_vplt
extern