initial import

This commit is contained in:
garbeam@wmii.de
2005-11-20 18:27:27 +02:00
commit e5f0f74b8a
323 changed files with 41871 additions and 0 deletions

18
lib9/get9root.c Normal file
View File

@@ -0,0 +1,18 @@
#include <u.h>
#include <libc.h>
char*
get9root(void)
{
static char *s;
if(s)
return s;
if((s = getenv("PLAN9")) != 0)
return s;
/* could do better - search $PATH */
s = "/usr/local/plan9";
return s;
}