Add support for user-level 9P servers/clients and various bug fixes to go with them.
This commit is contained in:
parent
ac244f8d28
commit
32f69c36e0
60 changed files with 965 additions and 485 deletions
|
|
@ -13,3 +13,15 @@ p9getenv(char *s)
|
|||
return strdup(t);
|
||||
}
|
||||
|
||||
int
|
||||
p9putenv(char *s, char *v)
|
||||
{
|
||||
char *t;
|
||||
|
||||
t = smprint("%s=%s", s, v);
|
||||
if(t == nil)
|
||||
return -1;
|
||||
putenv(t);
|
||||
free(t);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue