summaryrefslogtreecommitdiff
path: root/src/libstddjb/openbc_read.c
blob: bd4713eb3c42f7d73df301fc152155c479de43d9 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/nonposix.h>
#include <skalibs/fcntl.h>
#include <skalibs/djbunix.h>

int openbc_read (char const *fn)
{
  return open2(fn, O_RDONLY | O_CLOEXEC) ;
}