Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2378 | konopa | 1 | /* Function prototypes. */ |
2 | |||
3 | |||
4 | #ifndef _PROTO_H |
||
5 | #define _PROTO_H |
||
6 | |||
7 | #include "block.h" |
||
8 | #include "inode.h" |
||
9 | #include "super.h" |
||
10 | #include "file.h" |
||
11 | #include "../share/shared_proto.h" |
||
12 | |||
13 | |||
14 | /* block.c */ |
||
15 | int init_block(void); |
||
16 | block_t *get_block(block_num_t block); |
||
17 | block_t *get_zero_block(void); |
||
18 | void read_block(block_t *bp); |
||
19 | |||
20 | /* dir.c */ |
||
21 | int do_sum(void); |
||
22 | int do_readentry(void); |
||
23 | |||
24 | /* filedes.c */ |
||
25 | filp_t *find_filp(inode_t *rip); |
||
26 | int get_fd(int start, int *k, filp_t **fpt); |
||
27 | filp_t *get_filp(int fild); |
||
28 | |||
29 | /* inode.c */ |
||
30 | void dup_inode(inode_t *rip); |
||
31 | void put_inode(inode_t *rip); |
||
32 | inode_t *get_inode(int numb); |
||
33 | void read_inode(inode_t *rip); |
||
34 | |||
35 | /* open.c */ |
||
36 | int do_close(void); |
||
37 | int do_lseek(void); |
||
38 | int do_open(void); |
||
39 | |||
40 | /* path.c */ |
||
41 | inode_t *eat_path(char *path); |
||
42 | inode_t *last_dir(char *path, char *string, int string_length); |
||
43 | inode_t *advance(inode_t *dirp, char *string, int string_length); |
||
44 | int search_dir(register inode_t *ldir_ptr, |
||
45 | char string [NAME_MAX], ino_t *numb, int flag); |
||
46 | int search_dir_ex(register inode_t *ldir_ptr, |
||
47 | char string[NAME_MAX_EX], ino_t *numb, int flag); |
||
48 | |||
49 | /* printing.c */ |
||
50 | int init_printing(void); |
||
51 | int print_console(char *str); |
||
52 | int print_console_int(char *str, int arg); |
||
53 | |||
54 | /* read.c */ |
||
55 | int do_read(void); |
||
56 | block_num_t read_map(inode_t *rip, offset_t position); |
||
57 | zone_t rd_indir(block_t *bp, int index); |
||
58 | |||
59 | /* stadir.c */ |
||
60 | int do_chdir(void); |
||
61 | int do_fstat(void); |
||
62 | int do_stat(void); |
||
63 | |||
64 | /* super.c */ |
||
65 | int init_super_block(void); |
||
66 | super_block_t *get_super(void); |
||
67 | int read_super(super_block_t *sp); |
||
68 | |||
69 | /* utility.c */ |
||
70 | int fetch_name(char *path, int len); |
||
71 | int no_sys(void); |
||
72 | unsigned conv2(int norm, int w); |
||
73 | long conv4(int norm, long x); |
||
74 | int fs_strncmp(const char *src, const char *dst, size_t len); |
||
75 | |||
76 | |||
77 | #endif /* _PROTO_H */ |