[4] | 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_block, (struct buf *bp, int rw_flag) );
|
---|
| 19 | _PROTOTYPE( void rw_scattered, (Dev_t dev,
|
---|
| 20 | struct buf **bufq, int bufqsize, int rw_flag) );
|
---|
| 21 |
|
---|
| 22 | /* device.c */
|
---|
| 23 | _PROTOTYPE( int dev_open, (Dev_t dev, int proc, int flags) );
|
---|
| 24 | _PROTOTYPE( void dev_close, (Dev_t dev) );
|
---|
| 25 | _PROTOTYPE( int dev_io, (int op, Dev_t dev, int proc, void *buf,
|
---|
| 26 | off_t pos, int bytes, int flags) );
|
---|
| 27 | _PROTOTYPE( int gen_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
| 28 | _PROTOTYPE( void gen_io, (int task_nr, message *mess_ptr) );
|
---|
| 29 | _PROTOTYPE( int no_dev, (int op, Dev_t dev, int proc, int flags) );
|
---|
| 30 | _PROTOTYPE( int tty_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
| 31 | _PROTOTYPE( int ctty_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
| 32 | _PROTOTYPE( int clone_opcl, (int op, Dev_t dev, int proc, int flags) );
|
---|
| 33 | _PROTOTYPE( void ctty_io, (int task_nr, message *mess_ptr) );
|
---|
| 34 | _PROTOTYPE( int do_ioctl, (void) );
|
---|
| 35 | _PROTOTYPE( int do_setsid, (void) );
|
---|
| 36 | _PROTOTYPE( void dev_status, (message *) );
|
---|
| 37 |
|
---|
| 38 | /* dmp.c */
|
---|
| 39 | _PROTOTYPE( int do_fkey_pressed, (void) );
|
---|
| 40 |
|
---|
| 41 | /* dmap.c */
|
---|
| 42 | _PROTOTYPE( int do_devctl, (void) );
|
---|
| 43 | _PROTOTYPE( void build_dmap, (void) );
|
---|
| 44 | _PROTOTYPE( int map_driver, (int major, int proc_nr, int dev_style) );
|
---|
| 45 |
|
---|
| 46 | /* filedes.c */
|
---|
| 47 | _PROTOTYPE( struct filp *find_filp, (struct inode *rip, mode_t bits) );
|
---|
| 48 | _PROTOTYPE( int get_fd, (int start, mode_t bits, int *k, struct filp **fpt) );
|
---|
| 49 | _PROTOTYPE( struct filp *get_filp, (int fild) );
|
---|
| 50 |
|
---|
| 51 | /* inode.c */
|
---|
| 52 | _PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t bits) );
|
---|
| 53 | _PROTOTYPE( void dup_inode, (struct inode *ip) );
|
---|
| 54 | _PROTOTYPE( void free_inode, (Dev_t dev, Ino_t numb) );
|
---|
| 55 | _PROTOTYPE( struct inode *get_inode, (Dev_t dev, int numb) );
|
---|
| 56 | _PROTOTYPE( void put_inode, (struct inode *rip) );
|
---|
| 57 | _PROTOTYPE( void update_times, (struct inode *rip) );
|
---|
| 58 | _PROTOTYPE( void rw_inode, (struct inode *rip, int rw_flag) );
|
---|
| 59 | _PROTOTYPE( void wipe_inode, (struct inode *rip) );
|
---|
| 60 |
|
---|
| 61 | /* link.c */
|
---|
| 62 | _PROTOTYPE( int do_link, (void) );
|
---|
| 63 | _PROTOTYPE( int do_unlink, (void) );
|
---|
| 64 | _PROTOTYPE( int do_rename, (void) );
|
---|
| 65 | _PROTOTYPE( void truncate, (struct inode *rip) );
|
---|
| 66 |
|
---|
| 67 | /* lock.c */
|
---|
| 68 | _PROTOTYPE( int lock_op, (struct filp *f, int req) );
|
---|
| 69 | _PROTOTYPE( void lock_revive, (void) );
|
---|
| 70 |
|
---|
| 71 | /* main.c */
|
---|
| 72 | _PROTOTYPE( int main, (void) );
|
---|
| 73 | _PROTOTYPE( void reply, (int whom, int result) );
|
---|
| 74 |
|
---|
| 75 | /* misc.c */
|
---|
| 76 | _PROTOTYPE( int do_dup, (void) );
|
---|
| 77 | _PROTOTYPE( int do_exit, (void) );
|
---|
| 78 | _PROTOTYPE( int do_fcntl, (void) );
|
---|
| 79 | _PROTOTYPE( int do_fork, (void) );
|
---|
| 80 | _PROTOTYPE( int do_exec, (void) );
|
---|
| 81 | _PROTOTYPE( int do_revive, (void) );
|
---|
| 82 | _PROTOTYPE( int do_set, (void) );
|
---|
| 83 | _PROTOTYPE( int do_sync, (void) );
|
---|
| 84 | _PROTOTYPE( int do_fsync, (void) );
|
---|
| 85 | _PROTOTYPE( int do_reboot, (void) );
|
---|
| 86 | _PROTOTYPE( int do_svrctl, (void) );
|
---|
| 87 | _PROTOTYPE( int do_getsysinfo, (void) );
|
---|
| 88 |
|
---|
| 89 | /* mount.c */
|
---|
| 90 | _PROTOTYPE( int do_mount, (void) );
|
---|
| 91 | _PROTOTYPE( int do_umount, (void) );
|
---|
| 92 | _PROTOTYPE( int unmount, (Dev_t dev) );
|
---|
| 93 |
|
---|
| 94 | /* open.c */
|
---|
| 95 | _PROTOTYPE( int do_close, (void) );
|
---|
| 96 | _PROTOTYPE( int do_creat, (void) );
|
---|
| 97 | _PROTOTYPE( int do_lseek, (void) );
|
---|
| 98 | _PROTOTYPE( int do_mknod, (void) );
|
---|
| 99 | _PROTOTYPE( int do_mkdir, (void) );
|
---|
| 100 | _PROTOTYPE( int do_open, (void) );
|
---|
| 101 |
|
---|
| 102 | /* path.c */
|
---|
| 103 | _PROTOTYPE( struct inode *advance,(struct inode *dirp, char string[NAME_MAX]));
|
---|
| 104 | _PROTOTYPE( int search_dir, (struct inode *ldir_ptr,
|
---|
| 105 | char string [NAME_MAX], ino_t *numb, int flag) );
|
---|
| 106 | _PROTOTYPE( struct inode *eat_path, (char *path) );
|
---|
| 107 | _PROTOTYPE( struct inode *last_dir, (char *path, char string [NAME_MAX]));
|
---|
| 108 |
|
---|
| 109 | /* pipe.c */
|
---|
| 110 | _PROTOTYPE( int do_pipe, (void) );
|
---|
| 111 | _PROTOTYPE( int do_unpause, (void) );
|
---|
| 112 | _PROTOTYPE( int pipe_check, (struct inode *rip, int rw_flag,
|
---|
| 113 | int oflags, int bytes, off_t position, int *canwrite, int notouch));
|
---|
| 114 | _PROTOTYPE( void release, (struct inode *ip, int call_nr, int count) );
|
---|
| 115 | _PROTOTYPE( void revive, (int proc_nr, int bytes) );
|
---|
| 116 | _PROTOTYPE( void suspend, (int task) );
|
---|
| 117 | _PROTOTYPE( int select_request_pipe, (struct filp *f, int *ops, int bl) );
|
---|
| 118 | _PROTOTYPE( int select_cancel_pipe, (struct filp *f) );
|
---|
| 119 | _PROTOTYPE( int select_match_pipe, (struct filp *f) );
|
---|
| 120 |
|
---|
| 121 | /* protect.c */
|
---|
| 122 | _PROTOTYPE( int do_access, (void) );
|
---|
| 123 | _PROTOTYPE( int do_chmod, (void) );
|
---|
| 124 | _PROTOTYPE( int do_chown, (void) );
|
---|
| 125 | _PROTOTYPE( int do_umask, (void) );
|
---|
| 126 | _PROTOTYPE( int forbidden, (struct inode *rip, mode_t access_desired) );
|
---|
| 127 | _PROTOTYPE( int read_only, (struct inode *ip) );
|
---|
| 128 |
|
---|
| 129 | /* read.c */
|
---|
| 130 | _PROTOTYPE( int do_read, (void) );
|
---|
| 131 | _PROTOTYPE( struct buf *rahead, (struct inode *rip, block_t baseblock,
|
---|
| 132 | off_t position, unsigned bytes_ahead) );
|
---|
| 133 | _PROTOTYPE( void read_ahead, (void) );
|
---|
| 134 | _PROTOTYPE( block_t read_map, (struct inode *rip, off_t position) );
|
---|
| 135 | _PROTOTYPE( int read_write, (int rw_flag) );
|
---|
| 136 | _PROTOTYPE( zone_t rd_indir, (struct buf *bp, int index) );
|
---|
| 137 |
|
---|
| 138 | /* stadir.c */
|
---|
| 139 | _PROTOTYPE( int do_chdir, (void) );
|
---|
| 140 | _PROTOTYPE( int do_fchdir, (void) );
|
---|
| 141 | _PROTOTYPE( int do_chroot, (void) );
|
---|
| 142 | _PROTOTYPE( int do_fstat, (void) );
|
---|
| 143 | _PROTOTYPE( int do_stat, (void) );
|
---|
| 144 | _PROTOTYPE( int do_fstatfs, (void) );
|
---|
| 145 |
|
---|
| 146 | /* super.c */
|
---|
| 147 | _PROTOTYPE( bit_t alloc_bit, (struct super_block *sp, int map, bit_t origin));
|
---|
| 148 | _PROTOTYPE( void free_bit, (struct super_block *sp, int map,
|
---|
| 149 | bit_t bit_returned) );
|
---|
| 150 | _PROTOTYPE( struct super_block *get_super, (Dev_t dev) );
|
---|
| 151 | _PROTOTYPE( int mounted, (struct inode *rip) );
|
---|
| 152 | _PROTOTYPE( int read_super, (struct super_block *sp) );
|
---|
| 153 | _PROTOTYPE( int get_block_size, (dev_t dev) );
|
---|
| 154 |
|
---|
| 155 | /* time.c */
|
---|
| 156 | _PROTOTYPE( int do_stime, (void) );
|
---|
| 157 | _PROTOTYPE( int do_utime, (void) );
|
---|
| 158 |
|
---|
| 159 | /* utility.c */
|
---|
| 160 | _PROTOTYPE( time_t clock_time, (void) );
|
---|
| 161 | _PROTOTYPE( unsigned conv2, (int norm, int w) );
|
---|
| 162 | _PROTOTYPE( long conv4, (int norm, long x) );
|
---|
| 163 | _PROTOTYPE( int fetch_name, (char *path, int len, int flag) );
|
---|
| 164 | _PROTOTYPE( int no_sys, (void) );
|
---|
| 165 | _PROTOTYPE( void panic, (char *who, char *mess, int num) );
|
---|
| 166 |
|
---|
| 167 | /* write.c */
|
---|
| 168 | _PROTOTYPE( void clear_zone, (struct inode *rip, off_t pos, int flag) );
|
---|
| 169 | _PROTOTYPE( int do_write, (void) );
|
---|
| 170 | _PROTOTYPE( struct buf *new_block, (struct inode *rip, off_t position) );
|
---|
| 171 | _PROTOTYPE( void zero_block, (struct buf *bp) );
|
---|
| 172 |
|
---|
| 173 | /* select.c */
|
---|
| 174 | _PROTOTYPE( int do_select, (void) );
|
---|
| 175 | _PROTOTYPE( int select_callback, (struct filp *, int ops) );
|
---|
| 176 | _PROTOTYPE( void select_forget, (int fproc) );
|
---|
| 177 | _PROTOTYPE( void select_timeout_check, (timer_t *) );
|
---|
| 178 | _PROTOTYPE( void init_select, (void) );
|
---|
| 179 | _PROTOTYPE( int select_notified, (int major, int minor, int ops) );
|
---|
| 180 |
|
---|
| 181 | /* timers.c */
|
---|
| 182 | _PROTOTYPE( void fs_set_timer, (timer_t *tp, int delta, tmr_func_t watchdog, int arg));
|
---|
| 183 | _PROTOTYPE( void fs_expire_timers, (clock_t now) );
|
---|
| 184 | _PROTOTYPE( void fs_cancel_timer, (timer_t *tp) );
|
---|
| 185 | _PROTOTYPE( void fs_init_timer, (timer_t *tp) );
|
---|
| 186 |
|
---|
| 187 | /* cdprobe.c */
|
---|
| 188 | _PROTOTYPE( int cdprobe, (void) );
|
---|