summary refs log tree commit diff
path: root/src/libstddjb/openc_create.c
blob: 2c0dd8697a084a0ea1ff4a9e0d8270c30f4bab63 (plain) (blame)
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_create (char const *fn)
{
  return open3(fn, O_WRONLY | O_NONBLOCK | O_CREAT | O_CLOEXEC, 0666) ;
}