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