picotm  0.5.0
Functions
stdlib.h File Reference

Transactional wrappers for interfaces of <stdlib.h>. More...

#include <picotm/compiler.h>
#include <picotm/picotm-tm.h>
#include <stdlib.h>

Functions

PICOTM_NOTHROW PICOTM_NORETURN void _Exit_tx (int status)
 
PICOTM_NOTHROW PICOTM_NORETURN void abort_tx (void)
 
PICOTM_NOTHROW void * calloc_tx (size_t nmemb, size_t size)
 
PICOTM_NOTHROW PICOTM_NORETURN void exit_tx (int status)
 
PICOTM_NOTHROW void free_tx (void *ptr)
 
PICOTM_NOTHROW void * malloc_tx (size_t size)
 
PICOTM_EXPORT char * mkdtemp_tx (char *template)
 
PICOTM_EXPORT int mkstemp_tx (char *template)
 
PICOTM_NOTHROW int posix_memalign_tx (void **memptr, size_t alignment, size_t size)
 
PICOTM_NOTHROW void qsort_tx (void *base, size_t nel, size_t width, int(*compar)(const void *, const void *))
 
PICOTM_NOTHROW void * realloc_tx (void *ptr, size_t size)
 
PICOTM_NOTHROW int rand_r_tx (unsigned int *seed)
 

Function Documentation

◆ _Exit_tx()

PICOTM_NOTHROW PICOTM_NORETURN void _Exit_tx ( int  status)

A transaction-safe implementation of _Exit().

Bug:
Calling _Exit() simply terminates the process. It probably should not be available in a transaction.

◆ abort_tx()

PICOTM_NOTHROW PICOTM_NORETURN void abort_tx ( void  )

A transaction-safe implementation of abort().

Bug:
Calling abort() simply terminates the process. It probably should not be available in a transaction.

◆ calloc_tx()

PICOTM_NOTHROW void* calloc_tx ( size_t  nmemb,
size_t  size 
)

A transaction-safe implementation of calloc().

◆ exit_tx()

PICOTM_NOTHROW PICOTM_NORETURN void exit_tx ( int  status)

A transaction-safe implementation of exit().

Bug:
Calling exit() simply terminates the process. It probably should not be available in a transaction.

◆ free_tx()

PICOTM_NOTHROW void free_tx ( void *  ptr)

A transaction-safe implementation of free().

◆ malloc_tx()

PICOTM_NOTHROW void* malloc_tx ( size_t  size)

A transaction-safe implementation of malloc().

◆ mkdtemp_tx()

PICOTM_EXPORT char* mkdtemp_tx ( char *  template)

A transaction-safe implementation of mkdtemp().

◆ mkstemp_tx()

PICOTM_EXPORT int mkstemp_tx ( char *  template)

A transaction-safe implementation of mkstemp().

◆ posix_memalign_tx()

PICOTM_NOTHROW int posix_memalign_tx ( void **  memptr,
size_t  alignment,
size_t  size 
)

A transaction-safe implementation of posix_memalign().

◆ qsort_tx()

PICOTM_NOTHROW void qsort_tx ( void *  base,
size_t  nel,
size_t  width,
int(*)(const void *, const void *)  compar 
)

A transaction-safe implementation of qsort().

◆ rand_r_tx()

PICOTM_NOTHROW int rand_r_tx ( unsigned int *  seed)

A transaction-safe implementation of rand_r().

◆ realloc_tx()

PICOTM_NOTHROW void* realloc_tx ( void *  ptr,
size_t  size 
)

A transaction-safe implementation of realloc().