Functions
types.h File Reference

Transactional wrappers for interfaces of <sys/types.h>. More...

#include <picotm/config/picotm-libc-config.h>
#include <picotm/picotm-tm.h>
#include <sys/types.h>

Functions

static blkcnt_t load_blkcnt_t_tx (const blkcnt_t *addr)
 
static blksize_t load_blksize_t_tx (const blksize_t *addr)
 
static clock_t load_clock_t_tx (const clock_t *addr)
 
static clockid_t load_clockid_t_tx (const clockid_t *addr)
 
static dev_t load_dev_t_tx (const dev_t *addr)
 
static fsblkcnt_t load_fsblkcnt_t_tx (const fsblkcnt_t *addr)
 
static fsfilcnt_t load_fsfilcnt_t_tx (const fsfilcnt_t *addr)
 
static gid_t load_gid_t_tx (const gid_t *addr)
 
static id_t load_id_t_tx (const id_t *addr)
 
static ino_t load_ino_t_tx (const ino_t *addr)
 
static key_t load_key_t_tx (const key_t *addr)
 
static mode_t load_mode_t_tx (const mode_t *addr)
 
static nlink_t load_nlink_t_tx (const nlink_t *addr)
 
static off_t load_off_t_tx (const off_t *addr)
 
static pid_t load_pid_t_tx (const pid_t *addr)
 
static ssize_t load_ssize_t_tx (const ssize_t *addr)
 
static suseconds_t load_suseconds_t_tx (const suseconds_t *addr)
 
static time_t load_time_t_tx (const time_t *addr)
 
static timer_t load_timer_t_tx (const timer_t *addr)
 
static uid_t load_uid_t_tx (const uid_t *addr)
 
static void privatize_blkcnt_t_tx (const blkcnt_t *addr, unsigned long flags)
 
static void privatize_blksize_t_tx (const blksize_t *addr, unsigned long flags)
 
static void privatize_clock_t_tx (const clock_t *addr, unsigned long flags)
 
static void privatize_clockid_t_tx (const clockid_t *addr, unsigned long flags)
 
static void privatize_dev_t_tx (const dev_t *addr, unsigned long flags)
 
static void privatize_fsblkcnt_t_tx (const fsblkcnt_t *addr, unsigned long flags)
 
static void privatize_fsfilcnt_t_tx (const fsfilcnt_t *addr, unsigned long flags)
 
static void privatize_gid_t_tx (const gid_t *addr, unsigned long flags)
 
static void privatize_id_t_tx (const id_t *addr, unsigned long flags)
 
static void privatize_ino_t_tx (const ino_t *addr, unsigned long flags)
 
static void privatize_key_t_tx (const key_t *addr, unsigned long flags)
 
static void privatize_mode_t_tx (const mode_t *addr, unsigned long flags)
 
static void privatize_nlink_t_tx (const nlink_t *addr, unsigned long flags)
 
static void privatize_off_t_tx (const off_t *addr, unsigned long flags)
 
static void privatize_pid_t_tx (const pid_t *addr, unsigned long flags)
 
static void privatize_ssize_t_tx (const ssize_t *addr, unsigned long flags)
 
static void privatize_suseconds_t_tx (const suseconds_t *addr, unsigned long flags)
 
static void privatize_time_t_tx (const time_t *addr, unsigned long flags)
 
static void privatize_timer_t_tx (const timer_t *addr, unsigned long flags)
 
static void privatize_uid_t_tx (const uid_t *addr, unsigned long flags)
 
static void store_blkcnt_t_tx (blkcnt_t *addr, blkcnt_t value)
 
static void store_blksize_t_tx (blksize_t *addr, blksize_t value)
 
static void store_clock_t_tx (clock_t *addr, clock_t value)
 
static void store_clockid_t_tx (clockid_t *addr, clockid_t value)
 
static void store_dev_t_tx (dev_t *addr, dev_t value)
 
static void store_fsblkcnt_t_tx (fsblkcnt_t *addr, fsblkcnt_t value)
 
static void store_fsfilcnt_t_tx (fsfilcnt_t *addr, fsfilcnt_t value)
 
static void store_gid_t_tx (gid_t *addr, gid_t value)
 
static void store_id_t_tx (id_t *addr, id_t value)
 
static void store_ino_t_tx (ino_t *addr, ino_t value)
 
static void store_key_t_tx (key_t *addr, key_t value)
 
static void store_mode_t_tx (mode_t *addr, mode_t value)
 
static void store_nlink_t_tx (nlink_t *addr, nlink_t value)
 
static void store_off_t_tx (off_t *addr, off_t value)
 
static void store_pid_t_tx (pid_t *addr, pid_t value)
 
static void store_ssize_t_tx (ssize_t *addr, ssize_t value)
 
static void store_suseconds_t_tx (suseconds_t *addr, suseconds_t value)
 
static void store_time_t_tx (time_t *addr, time_t value)
 
static void store_timer_t_tx (timer_t *addr, timer_t value)
 
static void store_uid_t_tx (uid_t *addr, uid_t value)
 

Function Documentation

◆ load_blkcnt_t_tx()

static blkcnt_t load_blkcnt_t_tx ( const blkcnt_t *  addr)
inlinestatic

Loads a value of type ' blkcnt_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_blksize_t_tx()

static blksize_t load_blksize_t_tx ( const blksize_t *  addr)
inlinestatic

Loads a value of type ' blksize_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_clock_t_tx()

static clock_t load_clock_t_tx ( const clock_t *  addr)
inlinestatic

Loads a value of type ' clock_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_clockid_t_tx()

static clockid_t load_clockid_t_tx ( const clockid_t *  addr)
inlinestatic

Loads a value of type ' clockid_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_dev_t_tx()

static dev_t load_dev_t_tx ( const dev_t *  addr)
inlinestatic

Loads a value of type ' dev_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_fsblkcnt_t_tx()

static fsblkcnt_t load_fsblkcnt_t_tx ( const fsblkcnt_t *  addr)
inlinestatic

Loads a value of type ' fsblkcnt_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_fsfilcnt_t_tx()

static fsfilcnt_t load_fsfilcnt_t_tx ( const fsfilcnt_t *  addr)
inlinestatic

Loads a value of type ' fsfilcnt_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_gid_t_tx()

static gid_t load_gid_t_tx ( const gid_t *  addr)
inlinestatic

Loads a value of type ' gid_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_id_t_tx()

static id_t load_id_t_tx ( const id_t *  addr)
inlinestatic

Loads a value of type ' id_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_ino_t_tx()

static ino_t load_ino_t_tx ( const ino_t *  addr)
inlinestatic

Loads a value of type ' ino_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_key_t_tx()

static key_t load_key_t_tx ( const key_t *  addr)
inlinestatic

Loads a value of type ' key_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_mode_t_tx()

static mode_t load_mode_t_tx ( const mode_t *  addr)
inlinestatic

Loads a value of type ' mode_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_nlink_t_tx()

static nlink_t load_nlink_t_tx ( const nlink_t *  addr)
inlinestatic

Loads a value of type ' nlink_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_off_t_tx()

static off_t load_off_t_tx ( const off_t *  addr)
inlinestatic

Loads a value of type ' off_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_pid_t_tx()

static pid_t load_pid_t_tx ( const pid_t *  addr)
inlinestatic

Loads a value of type ' pid_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_ssize_t_tx()

static ssize_t load_ssize_t_tx ( const ssize_t *  addr)
inlinestatic

Loads a value of type ' ssize_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_suseconds_t_tx()

static suseconds_t load_suseconds_t_tx ( const suseconds_t *  addr)
inlinestatic

Loads a value of type ' suseconds_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_time_t_tx()

static time_t load_time_t_tx ( const time_t *  addr)
inlinestatic

Loads a value of type ' time_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_timer_t_tx()

static timer_t load_timer_t_tx ( const timer_t *  addr)
inlinestatic

Loads a value of type ' timer_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ load_uid_t_tx()

static uid_t load_uid_t_tx ( const uid_t *  addr)
inlinestatic

Loads a value of type ' uid_t ' with transactional semantics.

Parameters
addrThe source address.
Returns
The transaction-local value loaded from address 'addr'.

◆ privatize_blkcnt_t_tx()

static void privatize_blkcnt_t_tx ( const blkcnt_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' blkcnt_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_blksize_t_tx()

static void privatize_blksize_t_tx ( const blksize_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' blksize_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_clock_t_tx()

static void privatize_clock_t_tx ( const clock_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' clock_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_clockid_t_tx()

static void privatize_clockid_t_tx ( const clockid_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' clockid_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_dev_t_tx()

static void privatize_dev_t_tx ( const dev_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' dev_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_fsblkcnt_t_tx()

static void privatize_fsblkcnt_t_tx ( const fsblkcnt_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' fsblkcnt_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_fsfilcnt_t_tx()

static void privatize_fsfilcnt_t_tx ( const fsfilcnt_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' fsfilcnt_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_gid_t_tx()

static void privatize_gid_t_tx ( const gid_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' gid_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_id_t_tx()

static void privatize_id_t_tx ( const id_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' id_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_ino_t_tx()

static void privatize_ino_t_tx ( const ino_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' ino_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_key_t_tx()

static void privatize_key_t_tx ( const key_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' key_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_mode_t_tx()

static void privatize_mode_t_tx ( const mode_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' mode_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_nlink_t_tx()

static void privatize_nlink_t_tx ( const nlink_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' nlink_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_off_t_tx()

static void privatize_off_t_tx ( const off_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' off_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_pid_t_tx()

static void privatize_pid_t_tx ( const pid_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' pid_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_ssize_t_tx()

static void privatize_ssize_t_tx ( const ssize_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' ssize_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_suseconds_t_tx()

static void privatize_suseconds_t_tx ( const suseconds_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' suseconds_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_time_t_tx()

static void privatize_time_t_tx ( const time_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' time_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_timer_t_tx()

static void privatize_timer_t_tx ( const timer_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' timer_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ privatize_uid_t_tx()

static void privatize_uid_t_tx ( const uid_t *  addr,
unsigned long  flags 
)
inlinestatic

Privatizes a value of type ' uid_t '.

Parameters
addrThe address to privatize.
flagsPrivatizes for loading and/or storing. Not setting flags discards the buffer.

◆ store_blkcnt_t_tx()

static void store_blkcnt_t_tx ( blkcnt_t *  addr,
blkcnt_t  value 
)
inlinestatic

Stores a value of type ' blkcnt_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_blksize_t_tx()

static void store_blksize_t_tx ( blksize_t *  addr,
blksize_t  value 
)
inlinestatic

Stores a value of type ' blksize_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_clock_t_tx()

static void store_clock_t_tx ( clock_t *  addr,
clock_t  value 
)
inlinestatic

Stores a value of type ' clock_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_clockid_t_tx()

static void store_clockid_t_tx ( clockid_t *  addr,
clockid_t  value 
)
inlinestatic

Stores a value of type ' clockid_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_dev_t_tx()

static void store_dev_t_tx ( dev_t *  addr,
dev_t  value 
)
inlinestatic

Stores a value of type ' dev_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_fsblkcnt_t_tx()

static void store_fsblkcnt_t_tx ( fsblkcnt_t *  addr,
fsblkcnt_t  value 
)
inlinestatic

Stores a value of type ' fsblkcnt_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_fsfilcnt_t_tx()

static void store_fsfilcnt_t_tx ( fsfilcnt_t *  addr,
fsfilcnt_t  value 
)
inlinestatic

Stores a value of type ' fsfilcnt_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_gid_t_tx()

static void store_gid_t_tx ( gid_t *  addr,
gid_t  value 
)
inlinestatic

Stores a value of type ' gid_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_id_t_tx()

static void store_id_t_tx ( id_t *  addr,
id_t  value 
)
inlinestatic

Stores a value of type ' id_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_ino_t_tx()

static void store_ino_t_tx ( ino_t *  addr,
ino_t  value 
)
inlinestatic

Stores a value of type ' ino_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_key_t_tx()

static void store_key_t_tx ( key_t *  addr,
key_t  value 
)
inlinestatic

Stores a value of type ' key_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_mode_t_tx()

static void store_mode_t_tx ( mode_t *  addr,
mode_t  value 
)
inlinestatic

Stores a value of type ' mode_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_nlink_t_tx()

static void store_nlink_t_tx ( nlink_t *  addr,
nlink_t  value 
)
inlinestatic

Stores a value of type ' nlink_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_off_t_tx()

static void store_off_t_tx ( off_t *  addr,
off_t  value 
)
inlinestatic

Stores a value of type ' off_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_pid_t_tx()

static void store_pid_t_tx ( pid_t *  addr,
pid_t  value 
)
inlinestatic

Stores a value of type ' pid_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_ssize_t_tx()

static void store_ssize_t_tx ( ssize_t *  addr,
ssize_t  value 
)
inlinestatic

Stores a value of type ' ssize_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_suseconds_t_tx()

static void store_suseconds_t_tx ( suseconds_t *  addr,
suseconds_t  value 
)
inlinestatic

Stores a value of type ' suseconds_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_time_t_tx()

static void store_time_t_tx ( time_t *  addr,
time_t  value 
)
inlinestatic

Stores a value of type ' time_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_timer_t_tx()

static void store_timer_t_tx ( timer_t *  addr,
timer_t  value 
)
inlinestatic

Stores a value of type ' timer_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.

◆ store_uid_t_tx()

static void store_uid_t_tx ( uid_t *  addr,
uid_t  value 
)
inlinestatic

Stores a value of type ' uid_t ' with transactional semantics.

Parameters
addrThe destination address.
valueThe value to store at 'addr'.