openc_truncat.c (228B)
1 /* ISC license. */ 2 3 #include <skalibs/fcntl.h> 4 #include <skalibs/unix-transactional.h> 5 6 int openc_truncat (int fd, char const *name) 7 { 8 return open3_at(fd, name, O_WRONLY | O_NONBLOCK | O_TRUNC | O_CREAT | O_CLOEXEC, 0666) ; 9 }