blob: 6692b7f16446f3024241e6f6d5605cb79219caed [file] [log] [blame]
rsc2277c5d2004-03-21 04:33:13 +00001#include <u.h>
2#include <libc.h>
3#include <auth.h>
4#include <fcall.h>
5#include "9p.h"
6
7void
8main(void)
9{
10 Tree *t;
11 File *hello, *goodbye, *world;
12
13 t = mktree();
14
15 hello = fcreate(t->root, "hello", CHDIR|0777);
16 assert(hello != nil);
17
18 goodbye = fcreate(t->root, "goodbye", CHDIR|0777);
19 assert(goodbye != nil);
20
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);
26
27 fremove(world);
28 fdump(t->root, 0);
29}