aboutsummaryrefslogtreecommitdiff
path: root/open_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'open_read.c')
-rw-r--r--open_read.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/open_read.c b/open_read.c
new file mode 100644
index 0000000..2a63a25
--- /dev/null
+++ b/open_read.c
@@ -0,0 +1,6 @@
+#include <sys/types.h>
+#include <fcntl.h>
+#include "open.h"
+
+int open_read(const char *fn)
+{ return open(fn,O_RDONLY | O_NDELAY); }