picotm  0.6.0
Functions
string.h File Reference

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

#include <picotm/compiler.h>
#include <string.h>

Functions

PICOTM_NOTHROW void * memccpy_tx (void *restrict dest, const void *restrict src, int c, size_t n)
 
PICOTM_NOTHROW void * memchr_tx (const void *s, int c, size_t n)
 
PICOTM_NOTHROW int memcmp_tx (const void *s1, const void *s2, size_t n)
 
PICOTM_NOTHROW void * memcpy_tx (void *restrict dest, const void *restrict src, size_t n)
 
PICOTM_NOTHROW void * memmove_tx (void *dest, const void *src, size_t n)
 
PICOTM_NOTHROW void * memset_tx (void *s, int c, size_t n)
 
PICOTM_NOTHROW void * memrchr_tx (const void *s, int c, size_t n)
 
PICOTM_NOTHROW void * rawmemchr_tx (const void *s, int c)
 
PICOTM_NOTHROW char * stpcpy_tx (char *restrict dest, const char *restrict src)
 
PICOTM_NOTHROW char * stpncpy_tx (char *restrict dest, const char *restrict src, size_t n)
 
PICOTM_NOTHROW char * strcat_tx (char *restrict dest, const char *restrict src)
 
PICOTM_NOTHROW char * strchr_tx (const char *s, int c)
 
PICOTM_NOTHROW int strcmp_tx (const char *s1, const char *s2)
 
PICOTM_NOTHROW int strcoll_l_tx (const char *s1, const char *s2, locale_t locale)
 
PICOTM_NOTHROW char * strcpy_tx (char *restrict dest, const char *restrict src)
 
PICOTM_NOTHROW size_t strcspn_tx (const char *s, const char *reject)
 
PICOTM_NOTHROW char * strdup_tx (const char *s)
 
PICOTM_NOTHROW char * __strerror_r_gnu_tx (int errnum, char *buf, size_t buflen)
 
PICOTM_NOTHROW int __strerror_r_posix_tx (int errnum, char *buf, size_t buflen)
 
PICOTM_NOTHROW size_t strlen_tx (const char *s)
 
PICOTM_NOTHROW char * strncat_tx (char *restrict dest, const char *restrict src, size_t n)
 
PICOTM_NOTHROW int strncmp_tx (const char *s1, const char *s2, size_t n)
 
PICOTM_NOTHROW char * strncpy_tx (char *restrict dest, const char *restrict src, size_t n)
 
PICOTM_NOTHROW char * strndup_tx (const char *s, size_t n)
 
PICOTM_NOTHROW size_t strnlen_tx (const char *s, size_t maxlen)
 
PICOTM_NOTHROW char * strpbrk_tx (const char *s, const char *accept)
 
PICOTM_NOTHROW char * strrchr_tx (const char *s, int c)
 
PICOTM_NOTHROW size_t strspn_tx (const char *s, const char *accept)
 
PICOTM_NOTHROW char * strstr_tx (const char *haystack, const char *needle)
 
PICOTM_NOTHROW char * strtok_r_tx (char *restrict str, const char *restrict delim, char **restrict saveptr)
 

Function Documentation

◆ __strerror_r_gnu_tx()

PICOTM_NOTHROW char* __strerror_r_gnu_tx ( int  errnum,
char *  buf,
size_t  buflen 
)

A transaction-safe implementation of strerror_r().

Warning
This is an internal interface. Call strerror_r_tx() instead.

◆ __strerror_r_posix_tx()

PICOTM_NOTHROW int __strerror_r_posix_tx ( int  errnum,
char *  buf,
size_t  buflen 
)

A transaction-safe implementation of strerror_r().

Warning
This is an internal interface. Call strerror_r_tx() instead.

◆ memccpy_tx()

PICOTM_NOTHROW void* memccpy_tx ( void *restrict  dest,
const void *restrict  src,
int  c,
size_t  n 
)

A transaction-safe implementation of memccpy().

◆ memchr_tx()

PICOTM_NOTHROW void* memchr_tx ( const void *  s,
int  c,
size_t  n 
)

A transaction-safe implementation of memchr().

◆ memcmp_tx()

PICOTM_NOTHROW int memcmp_tx ( const void *  s1,
const void *  s2,
size_t  n 
)

A transaction-safe implementation of memcmp().

◆ memcpy_tx()

PICOTM_NOTHROW void* memcpy_tx ( void *restrict  dest,
const void *restrict  src,
size_t  n 
)

A transaction-safe implementation of memcpy().

◆ memmove_tx()

PICOTM_NOTHROW void* memmove_tx ( void *  dest,
const void *  src,
size_t  n 
)

A transaction-safe implementation of memmove().

◆ memrchr_tx()

PICOTM_NOTHROW void* memrchr_tx ( const void *  s,
int  c,
size_t  n 
)

A transaction-safe implementation of memrchr().

◆ memset_tx()

PICOTM_NOTHROW void* memset_tx ( void *  s,
int  c,
size_t  n 
)

A transaction-safe implementation of memset().

◆ rawmemchr_tx()

PICOTM_NOTHROW void* rawmemchr_tx ( const void *  s,
int  c 
)

A transaction-safe implementation of rawmemchr().

◆ stpcpy_tx()

PICOTM_NOTHROW char* stpcpy_tx ( char *restrict  dest,
const char *restrict  src 
)

A transaction-safe implementation of stpcpy().

◆ stpncpy_tx()

PICOTM_NOTHROW char* stpncpy_tx ( char *restrict  dest,
const char *restrict  src,
size_t  n 
)

A transaction-safe implementation of stpncpy().

◆ strcat_tx()

PICOTM_NOTHROW char* strcat_tx ( char *restrict  dest,
const char *restrict  src 
)

A transaction-safe implementation of strcat().

◆ strchr_tx()

PICOTM_NOTHROW char* strchr_tx ( const char *  s,
int  c 
)

A transaction-safe implementation of [strchr()][posix::strchr_tx].

◆ strcmp_tx()

PICOTM_NOTHROW int strcmp_tx ( const char *  s1,
const char *  s2 
)

A transaction-safe implementation of strcmp().

◆ strcoll_l_tx()

PICOTM_NOTHROW int strcoll_l_tx ( const char *  s1,
const char *  s2,
locale_t  locale 
)

A transaction-safe implementation of strcoll_l().

◆ strcpy_tx()

PICOTM_NOTHROW char* strcpy_tx ( char *restrict  dest,
const char *restrict  src 
)

A transaction-safe implementation of strcpy().

◆ strcspn_tx()

PICOTM_NOTHROW size_t strcspn_tx ( const char *  s,
const char *  reject 
)

A transaction-safe implementation of strcspn().

◆ strdup_tx()

PICOTM_NOTHROW char* strdup_tx ( const char *  s)

A transaction-safe implementation of strdup().

◆ strlen_tx()

PICOTM_NOTHROW size_t strlen_tx ( const char *  s)

A transaction-safe implementation of strlen().

◆ strncat_tx()

PICOTM_NOTHROW char* strncat_tx ( char *restrict  dest,
const char *restrict  src,
size_t  n 
)

A transaction-safe implementation of strncat().

◆ strncmp_tx()

PICOTM_NOTHROW int strncmp_tx ( const char *  s1,
const char *  s2,
size_t  n 
)

A transaction-safe implementation of strncmp().

◆ strncpy_tx()

PICOTM_NOTHROW char* strncpy_tx ( char *restrict  dest,
const char *restrict  src,
size_t  n 
)

A transaction-safe implementation of strncpy().

◆ strndup_tx()

PICOTM_NOTHROW char* strndup_tx ( const char *  s,
size_t  n 
)

A transaction-safe implementation of strndup().

◆ strnlen_tx()

PICOTM_NOTHROW size_t strnlen_tx ( const char *  s,
size_t  maxlen 
)

A transaction-safe implementation of strnlen().

◆ strpbrk_tx()

PICOTM_NOTHROW char* strpbrk_tx ( const char *  s,
const char *  accept 
)

A transaction-safe implementation of strpbrk().

◆ strrchr_tx()

PICOTM_NOTHROW char* strrchr_tx ( const char *  s,
int  c 
)

A transaction-safe implementation of strrchr().

◆ strspn_tx()

PICOTM_NOTHROW size_t strspn_tx ( const char *  s,
const char *  accept 
)

A transaction-safe implementation of strspn().

◆ strstr_tx()

PICOTM_NOTHROW char* strstr_tx ( const char *  haystack,
const char *  needle 
)

A transaction-safe implementation of strstr().

◆ strtok_r_tx()

PICOTM_NOTHROW char* strtok_r_tx ( char *restrict  str,
const char *restrict  delim,
char **restrict  saveptr 
)

A transaction-safe implementation of strtok_r().