1 | /* Function prototypes. */
|
---|
2 |
|
---|
3 | #include "timers.h"
|
---|
4 |
|
---|
5 | /* Structs used in prototypes must be declared as such first. */
|
---|
6 | struct buf;
|
---|
7 | struct filp;
|
---|
8 | struct inode;
|
---|
9 | struct super_block;
|
---|
10 |
|
---|
11 | /* cache.c */
|
---|
12 | _PROTOTYPE( zone_t alloc_zone, (Dev_t dev, zone_t z) );
|
---|
13 | _PROTOTYPE( void flushall, (Dev_t dev) );
|
---|
14 | _PROTOTYPE( void free_zone, (Dev_t dev, zone_t numb) );
|
---|
15 | _PROTOTYPE( struct buf *get_block, (Dev_t dev, block_t block,int only_search));
|
---|
16 | _PROTOTYPE( void invalidate, (Dev_t device) );
|
---|
17 | _PROTOTYPE( void put_block, (struct buf *bp, int block_type) );
|
---|
18 | _PROTOTYPE( void rw_scattered, (Dev_t dev,
|
---|
19 | struct buf **bufq, int bufqsize, int rw_flag) );
|
---|
20 |
|
---|
21 | #if ENABLE_CACHE2
|
---|
22 | /* cache2.c */
|
---|
23 | _PROTOTYPE( void init_cache2, (unsigned long size) );
|
---|
24 | _PROTOTYPE( int get_block2, (struct buf *bp, int only_search) );
|
---|
25 | _PROTOTYPE( void put_block2, (struct buf *bp) );
|
---|
26 | _PROTOTYPE( void invalidate2, (Dev_t device) );
|
---|
27 | #endif
|
---|
28 |
|
---|
29 | /* device.c */
|
---|
30 | _PROTOTYPE( int dev_open, (Dev_t dev, int proc, int flags) );
|
---|
31 | _PROTOTYPE( void dev_close, (Dev_t dev) );
|
---|
32 | _PROTOTYPE( int dev_io, (int op, Dev_t dev, int proc, void *buf,
|
---|
33 | off_t pos, int bytes, int flags) );
|
---|
34 | _PROTOTYPE( int gen_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
35 | _PROTOTYPE( int gen_io, (int task_nr, message *mess_ptr) );
|
---|
36 | _PROTOTYPE( int no_dev, (int op, Dev_t dev, int proc, int flags) );
|
---|
37 | _PROTOTYPE( int no_dev_io, (int, message *) );
|
---|
38 | _PROTOTYPE( int tty_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
39 | _PROTOTYPE( int ctty_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
40 | _PROTOTYPE( int clone_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
41 | _PROTOTYPE( int ctty_io, (int task_nr, message *mess_ptr) );
|
---|
42 | _PROTOTYPE( int do_ioctl, (void) );
|
---|
43 | _PROTOTYPE( int do_setsid, (void) );
|
---|
44 | _PROTOTYPE( void dev_status, (message *) );
|
---|
45 | _PROTOTYPE( void dev_up, (int major) );
|
---|
46 |
|
---|
47 | /* dmp.c */
|
---|
48 | _PROTOTYPE( int do_fkey_pressed, (void) );
|
---|
49 |
|
---|
50 | /* dmap.c */
|
---|
51 | _PROTOTYPE( int do_devctl, (void) );
|
---|
52 | _PROTOTYPE( void build_dmap, (void) );
|
---|
53 | _PROTOTYPE( int map_driver, (int major, int proc_nr, int dev_style) );
|
---|
54 | _PROTOTYPE( int dmap_driver_match, (int proc, int major) );
|
---|
55 | _PROTOTYPE( void dmap_unmap_by_endpt, (int proc_nr) );
|
---|
56 | _PROTOTYPE( void dmap_endpt_up, (int proc_nr) );
|
---|
57 |
|
---|
58 | /* filedes.c */
|
---|
59 | _PROTOTYPE( struct filp *find_filp, (struct inode *rip, mode_t bits) );
|
---|
60 | _PROTOTYPE( int get_fd, (int start, mode_t bits, int *k, struct filp **fpt) );
|
---|
61 | _PROTOTYPE( struct filp *get_filp, (int fild) );
|
---|
62 | _PROTOTYPE( int inval_filp, (struct filp *) );
|
---|
63 |
|
---|
64 | /* inode.c */
|
---|
65 | _PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t bits) );
|
---|
66 | _PROTOTYPE( void dup_inode, (struct inode *ip) );
|
---|
67 | _PROTOTYPE( void free_inode, (Dev_t dev, Ino_t numb) );
|
---|
68 | _PROTOTYPE( struct inode *get_inode, (Dev_t dev, int numb) );
|
---|
69 | _PROTOTYPE( void put_inode, (struct inode *rip) );
|
---|
70 | _PROTOTYPE( void update_times, (struct inode *rip) );
|
---|
71 | _PROTOTYPE( void rw_inode, (struct inode *rip, int rw_flag) );
|
---|
72 | _PROTOTYPE( void wipe_inode, (struct inode *rip) );
|
---|
73 |
|
---|
74 | /* link.c */
|
---|
75 | _PROTOTYPE( int do_link, (void) );
|
---|
76 | _PROTOTYPE( int do_unlink, (void) );
|
---|
77 | _PROTOTYPE( int do_rename, (void) );
|
---|
78 | _PROTOTYPE( int do_truncate, (void) );
|
---|
79 | _PROTOTYPE( int do_ftruncate, (void) );
|
---|
80 | _PROTOTYPE( int truncate_inode, (struct inode *rip, off_t len) );
|
---|
81 | _PROTOTYPE( int freesp_inode, (struct inode *rip, off_t st, off_t end) );
|
---|
82 |
|
---|
83 | /* lock.c */
|
---|
84 | _PROTOTYPE( int lock_op, (struct filp *f, int req) );
|
---|
85 | _PROTOTYPE( void lock_revive, (void) );
|
---|
86 |
|
---|
87 | /* main.c */
|
---|
88 | _PROTOTYPE( int main, (void) );
|
---|
89 | _PROTOTYPE( void reply, (int whom, int result) );
|
---|
90 |
|
---|
91 | /* misc.c */
|
---|
92 | _PROTOTYPE( int do_dup, (void) );
|
---|
93 | _PROTOTYPE( int do_exit, (void) );
|
---|
94 | _PROTOTYPE( int do_fcntl, (void) );
|
---|
95 | _PROTOTYPE( int do_fork, (void) );
|
---|
96 | _PROTOTYPE( int do_exec, (void) );
|
---|
97 | _PROTOTYPE( int do_revive, (void) );
|
---|
98 | _PROTOTYPE( int do_set, (void) );
|
---|
99 | _PROTOTYPE( int do_sync, (void) );
|
---|
100 | _PROTOTYPE( int do_fsync, (void) );
|
---|
101 | _PROTOTYPE( int do_reboot, (void) );
|
---|
102 | _PROTOTYPE( int do_svrctl, (void) );
|
---|
103 | _PROTOTYPE( int do_getsysinfo, (void) );
|
---|
104 |
|
---|
105 | /* mount.c */
|
---|
106 | _PROTOTYPE( int do_mount, (void) );
|
---|
107 | _PROTOTYPE( int do_umount, (void) );
|
---|
108 | _PROTOTYPE( int unmount, (Dev_t dev) );
|
---|
109 |
|
---|
110 | /* open.c */
|
---|
111 | _PROTOTYPE( int do_close, (void) );
|
---|
112 | _PROTOTYPE( int do_creat, (void) );
|
---|
113 | _PROTOTYPE( int do_lseek, (void) );
|
---|
114 | _PROTOTYPE( int do_mknod, (void) );
|
---|
115 | _PROTOTYPE( int do_mkdir, (void) );
|
---|
116 | _PROTOTYPE( int do_open, (void) );
|
---|
117 | _PROTOTYPE( int do_slink, (void) );
|
---|
118 |
|
---|
119 | /* path.c */
|
---|
120 | _PROTOTYPE( struct inode *advance,(struct inode **dirp, char string[NAME_MAX]));
|
---|
121 | _PROTOTYPE( int search_dir, (struct inode *ldir_ptr,
|
---|
122 | char string [NAME_MAX], ino_t *numb, int flag) );
|
---|
123 | _PROTOTYPE( struct inode *eat_path, (char *path) );
|
---|
124 | _PROTOTYPE( struct inode *last_dir, (char *path, char string [NAME_MAX]));
|
---|
125 | _PROTOTYPE( struct inode *parse_path, (char *path, char string[NAME_MAX],
|
---|
126 | int action) );
|
---|
127 |
|
---|
128 | /* pipe.c */
|
---|
129 | _PROTOTYPE( int do_pipe, (void) );
|
---|
130 | _PROTOTYPE( int do_unpause, (void) );
|
---|
131 | _PROTOTYPE( int pipe_check, (struct inode *rip, int rw_flag,
|
---|
132 | int oflags, int bytes, off_t position, int *canwrite, int notouch));
|
---|
133 | _PROTOTYPE( void release, (struct inode *ip, int call_nr, int count) );
|
---|
134 | _PROTOTYPE( void revive, (int proc_nr, int bytes) );
|
---|
135 | _PROTOTYPE( void suspend, (int task) );
|
---|
136 | _PROTOTYPE( int select_request_pipe, (struct filp *f, int *ops, int bl) );
|
---|
137 | _PROTOTYPE( int select_cancel_pipe, (struct filp *f) );
|
---|
138 | _PROTOTYPE( int select_match_pipe, (struct filp *f) );
|
---|
139 | _PROTOTYPE( void unsuspend_by_endpt, (int) );
|
---|
140 |
|
---|
141 | /* protect.c */
|
---|
142 | _PROTOTYPE( int do_access, (void) );
|
---|
143 | _PROTOTYPE( int do_chmod, (void) );
|
---|
144 | _PROTOTYPE( int do_chown, (void) );
|
---|
145 | _PROTOTYPE( int do_umask, (void) );
|
---|
146 | _PROTOTYPE( int forbidden, (struct inode *rip, mode_t access_desired) );
|
---|
147 | _PROTOTYPE( int read_only, (struct inode *ip) );
|
---|
148 |
|
---|
149 | /* read.c */
|
---|
150 | _PROTOTYPE( int do_read, (void) );
|
---|
151 | _PROTOTYPE( struct buf *rahead, (struct inode *rip, block_t baseblock,
|
---|
152 | off_t position, unsigned bytes_ahead) );
|
---|
153 | _PROTOTYPE( void read_ahead, (void) );
|
---|
154 | _PROTOTYPE( block_t read_map, (struct inode *rip, off_t pos) );
|
---|
155 | _PROTOTYPE( int read_write, (int rw_flag) );
|
---|
156 | _PROTOTYPE( zone_t rd_indir, (struct buf *bp, int index) );
|
---|
157 |
|
---|
158 | /* stadir.c */
|
---|
159 | _PROTOTYPE( int do_chdir, (void) );
|
---|
160 | _PROTOTYPE( int do_fchdir, (void) );
|
---|
161 | _PROTOTYPE( int do_chroot, (void) );
|
---|
162 | _PROTOTYPE( int do_fstat, (void) );
|
---|
163 | _PROTOTYPE( int do_stat, (void) );
|
---|
164 | _PROTOTYPE( int do_fstatfs, (void) );
|
---|
165 | _PROTOTYPE( int do_rdlink, (void) );
|
---|
166 | _PROTOTYPE( int do_lstat, (void) );
|
---|
167 |
|
---|
168 | /* super.c */
|
---|
169 | _PROTOTYPE( bit_t alloc_bit, (struct super_block *sp, int map, bit_t origin));
|
---|
170 | _PROTOTYPE( void free_bit, (struct super_block *sp, int map,
|
---|
171 | bit_t bit_returned) );
|
---|
172 | _PROTOTYPE( struct super_block *get_super, (Dev_t dev) );
|
---|
173 | _PROTOTYPE( int mounted, (struct inode *rip) );
|
---|
174 | _PROTOTYPE( int read_super, (struct super_block *sp) );
|
---|
175 | _PROTOTYPE( int get_block_size, (dev_t dev) );
|
---|
176 |
|
---|
177 | /* time.c */
|
---|
178 | _PROTOTYPE( int do_stime, (void) );
|
---|
179 | _PROTOTYPE( int do_utime, (void) );
|
---|
180 |
|
---|
181 | /* utility.c */
|
---|
182 | _PROTOTYPE( time_t clock_time, (void) );
|
---|
183 | _PROTOTYPE( unsigned conv2, (int norm, int w) );
|
---|
184 | _PROTOTYPE( long conv4, (int norm, long x) );
|
---|
185 | _PROTOTYPE( int fetch_name, (char *path, int len, int flag) );
|
---|
186 | _PROTOTYPE( int no_sys, (void) );
|
---|
187 | _PROTOTYPE( int isokendpt_f, (char *f, int l, int e, int *p, int ft));
|
---|
188 | _PROTOTYPE( void panic, (char *who, char *mess, int num) );
|
---|
189 |
|
---|
190 | #define okendpt(e, p) isokendpt_f(__FILE__, __LINE__, (e), (p), 1)
|
---|
191 | #define isokendpt(e, p) isokendpt_f(__FILE__, __LINE__, (e), (p), 0)
|
---|
192 |
|
---|
193 | /* write.c */
|
---|
194 | _PROTOTYPE( void clear_zone, (struct inode *rip, off_t pos, int flag) );
|
---|
195 | _PROTOTYPE( int do_write, (void) );
|
---|
196 | _PROTOTYPE( struct buf *new_block, (struct inode *rip, off_t position) );
|
---|
197 | _PROTOTYPE( void zero_block, (struct buf *bp) );
|
---|
198 | _PROTOTYPE( int write_map, (struct inode *, off_t, zone_t, int) );
|
---|
199 |
|
---|
200 | /* select.c */
|
---|
201 | _PROTOTYPE( int do_select, (void) );
|
---|
202 | _PROTOTYPE( int select_callback, (struct filp *, int ops) );
|
---|
203 | _PROTOTYPE( void select_forget, (int fproc) );
|
---|
204 | _PROTOTYPE( void select_timeout_check, (timer_t *) );
|
---|
205 | _PROTOTYPE( void init_select, (void) );
|
---|
206 | _PROTOTYPE( void select_unsuspend_by_endpt, (int proc) );
|
---|
207 | _PROTOTYPE( int select_notified, (int major, int minor, int ops) );
|
---|
208 |
|
---|
209 | /* timers.c */
|
---|
210 | _PROTOTYPE( void fs_set_timer, (timer_t *tp, int delta, tmr_func_t watchdog, int arg));
|
---|
211 | _PROTOTYPE( void fs_expire_timers, (clock_t now) );
|
---|
212 | _PROTOTYPE( void fs_cancel_timer, (timer_t *tp) );
|
---|
213 | _PROTOTYPE( void fs_init_timer, (timer_t *tp) );
|
---|
214 |
|
---|
215 | /* cdprobe.c */
|
---|
216 | _PROTOTYPE( int cdprobe, (void) );
|
---|