Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/lib9p/ftest.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | 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
}