summaryrefslogtreecommitdiff
path: root/open_read.c
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2015-05-08 23:07:47 -0400
committerjoe <joe@jerkface.net>2015-05-08 23:07:47 -0400
commit220534453eecc2c07ad710d72268aafd20b83138 (patch)
tree469bd5db135e31b7ea908152aa3389b9b1e06d5b /open_read.c
initial commit
Diffstat (limited to 'open_read.c')
-rw-r--r--open_read.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/open_read.c b/open_read.c
new file mode 100644
index 0000000..99b3cd1
--- /dev/null
+++ b/open_read.c
@@ -0,0 +1,8 @@
1/* Public domain. */
2
3#include <sys/types.h>
4#include <fcntl.h>
5#include "open.h"
6
7int open_read(const char *fn)
8{ return open(fn,O_RDONLY | O_NDELAY); }