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