pkgin_all: script to auto-install all packages
[minix.git] / lib / libpuffs / proto.h
blob41da711bea8ac8ab836935e3229b64d8100ed3e8
1 #ifndef PUFFS_PROTO_H
2 #define PUFFS_PROTO_H
4 struct puffs_usermount;
5 struct puffs_node;
7 /* Function prototypes. */
9 int fs_new_driver(void);
11 /* inode.c */
12 int fs_putnode(void);
13 void release_node(struct puffs_usermount *pu, struct puffs_node *pn );
15 /* device.c */
16 int dev_open(endpoint_t driver_e, dev_t dev, endpoint_t proc_e, int
17 flags);
18 void dev_close(endpoint_t driver_e, dev_t dev);
20 /* link.c */
21 int fs_ftrunc(void);
22 int fs_link(void);
23 int fs_rdlink(void);
24 int fs_rename(void);
25 int fs_unlink(void);
27 /* misc.c */
28 int fs_flush(void);
29 int fs_sync(void);
31 /* mount.c */
32 int fs_mountpoint(void);
33 int fs_readsuper(void);
34 int fs_unmount(void);
36 /* open.c */
37 int fs_create(void);
38 int fs_inhibread(void);
39 int fs_mkdir(void);
40 int fs_mknod(void);
41 int fs_slink(void);
43 /* path.c */
44 int fs_lookup(void);
45 struct puffs_node *advance(struct puffs_node *dirp, char string[NAME_MAX
46 + 1], int chk_perm);
48 /* protect.c */
49 int fs_chmod(void);
50 int fs_chown(void);
51 int fs_getdents(void);
52 int forbidden(struct puffs_node *rip, mode_t access_desired);
54 /* read.c */
55 int fs_breadwrite(void);
56 int fs_readwrite(void);
58 /* stadir.c */
59 int fs_fstatfs(void);
60 int fs_stat(void);
61 int fs_statvfs(void);
63 /* time.c */
64 int fs_utime(void);
66 /* utility.c */
67 int no_sys(void);
68 void mfs_nul_f(const char *file, int line, char *str, unsigned int len,
69 unsigned int maxlen);
70 time_t clock_time(void);
71 int update_times(struct puffs_node *pn, int fl, time_t t);
72 void lpuffs_debug(const char *format, ...);
74 #endif /* PUFFS_PROTO_H */