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/openwritevnclose_at.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libunixonacid/openwritevnclose_at.c') diff --git a/src/libunixonacid/openwritevnclose_at.c b/src/libunixonacid/openwritevnclose_at.c index ba1e789..5fcdc0b 100644 --- a/src/libunixonacid/openwritevnclose_at.c +++ b/src/libunixonacid/openwritevnclose_at.c @@ -2,6 +2,7 @@ #include #include + #include #include #include @@ -10,7 +11,7 @@ size_t openwritevnclose_at (int dirfd, char const *file, struct iovec const *v, unsigned int n) { size_t r ; - int fd = open_truncatb(dirfd, file) ; + int fd = openc_truncatb(dirfd, file) ; if (fd < 0) return 0 ; r = allwritev(fd, v, n) ; if (r >= siovec_len(v, n)) fsync(fd) ; -- cgit v1.2.3