diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-05-30 19:51:44 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-05-30 19:51:44 +0000 |
commit | 37b42c179bb00d05cb47c739cb95283548f84fb2 (patch) | |
tree | b73d99a6bb423c9f014b7049a01b2297feaf6221 /src/include | |
parent | 7d0199963a2ec019270ee187f8c9cb8adb25dac1 (diff) | |
download | skalibs-37b42c179bb00d05cb47c739cb95283548f84fb2.tar.xz |
Add openc_*at functions
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/unix-transactional.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/include/skalibs/unix-transactional.h b/src/include/skalibs/unix-transactional.h index 88d1838..5b9c4fa 100644 --- a/src/include/skalibs/unix-transactional.h +++ b/src/include/skalibs/unix-transactional.h @@ -3,21 +3,23 @@ #ifndef SKALIBS_UNIX_TRANSACTIONAL_H #define SKALIBS_UNIX_TRANSACTIONAL_H -#include <sys/types.h> +#include <stddef.h> #include <sys/stat.h> #include <sys/uio.h> -#include <skalibs/uint64.h> #include <skalibs/direntry.h> #include <skalibs/stralloc.h> /* Transactional/reliable filesystem operations */ +extern int opengetlnclose (char const *, stralloc *, int) ; + extern int open2_at (int, char const *, int) ; extern int open3_at (int, char const *, int, unsigned int) ; extern int access_at (int, char const *, int, unsigned int) ; - -extern int opengetlnclose (char const *, stralloc *, int) ; +extern DIR *opendir_at (int, char const *) ; +extern int stat_at (int, char const *, struct stat *) ; +extern int lstat_at (int, char const *, struct stat *) ; extern int open_readat (int, char const *) ; extern int open_readatb (int, char const *) ; @@ -27,10 +29,14 @@ extern int open_truncat (int, char const *) ; extern int open_truncatb (int, char const *) ; extern int open_appendat (int, char const *) ; extern int open_appendatb (int, char const *) ; -extern DIR *opendir_at (int, char const *) ; - -extern int stat_at (int, char const *, struct stat *) ; -extern int lstat_at (int, char const *, struct stat *) ; +extern int openc_readat (int, char const *) ; +extern int openc_readatb (int, char const *) ; +extern int openc_writeat (int, char const *) ; +extern int openc_writeatb (int, char const *) ; +extern int openc_truncat (int, char const *) ; +extern int openc_truncatb (int, char const *) ; +extern int openc_appendat (int, char const *) ; +extern int openc_appendatb (int, char const *) ; extern size_t openreadnclose_at (int, char const *, char *, size_t) ; extern int openslurpclose_at (int, char const *, stralloc *) ; |