1 /* This file contains the file system call table.
4 * April 2009 (D.C. van Moolenbroek)
10 int (*call_vec
[])(void) = {
12 no_sys
, /* 1 getnode */
13 do_putnode
, /* 2 putnode */
15 do_ftrunc
, /* 4 ftrunc */
17 do_chmod
, /* 6 chmod */
18 do_noop
, /* 7 inhibread */
20 do_utime
, /* 9 utime */
21 do_fstatfs
, /* 10 fstatfs */
22 no_sys
, /* 11 bread */
23 no_sys
, /* 12 bwrite */
24 do_unlink
, /* 13 unlink */
25 do_rmdir
, /* 14 rmdir */
26 do_unmount
, /* 15 unmount */
27 do_noop
, /* 16 sync */
28 do_noop
, /* 17 new_driver */
29 do_noop
, /* 18 flush */
30 do_read
, /* 19 read */
31 do_write
, /* 20 write */
32 no_sys
, /* 21 mknod */
33 do_mkdir
, /* 22 mkdir */
34 do_create
, /* 23 create */
36 do_rename
, /* 25 rename */
37 do_lookup
, /* 26 lookup */
38 no_sys
, /* 27 mountpoint */
39 do_readsuper
, /* 28 readsuper */
40 no_sys
, /* 29 newnode */
41 no_sys
, /* 30 rdlink */
42 do_getdents
, /* 31 getdents */
43 do_statvfs
, /* 32 statvfs */
46 /* This should not fail with "array size is negative": */
47 extern int dummy
[sizeof(call_vec
) == NREQS
* sizeof(call_vec
[0]) ? 1 : -1];