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