diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-06-08 09:48:11 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-06-08 09:48:11 +0000 |
commit | c4e81d83b248aa356849fc6a31920c177b5df999 (patch) | |
tree | 7b7516686db13bfb3643c0965fded313ea7240a9 /src/include | |
parent | 6d419ff3e5a0e645e8fe9635d6ca139d5b7e3e7a (diff) | |
download | skalibs-c4e81d83b248aa356849fc6a31920c177b5df999.tar.xz |
Clean up / homogenize openreadnclose() family
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/skalibs/djbunix.h | 1 | ||||
-rw-r--r-- | src/include/skalibs/unix-transactional.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/include/skalibs/djbunix.h b/src/include/skalibs/djbunix.h index dec232c..449368f 100644 --- a/src/include/skalibs/djbunix.h +++ b/src/include/skalibs/djbunix.h @@ -84,6 +84,7 @@ extern int sagethostname (stralloc *) ; extern int slurp (stralloc *, int) ; extern int openslurpclose (stralloc *, char const *) ; +extern ssize_t readnclose (int fd, char *, size_t) ; /* closes fd */ extern ssize_t openreadnclose (char const *, char *, size_t) ; extern ssize_t openreadnclose_nb (char const *, char *, size_t) ; extern int openreadfileclose (char const *, stralloc *, size_t) ; diff --git a/src/include/skalibs/unix-transactional.h b/src/include/skalibs/unix-transactional.h index 5b9c4fa..73a8d7f 100644 --- a/src/include/skalibs/unix-transactional.h +++ b/src/include/skalibs/unix-transactional.h @@ -38,7 +38,7 @@ 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 ssize_t openreadnclose_at (int, char const *, char *, size_t) ; extern int openslurpclose_at (int, char const *, stralloc *) ; extern int opengetlnclose_at (int, char const *, stralloc *, int) ; |