ARMEBS4  revision-26.06.2015
Functions
Collaboration diagram for unistd.h:

Functions

void * _sbrk (int incr)
 Implementation of the sbrk systemcall for standalone software. More...
 
void * malloc (size_t size)
 
void free (void *ptr)
 
void * calloc (size_t nmemb, size_t size)
 
void * realloc (void *ptr, size_t size)
 
ssize_t write (int fd, const void *buf, size_t count)
 
ssize_t read (int fd, void *buf, size_t count)
 

Detailed Description

Links to unistd documentation

Function Documentation

void* _sbrk ( int  incr)

Implementation of the sbrk systemcall for standalone software.

This system call is used when there is no more space for malloc.

See also
http://linux.die.net/man/2/sbrk

Definition at line 34 of file sbrk.c.

References bsp_fatal(), and ERROR_OUT_OF_MEMORY.

Referenced by malloc().

Here is the call graph for this function:

Here is the caller graph for this function:

void* malloc ( size_t  size)
See also
http://linux.die.net/man/3/malloc

malloc is implemented in the newlib for standalone applications and uses pvPortMalloc when FreeRTOS is used.

Definition at line 17 of file helper_unistd_h.dox.

References _sbrk().

Here is the call graph for this function:

void free ( void *  ptr)
void* calloc ( size_t  nmemb,
size_t  size 
)
void* realloc ( void *  ptr,
size_t  size 
)
ssize_t write ( int  fd,
const void *  buf,
size_t  count 
)
See also
http://linux.die.net/man/2/write

Definition at line 40 of file helper_unistd_h.dox.

ssize_t read ( int  fd,
void *  buf,
size_t  count 
)
See also
http://linux.die.net/man/2/read

Definition at line 48 of file helper_unistd_h.dox.