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

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

int openc_create (char const *fn)
{
  return open3(fn, O_WRONLY | O_NONBLOCK | O_CREAT | O_CLOEXEC, 0666) ;
}