summaryrefslogtreecommitdiff
path: root/src/libunixonacid/openc_appendat.c
blob: 70b6df732f183e603a1c5cc70372d6bc4a7b7738 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <sys/stat.h>
#include <fcntl.h>

#include <skalibs/unix-transactional.h>

int openc_appendat (int fd, char const *name)
{
  return open3_at(fd, name, O_WRONLY | O_NONBLOCK | O_APPEND | O_CREAT | O_CLOEXEC, 0666) ;
}