From 37b42c179bb00d05cb47c739cb95283548f84fb2 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 30 May 2022 19:51:44 +0000 Subject: Add openc_*at functions Signed-off-by: Laurent Bercot --- src/include/skalibs/unix-transactional.h | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'src/include') 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 +#include #include #include -#include #include #include /* 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 *) ; -- cgit v1.2.3