add -W to specify window size.
various other little fixes.
This commit is contained in:
parent
3d72637f9b
commit
be36ff6885
36 changed files with 332 additions and 304 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#define _GNU_SOURCE /* for Linux O_DIRECT */
|
||||
#include <u.h>
|
||||
#define NOPLAN9DEFINES
|
||||
#include <libc.h>
|
||||
|
|
@ -25,6 +26,10 @@ p9create(char *path, int mode, ulong perm)
|
|||
}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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue