diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-01 12:51:30 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-01 12:51:30 +0000 |
commit | 4684272897e351ed21f82a0ef84bc94194b4d538 (patch) | |
tree | 91a52b9dd3881e2ae001c5dd1a2a08fbc65da0bc /src/libstddjb/openb_read.c | |
parent | ccb423ed6f317da5a02f4feeda082d791215a4ba (diff) | |
download | skalibs-4684272897e351ed21f82a0ef84bc94194b4d538.tar.xz |
Add byte_zzero, openb_read
Diffstat (limited to 'src/libstddjb/openb_read.c')
-rw-r--r-- | src/libstddjb/openb_read.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstddjb/openb_read.c b/src/libstddjb/openb_read.c new file mode 100644 index 0000000..19ec073 --- /dev/null +++ b/src/libstddjb/openb_read.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include <skalibs/nonposix.h> +#include <fcntl.h> +#include <skalibs/djbunix.h> + +int openb_read (char const *fn) +{ + return open2(fn, O_RDONLY) ; +} |