xref: /plan9-contrib/sys/src/cmd/fscfs/fns.h (revision 518acb8505541d27c37065969099debc28466c8f)
1 Data*	allocdata(File*, uint, uint);
2 SFid*	allocsfid(void);
3 SFid*	alreadyopen(Fid*, uint);
4 int	askserver(Fcall*, Fid*);
5 void	badpath(Path*, char*, char*);
6 void	cacheinval(File*);
7 void	closefile(Fid*, int, int);
8 void	cachemerge(Data*, char*, int, int);
9 void	copystat(File*, Dir*, int);
10 int	cacheread(File*, void*, vlong, int);
11 int	ctltest(Fid*);
12 void	cachewrite(File*, void*, vlong, int);
13 void	datainit(void);
14 int	delegate(Fcall*, Fid*, SFid*);
15 void	dumpdata(Data*, int);
16 String*	dupstr(String*);
17 void	error(char*, ...);
18 void	fileinval(Path*);
19 Data*	finddata(File*, uvlong, int*);
20 Fid*	findfid(Host*, u32int, int);
21 void	freedata(Data*);
22 void	freeinval(Path*);
23 void	freepath(Path*);
24 void	freesfid(SFid*);
25 void	freestr(String*);
26 void	genstats(void);
27 void	io(void);
28 int	localwalk(Fid*, Fcall*, Fcall*, Path**);
29 void	mountinit(char*, char*, char*);
30 Path*	newpath(Path*, char*, Qid);
31 String*	newstr(char*);
32 void	openfile(Fid*, int, u32int, SFid*);
33 int	openmode(uint);
34 char*	pathstr(Path*);
35 void	printpath(Path*, int);
36 void	putfid(Fid*);
37 void	putfile(File*);
38 void	rattach(Fcall*);
39 void	rauth(Fcall*);
40 void	rclunk(Fcall*);
41 void	rcreate(Fcall*);
42 void	rcvmsg(P9fs*, Fcall*);
43 void	rflush(Fcall*);
44 void	ropen(Fcall*);
45 void	rread(Fcall*);
46 void	rremove(Fcall*);
47 void	rstat(Fcall*);
48 void	rversion(Fcall*);
49 void	rwalk(Fcall*);
50 void	rwrite(Fcall*);
51 void	rwstat(Fcall*);
52 void	sendmsg(P9fs*, Fcall*);
53 void	sendreply(char*);
54 void	setinval(Path*, char*);
55 SFid*	sfclone(SFid*);
56 void	sfclunk(SFid*);
57 Data*	storedata(File*, uvlong, int*);
58 void	warning(char*);
59