Welcome to little lamb

Code » limb » release » tree

[release] / src / liblimb / djbunix.h / openbc_readat.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_readat(int fd, const char *file)
{
    return open2_at(fd, file, O_RDONLY | O_CLOEXEC);
}