Welcome to little lamb

Code » limb » master » tree

[master] / src / liblimb / djbunix.h / openbc_write.c

/* 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
openbc_write(const char *file)
{
    return open2(file, O_WRONLY | O_CLOEXEC);
}