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/libunixonacid/openwritenclose_at.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libunixonacid/openwritenclose_at.c') diff --git a/src/libunixonacid/openwritenclose_at.c b/src/libunixonacid/openwritenclose_at.c index 015c0c8..c901952 100644 --- a/src/libunixonacid/openwritenclose_at.c +++ b/src/libunixonacid/openwritenclose_at.c @@ -1,6 +1,7 @@ /* ISC license. */ #include + #include #include #include @@ -8,7 +9,7 @@ size_t openwritenclose_at (int dirfd, char const *file, char const *s, size_t n) { size_t r ; - int fd = open_truncatb(dirfd, file) ; + int fd = openc_truncatb(dirfd, file) ; if (fd < 0) return 0 ; r = allwrite(fd, s, n) ; if (r >= n) fsync(fd) ; -- cgit v1.2.3