summaryrefslogtreecommitdiff
path: root/src/libstddjb/openc_read.c
blob: 6cb77fe886494ab4fe7cfca96a0d0f59d67b9a24 (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 openc_read (char const *fn)
{
  return open2(fn, O_RDONLY | O_NONBLOCK | O_CLOEXEC) ;
}