9 #include "xroad_typed_containers.h"
27 #define __xroad_fd_dtor__ __dtor__(xroad_cleanup_fdclose)
30 static inline void xroad_cleanup_fdclose(
int* pfd)
Definition: xroad_string.h:29
int xroad_file_unlock(int fd)
int xroad_file_lock_byte_ofd(int fd, off_t offset, bool exclusive, bool block)
xroad_errno_t xroad_writev_all(int fd, struct iovec *iov, size_t c)
Function to write all data from an array of struct iovec structures to a file descriptor.
xroad_errno_t xroad_dir_ls(xroad_str_t path, uint32_t flags, xroad_str_hset_t *dirs)
int xroad_file_unlock_byte_ofd(int fd, off_t offset)
int xroad_file_lock(int fd, bool exclusive, bool block)
int xroad_file_unlock_byte(int fd, off_t offset)
int xroad_file_open_and_lock(const char *name, bool create)
Open (possibly create) for read/write and lock a file.
int xroad_file_lock_byte(int fd, off_t offset, bool exclusive, bool block)
xroad_dir_ls_flags_t
Definition: xroad_file.h:22
@ xroad_dir_ls_flags_hidden
ls hidden (started with .)
Definition: xroad_file.h:23
const char * xroad_get_cwd(void)