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