aboutsummaryrefslogtreecommitdiff
path: root/src/lib9
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-07 18:03:36 +0000
committerrsc <devnull@localhost>2005-01-07 18:03:36 +0000
commita19ff5b204a5e36ae522feb4acc0f31542b95f38 (patch)
tree9f03f972fe7615d0c763fb680a0a837e4f625729 /src/lib9
parentb80755cf2d7bfaed4c8120cbd9b874f799e65644 (diff)
downloadplan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.tar.gz
plan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.tar.bz2
plan9port-a19ff5b204a5e36ae522feb4acc0f31542b95f38.zip
debugging for sam, and an old fix forgotten
Diffstat (limited to 'src/lib9')
-rw-r--r--src/lib9/open.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib9/open.c b/src/lib9/open.c
index 896ca528..e76aabe3 100644
--- a/src/lib9/open.c
+++ b/src/lib9/open.c
@@ -28,6 +28,10 @@ p9open(char *name, int mode)
umode |= O_DIRECT;
mode ^= ODIRECT;
}
+ if(mode&ONONBLOCK){
+ umode |= O_NONBLOCK;
+ mode ^= ONONBLOCK;
+ }
if(mode){
werrstr("mode 0x%x not supported", mode);
return -1;