28 int syscall_poll(
struct pollfd fds[], nfds_t nfds,
int timeout);
30 ssize_t
syscall_write(
int fildes,
const void *buf,
size_t nbyte);
31 ssize_t
syscall_read(
int fildes,
void *buf,
size_t nbyte);
int syscall_close(int fd)
ssize_t syscall_read(int fildes, void *buf, size_t nbyte)
int syscall_poll(struct pollfd fds[], nfds_t nfds, int timeout)
Wrappers for syscalls, to allow mocking for testing.
int syscall_SSL_write(SSL *ssl, const void *buf, int num)
Wrappers for OpenSSL calls.
ssize_t syscall_write(int fildes, const void *buf, size_t nbyte)
int syscall_pthread_join(pthread_t thread, void **value_ptr)
Wrapper for pthread calls.
int syscall_SSL_get_error(const SSL *ssl, int ret)
int syscall_SSL_read(SSL *ssl, void *buf, int num)
int syscall_timestamp(struct timeval *restrict tp, bool relative)
Wrapper for gettimeofday and (where available) clock_gettime(CLOCK_MONOTONIC), which is used when REL...