Blob
1 #include <u.h>2 #include <libc.h>3 #include <auth.h>4 #include <fcall.h>5 #include "9p.h"7 void8 main(void)9 {10 Tree *t;11 File *hello, *goodbye, *world;13 t = mktree();15 hello = fcreate(t->root, "hello", CHDIR|0777);16 assert(hello != nil);18 goodbye = fcreate(t->root, "goodbye", CHDIR|0777);19 assert(goodbye != nil);21 world = fcreate(hello, "world", 0666);22 assert(world != nil);23 world = fcreate(goodbye, "world", 0666);24 assert(world != nil);25 fdump(t->root, 0);27 fremove(world);28 fdump(t->root, 0);29 }