hard code list of plan 9 services in case they are not in /etc/services

This commit is contained in:
rsc 2005-02-11 16:58:23 +00:00
parent 26a5fd5725
commit b589fce2fb
8 changed files with 300 additions and 8 deletions

View file

@ -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;