xref: /minix3/minix/lib/libvtreefs/table.c (revision 433d6423c39e34ec4b79c950597bb2d236f886be)
1 /* VTreeFS - table.c - by Alen Stojanov and David van Moolenbroek */
2 
3 #define _TABLE
4 #include "inc.h"
5 
6 int (*fs_call_vec[])(void) = {
7 	no_sys,		/*  0			*/
8 	no_sys,		/*  1	getnode		*/
9 	fs_putnode,	/*  2	putnode		*/
10 	no_sys,         /*  3	slink		*/
11 	no_sys,		/*  4	ftrunc		*/
12 	no_sys,		/*  5	chown		*/
13 	no_sys,		/*  6	chmod		*/
14 	do_noop,	/*  7	inhibread	*/
15 	fs_stat,	/*  8	stat		*/
16 	no_sys,		/*  9	utime		*/
17 	fs_statvfs,	/* 10	statvfs		*/
18 	no_sys,		/* 11	bread		*/
19 	no_sys,		/* 12	bwrite		*/
20 	no_sys,		/* 13	unlink		*/
21 	no_sys,		/* 14	rmdir		*/
22 	fs_unmount,	/* 15	unmount		*/
23 	do_noop,	/* 16	sync		*/
24 	do_noop,	/* 17	new_driver	*/
25 	no_sys,		/* 18	flush		*/
26 	fs_read,	/* 19	read		*/
27 	no_sys,		/* 20	write		*/
28 	no_sys,		/* 21	mknod		*/
29 	no_sys,		/* 22	mkdir		*/
30 	no_sys,		/* 23	create		*/
31 	no_sys,		/* 24	link		*/
32 	no_sys,		/* 25	rename		*/
33 	fs_lookup,	/* 26	lookup		*/
34 	no_sys,		/* 27	mountpoint	*/
35 	fs_readsuper,	/* 28	readsuper	*/
36 	no_sys,		/* 29	newnode		*/
37 	fs_rdlink,	/* 30	rdlink		*/
38 	fs_getdents,	/* 31	getdents	*/
39 	no_sys,		/* 32   peek            */
40 	no_sys,		/* 33   bpeek           */
41 };
42 
43 /* This should not fail with "array size is negative": */
44 extern int
45 	dummy[sizeof(fs_call_vec) == NREQS * sizeof(fs_call_vec[0]) ? 1 : -1];
46