Enumerations | Functions
picotm-libc.h File Reference

Public interfaces of picotm's libc module. More...

#include "picotm/config/picotm-libc-config.h"
#include "picotm/compiler.h"
#include <signal.h>

Enumerations

enum  picotm_libc_cc_mode { PICOTM_LIBC_CC_MODE_NOUNDO, PICOTM_LIBC_CC_MODE_2PL }
 
enum  picotm_libc_error_recovery { PICOTM_LIBC_ERROR_RECOVERY_AUTO, PICOTM_LIBC_ERROR_RECOVERY_FULL }
 
enum  picotm_libc_file_type {
  PICOTM_LIBC_FILE_TYPE_CHRDEV, PICOTM_LIBC_FILE_TYPE_FIFO, PICOTM_LIBC_FILE_TYPE_REGULAR, PICOTM_LIBC_FILE_TYPE_DIR,
  PICOTM_LIBC_FILE_TYPE_SOCKET
}
 
enum  picotm_libc_write_mode { PICOTM_LIBC_WRITE_BACK, PICOTM_LIBC_WRITE_THROUGH }
 

Functions

PICOTM_NOTHROW void picotm_libc_acquire_proc_signal (int signum, void(*nontx_sigaction)(int, siginfo_t *, void *), struct picotm_error *error)
 Acquires the signal handler from the process. More...
 
PICOTM_NOTHROW void picotm_libc_add_signal (int signum, _Bool is_recoverable, struct picotm_error *error)
 Enable recovery for a UNIX signal. More...
 
PICOTM_NOTHROW void picotm_libc_clear_signals (void)
 Disable recovery for all UNIX signals.
 
PICOTM_NOTHROW enum picotm_libc_error_recovery picotm_libc_get_error_recovery (void)
 
PICOTM_NOTHROW enum picotm_libc_cc_mode picotm_libc_get_file_type_cc_mode (enum picotm_libc_file_type file_type)
 
PICOTM_NOTHROW void picotm_libc_release_proc_signal (int signum, struct picotm_error *error)
 Releases a previously acquired signal to the process. More...
 
PICOTM_NOTHROW void picotm_libc_remove_signal (int signum)
 Disable recovery for a UNIX signal. More...
 
PICOTM_NOTHROW void picotm_libc_save_errno (void)
 
PICOTM_NOTHROW void picotm_libc_set_error_recovery (enum picotm_libc_error_recovery recovery)
 
PICOTM_NOTHROW void picotm_libc_set_file_type_cc_mode (enum picotm_libc_file_type file_type, enum picotm_libc_cc_mode cc_mode)