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

@ -43,6 +43,10 @@ p9create(char *path, int mode, ulong perm)
umode |= O_EXCL;
mode &= ~OEXCL;
}
if(mode&OAPPEND){
umode |= O_APPEND;
mode &= ~OAPPEND;
}
if(mode){
werrstr("unsupported mode in create");
goto out;