From b589fce2fbf05ae18a6f015240f87ce2a163521f Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 11 Feb 2005 16:58:23 +0000 Subject: hard code list of plan 9 services in case they are not in /etc/services --- src/lib9/open.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib9/open.c') 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; -- cgit v1.2.3