hard code list of plan 9 services in case they are not in /etc/services
This commit is contained in:
parent
26a5fd5725
commit
b589fce2fb
8 changed files with 300 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue