about summary refs log tree commit diff
path: root/src/libunixonacid/open_appendat.c
blob: 66a3cb47846aca848a6214e46119528c04b5c9c6 (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 open_appendat (int fd, char const *name)
{
  return open3_at(fd, name, O_WRONLY | O_NONBLOCK | O_APPEND | O_CREAT, 0666) ;
}