Subversion Repositories planix.SVN

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <auth.h>
4
#include <fcall.h>
5
#include "9p.h"
6
 
7
void
8
main(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
}