experiment: translation from standard notations to plan 9 in netmkaddr
This commit is contained in:
parent
73a5509ae9
commit
6215fd56f1
3 changed files with 36 additions and 13 deletions
|
|
@ -118,6 +118,9 @@ Unix:
|
|||
free(buf);
|
||||
return -1;
|
||||
}
|
||||
/* Allow regular files in addition to Unix sockets. */
|
||||
if((s = open(unix, ORDWR)) >= 0)
|
||||
return s;
|
||||
memset(&su, 0, sizeof su);
|
||||
su.sun_family = AF_UNIX;
|
||||
if(strlen(unix)+1 > sizeof su.sun_path){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue