From be36ff68854c86247fdc769c0eaa89eb284b5ca7 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 29 Apr 2004 17:13:24 +0000 Subject: add -W to specify window size. various other little fixes. --- src/lib9/open.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib9/open.c') diff --git a/src/lib9/open.c b/src/lib9/open.c index 0356a7da..b70a9a27 100644 --- a/src/lib9/open.c +++ b/src/lib9/open.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE /* for Linux O_DIRECT */ #include #define NOPLAN9DEFINES #include @@ -16,6 +17,10 @@ p9open(char *name, int mode) umode |= O_TRUNC; mode ^= OTRUNC; } + if(mode&ODIRECT){ + umode |= O_DIRECT; + mode ^= ODIRECT; + } if(mode){ werrstr("mode not supported"); return -1; -- cgit v1.2.3