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

#include <sys/stat.h>
#include <fcntl.h>
#include <skalibs/unix-transactional.h>

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