about summary refs log tree commit diff
path: root/src/libunixonacid/openc_appendat.c
blob: 88228c5b29e0ebd6c802b1119fc057a0bf255b55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
/* ISC license. */

#include <sys/stat.h>

#include <skalibs/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) ;
}