picotm  0.5.0
Functions
unistd.h File Reference

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

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

Functions

PICOTM_NOTHROW PICOTM_NORETURN void _exit_tx (int status)
 
PICOTM_NOTHROW int chdir_tx (const char *path)
 
PICOTM_NOTHROW int close_tx (int fildes)
 
PICOTM_NOTHROW int dup_tx (int fildes)
 
PICOTM_NOTHROW int dup2_tx (int fildes, int fildes2)
 
PICOTM_NOTHROW int fchdir_tx (int fildes)
 
PICOTM_NOTHROW int fsync_tx (int fildes)
 
PICOTM_NOTHROW char * getcwd_tx (char *buf, size_t size)
 
PICOTM_NOTHROW int link_tx (const char *path1, const char *path2)
 
PICOTM_NOTHROW off_t lseek_tx (int fildes, off_t offset, int whence)
 
PICOTM_NOTHROW int pipe_tx (int fildes[2])
 
PICOTM_NOTHROW ssize_t pread_tx (int fildes, void *buf, size_t nbyte, off_t offset)
 
PICOTM_NOTHROW ssize_t pwrite_tx (int fildes, const void *buf, size_t nbyte, off_t offset)
 
PICOTM_NOTHROW ssize_t read_tx (int fildes, void *buf, size_t nbyte)
 
PICOTM_NOTHROW unsigned sleep_tx (unsigned seconds)
 
PICOTM_NOTHROW void sync_tx (void)
 
PICOTM_NOTHROW int unlink_tx (const char *path)
 
PICOTM_NOTHROW ssize_t write_tx (int fildes, const void *buf, size_t nbyte)
 

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.

◆ chdir_tx()

PICOTM_NOTHROW int chdir_tx ( const char *  path)

A transaction-safe implementation of chdir().

◆ close_tx()

PICOTM_NOTHROW int close_tx ( int  fildes)

A transaction-safe implementation of close().

◆ dup2_tx()

PICOTM_NOTHROW int dup2_tx ( int  fildes,
int  fildes2 
)

A transaction-safe implementation of dup2().

◆ dup_tx()

PICOTM_NOTHROW int dup_tx ( int  fildes)

A transaction-safe implementation of dup().

◆ fchdir_tx()

PICOTM_NOTHROW int fchdir_tx ( int  fildes)

A transaction-safe implementation of fchdir().

◆ fsync_tx()

PICOTM_NOTHROW int fsync_tx ( int  fildes)

A transaction-safe implementation of fsync().

◆ getcwd_tx()

PICOTM_NOTHROW char* getcwd_tx ( char *  buf,
size_t  size 
)

A transaction-safe implementation of getcwd().

◆ link_tx()

PICOTM_NOTHROW int link_tx ( const char *  path1,
const char *  path2 
)

A transaction-safe implementation of link().

◆ lseek_tx()

PICOTM_NOTHROW off_t lseek_tx ( int  fildes,
off_t  offset,
int  whence 
)

A transaction-safe implementation of lseek().

◆ pipe_tx()

PICOTM_NOTHROW int pipe_tx ( int  fildes[2])

A transaction-safe implementation of pipe().

◆ pread_tx()

PICOTM_NOTHROW ssize_t pread_tx ( int  fildes,
void *  buf,
size_t  nbyte,
off_t  offset 
)

A transaction-safe implementation of pread().

◆ pwrite_tx()

PICOTM_NOTHROW ssize_t pwrite_tx ( int  fildes,
const void *  buf,
size_t  nbyte,
off_t  offset 
)

A transaction-safe implementation of pwrite().

◆ read_tx()

PICOTM_NOTHROW ssize_t read_tx ( int  fildes,
void *  buf,
size_t  nbyte 
)

A transaction-safe implementation of read().

◆ sleep_tx()

PICOTM_NOTHROW unsigned sleep_tx ( unsigned  seconds)

A transaction-safe implementation of sleep().

◆ sync_tx()

PICOTM_NOTHROW void sync_tx ( void  )

A transaction-safe implementation of sync().

◆ unlink_tx()

PICOTM_NOTHROW int unlink_tx ( const char *  path)

A transaction-safe implementation of unlink().

◆ write_tx()

PICOTM_NOTHROW ssize_t write_tx ( int  fildes,
const void *  buf,
size_t  nbyte 
)

A transaction-safe implementation of write().