opendir change: refinement
[minix.git] / servers / procfs / proto.h
blob64f257a6793623229e906364537e8cc4126294be
1 #ifndef _PROCFS_PROTO_H
2 #define _PROCFS_PROTO_H
4 /* buf.c */
5 void buf_init(off_t start, size_t len);
6 void buf_printf(char *fmt, ...);
7 void buf_append(char *data, size_t len);
8 size_t buf_get(char **ptr);
10 /* tree.c */
11 int init_tree(void);
12 int lookup_hook(struct inode *parent, char *name, cbdata_t cbdata);
13 int getdents_hook(struct inode *inode, cbdata_t cbdata);
14 int read_hook(struct inode *inode, off_t offset, char **ptr, size_t
15 *len, cbdata_t cbdata);
16 int rdlink_hook(struct inode *inode, char *ptr, size_t max, cbdata_t
17 cbdata);
19 /* util.c */
20 int procfs_getloadavg(struct load *loadavg, int nelem);
22 #endif /* _PROCFS_PROTO_H */