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