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

#include <sys/types.h>
#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) ;
}