summaryrefslogtreecommitdiff
path: root/src/libstddjb/openc_write.c
blob: 518c460341895cb0a89241e7334f03ad6004edda (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/nonposix.h>
#include <fcntl.h>
#include <skalibs/djbunix.h>

int openc_write (char const *fn)
{
  return open2(fn, O_WRONLY | O_NONBLOCK | O_CLOEXEC) ;
}