Fixed extern declaration from pointer to array
[minix.git] / servers / pfs / proto.h
blob0c4ede038661340233d68677ca2ddd1ce1a29722
1 /* Function prototypes. */
3 /* Structs used in prototypes must be declared as such first. */
4 struct buf;
5 struct filp;
6 struct inode;
8 /* buffer.c */
9 _PROTOTYPE( struct buf *get_block, (Dev_t dev, ino_t inum) );
10 _PROTOTYPE( struct buf *new_block, (Dev_t dev, ino_t inum) );
11 _PROTOTYPE( void put_block, (Dev_t dev, ino_t inum) );
13 /* cache.c */
14 _PROTOTYPE( void buf_pool, (void) );
16 /* inode.c */
17 _PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t mode) );
18 _PROTOTYPE( void dup_inode, (struct inode *ip) );
19 _PROTOTYPE( struct inode *find_inode, (int numb) );
20 _PROTOTYPE( void free_inode, (struct inode *rip) );
21 _PROTOTYPE( int fs_putnode, (void) );
22 _PROTOTYPE( void init_inode_cache, (void) );
23 _PROTOTYPE( struct inode *get_inode, (Dev_t dev, int numb) );
24 _PROTOTYPE( void put_inode, (struct inode *rip) );
25 _PROTOTYPE( void update_times, (struct inode *rip) );
26 _PROTOTYPE( void wipe_inode, (struct inode *rip) );
28 /* link.c */
29 _PROTOTYPE( int fs_ftrunc, (void) );
30 _PROTOTYPE( int truncate_inode, (struct inode *rip, off_t newsize) );
33 /* main.c */
34 _PROTOTYPE( void reply, (int who, message *m_out) );
36 /* misc.c */
37 _PROTOTYPE( int fs_sync, (void) );
39 /* open.c */
40 _PROTOTYPE( int fs_newnode, (void) );
42 /* read.c */
43 _PROTOTYPE( int fs_readwrite, (void) );
44 _PROTOTYPE( block_t read_map, (struct inode *rip, off_t pos) );
45 _PROTOTYPE( int read_write, (int rw_flag) );
47 /* utility.c */
48 _PROTOTYPE( time_t clock_time, (void) );
49 _PROTOTYPE( int no_sys, (void) );
51 /* stadir.c */
52 _PROTOTYPE( int fs_stat, (void) );
54 /* super.c */
55 _PROTOTYPE( bit_t alloc_bit, (void) );
56 _PROTOTYPE( void free_bit, (bit_t bit_returned) );