diff options
author | rsc <devnull@localhost> | 2005-02-11 16:58:23 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-02-11 16:58:23 +0000 |
commit | b589fce2fbf05ae18a6f015240f87ce2a163521f (patch) | |
tree | 872dbf6e2c6f7be43971b6097f8bb15379e1379e /src/lib9/open.c | |
parent | 26a5fd572556f6d875c18fff8e83ed5eed6cf8fa (diff) | |
download | plan9port-b589fce2fbf05ae18a6f015240f87ce2a163521f.tar.gz plan9port-b589fce2fbf05ae18a6f015240f87ce2a163521f.tar.bz2 plan9port-b589fce2fbf05ae18a6f015240f87ce2a163521f.zip |
hard code list of plan 9 services in case they are not in /etc/services
Diffstat (limited to 'src/lib9/open.c')
-rw-r--r-- | src/lib9/open.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib9/open.c b/src/lib9/open.c index e76aabe3..c4d36929 100644 --- a/src/lib9/open.c +++ b/src/lib9/open.c @@ -32,6 +32,10 @@ p9open(char *name, int mode) umode |= O_NONBLOCK; mode ^= ONONBLOCK; } + if(mode&OAPPEND){ + umode |= O_APPEND; + mode ^= OAPPEND; + } if(mode){ werrstr("mode 0x%x not supported", mode); return -1; |