5 #ifndef ALLINEA_SAFE_SYSCALLS_H 6 #define ALLINEA_SAFE_SYSCALLS_H void allinea_safe_vfprintf(int fd, const char *format, va_list ap)
An async-signal-safe version of vfprintf.
ssize_t allinea_safe_read_all_with_alloc(int fd, void **buf, size_t *count)
Reads the entire contents of fd into buf (async-signal-safe).
void allinea_safe_fprintf(int fd, const char *format,...)
An async-signal-safe version of fprintf.
ssize_t allinea_safe_read_all(int fd, void *buf, size_t count)
Reads the entire contents of fd into buf (async-signal-safe).
void allinea_safe_printf(const char *format,...)
An async-signal-safe replacement for printf.
ssize_t allinea_safe_read_line(int fd, void *buf, size_t count)
Reads a line from fd into buf (async-signal-safe).
ssize_t allinea_safe_read(int fd, void *buf, size_t count)
Reads up to count bytes from buf to fd (async-signal-safe)
int allinea_safe_open(const char *file, int oflags,...)
Opens the given file for reading or writing (async-signal-safe).
int allinea_safe_close(int fd)
Closes the file descriptor fd previously opened by allinea_safe_open (async-signal-safe).
ssize_t allinea_safe_write(int fd, const void *buf, size_t count)
Writes up to count bytes from buf to fd (async-signal-safe).
struct timespec allinea_get_current_time(void)
Gets the current time using the same clock as the enclosing profiler (async-signal-safe).