summaryrefslogtreecommitdiff
path: root/src/libstddjb/openc_append.c
blob: 9765aa69c1e2fce99ac627dd9e11dc7aa58e6b63 (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_append (char const *fn)
{
  return open3(fn, O_WRONLY | O_NONBLOCK | O_APPEND | O_CREAT | O_CLOEXEC, 0666) ;
}