open_trunc.c (213B)
1 /* ISC license. */ 2 3 #include <skalibs/nonposix.h> 4 #include <skalibs/fcntl.h> 5 #include <skalibs/djbunix.h> 6 7 int open_trunc (char const *fn) 8 { 9 return open3(fn, O_WRONLY | O_NONBLOCK | O_TRUNC | O_CREAT, 0666) ; 10 }
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |