/* This file is part of limb https://lila.oss/limb
* Copyright (C) 2023 Olivier Brunel jjk@jjacky.com */
/* SPDX-License-Identifier: GPL-2.0-only */
#include <fcntl.h>
#include <limb/djbunix.h>
int
open_createat(int fd, const char *file)
{
return open3_at(fd, file, O_WRONLY | O_CREAT | O_NONBLOCK, 0666);
}