mkfs: drop support for running on DOS
[minix.git] / servers / iso9660fs / proto.h
blobdcc92ce1fff0ce097fd0cc8e033d1c7d30b47d19
1 /* Function prototypes for iso9660 file system. */
3 struct dir_record;
4 struct ext_attr_rec;
5 struct iso9660_vd_pri;
7 #include <minix/libminixfs.h>
9 #define get_block(n) lmfs_get_block(fs_dev, n, NORMAL)
10 #define put_block(n) lmfs_put_block(n, FULL_DATA_BLOCK)
12 /* main.c */
13 int main(void);
14 void reply(int who, message *m_out);
16 /* inode.c */
17 int create_dir_record(struct dir_record *dir, char *buffer, u32_t
18 address);
19 int create_ext_attr(struct ext_attr_rec *ext, char *buffer);
20 int fs_getnode(void);
21 int fs_putnode(void);
22 struct dir_record *get_dir_record(ino_t id_dir);
23 struct dir_record *get_free_dir_record(void);
24 struct ext_attr_rec *get_free_ext_attr(void);
25 struct dir_record *load_dir_record_from_disk(u32_t address);
26 int release_dir_record(struct dir_record *dir);
28 /* misc.c */
29 int fs_sync(void);
30 int fs_new_driver(void);
32 /* mount.c */
33 int fs_readsuper(void);
34 int fs_mountpoint(void);
35 int fs_unmount(void);
37 /* path.c */
38 int fs_lookup(void);
39 int advance(struct dir_record *dirp, char string[NAME_MAX], struct
40 dir_record **resp);
41 int search_dir(struct dir_record *ldir_ptr, char string [NAME_MAX],
42 ino_t *numb);
44 /* protect.c */
45 int fs_access(void);
47 /* read.c */
48 int fs_read(void);
49 int fs_bread(void);
50 int fs_getdents(void);
51 int read_chunk(struct dir_record *rip, u64_t position, unsigned off, int
52 chunk, unsigned left, cp_grant_id_t gid, unsigned buf_off, int
53 block_size, int *completed);
55 /* stadir.c */
56 int fs_stat(void);
57 int fs_fstatfs(void);
58 int fs_statvfs(void);
60 /* super.c */
61 int release_v_pri(struct iso9660_vd_pri *v_pri);
62 int read_vds(struct iso9660_vd_pri *v_pri, dev_t dev);
63 int create_v_pri(struct iso9660_vd_pri *v_pri, char *buffer, unsigned
64 long address);
66 /* utility.c */
67 int do_noop(void);
68 int no_sys(void);