commit | be36ff68854c86247fdc769c0eaa89eb284b5ca7 | [log] [tgz] |
---|---|---|
author | rsc <devnull@localhost> | Thu Apr 29 17:13:24 2004 +0000 |
committer | rsc <devnull@localhost> | Thu Apr 29 17:13:24 2004 +0000 |
tree | a523e17071eb0e3088f906446b158b3d184b77fe | |
parent | 3d72637f9b4c42b1fc9b7d95d278ea3dd65c748d [diff] [blame] |
add -W to specify window size. various other little fixes.
diff --git a/src/lib9/create.c b/src/lib9/create.c index 97f6e7e..eaea479 100644 --- a/src/lib9/create.c +++ b/src/lib9/create.c
@@ -1,3 +1,4 @@ +#define _GNU_SOURCE /* for Linux O_DIRECT */ #include <u.h> #define NOPLAN9DEFINES #include <libc.h> @@ -25,6 +26,10 @@ }else{ umode = (mode&3)|O_CREAT|O_TRUNC; mode &= ~(3|OTRUNC); + if(mode&ODIRECT){ + umode |= O_DIRECT; + mode &= ~ODIRECT; + } if(mode&OEXCL){ umode |= O_EXCL; mode &= ~OEXCL;