2010-05-28 11:39:18 +02:00
|
|
|
#ifndef __PFS_PROTO_H__
|
|
|
|
#define __PFS_PROTO_H__
|
|
|
|
|
2009-12-20 21:41:50 +01:00
|
|
|
/* Function prototypes. */
|
|
|
|
|
|
|
|
/* Structs used in prototypes must be declared as such first. */
|
|
|
|
struct buf;
|
|
|
|
struct inode;
|
2010-07-15 15:39:57 +02:00
|
|
|
struct sockaddr_un;
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* buffer.c */
|
2010-04-13 12:58:41 +02:00
|
|
|
_PROTOTYPE( struct buf *get_block, (dev_t dev, ino_t inum) );
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( void put_block, (dev_t dev, ino_t inum) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* cache.c */
|
|
|
|
_PROTOTYPE( void buf_pool, (void) );
|
|
|
|
|
|
|
|
/* inode.c */
|
|
|
|
_PROTOTYPE( struct inode *alloc_inode, (dev_t dev, mode_t mode) );
|
|
|
|
_PROTOTYPE( void dup_inode, (struct inode *ip) );
|
2010-05-28 11:39:18 +02:00
|
|
|
_PROTOTYPE( struct inode *find_inode, (ino_t numb) );
|
2009-12-20 21:41:50 +01:00
|
|
|
_PROTOTYPE( void free_inode, (struct inode *rip) );
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( int fs_putnode, (message *fs_m_in, message *fs_m_out) );
|
2009-12-20 21:41:50 +01:00
|
|
|
_PROTOTYPE( void init_inode_cache, (void) );
|
2010-05-28 11:39:18 +02:00
|
|
|
_PROTOTYPE( struct inode *get_inode, (dev_t dev, ino_t numb) );
|
2009-12-20 21:41:50 +01:00
|
|
|
_PROTOTYPE( void put_inode, (struct inode *rip) );
|
|
|
|
_PROTOTYPE( void update_times, (struct inode *rip) );
|
|
|
|
_PROTOTYPE( void wipe_inode, (struct inode *rip) );
|
|
|
|
|
|
|
|
/* link.c */
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( int fs_ftrunc, (message *fs_m_in, message *fs_m_out) );
|
|
|
|
_PROTOTYPE( int truncate_inode, (struct inode *rip, off_t newsize) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
/* main.c */
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( void reply, (endpoint_t who, message *m_out) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* misc.c */
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( int fs_sync, (message *fs_m_in, message *fs_m_out) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* open.c */
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( int fs_newnode, (message *fs_m_in, message *fs_m_out) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* read.c */
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( int fs_readwrite, (message *fs_m_in, message *fs_m_out) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* utility.c */
|
|
|
|
_PROTOTYPE( time_t clock_time, (void) );
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( int no_sys, (message *pfs_m_in, message *pfs_m_out) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* stadir.c */
|
2010-07-15 15:39:57 +02:00
|
|
|
_PROTOTYPE( int fs_stat, (message *fs_m_in, message *fs_m_out) );
|
2009-12-20 21:41:50 +01:00
|
|
|
|
|
|
|
/* super.c */
|
|
|
|
_PROTOTYPE( bit_t alloc_bit, (void) );
|
|
|
|
_PROTOTYPE( void free_bit, (bit_t bit_returned) );
|
2010-05-28 11:39:18 +02:00
|
|
|
|
2010-07-15 15:39:57 +02:00
|
|
|
/* dev_uds.c */
|
|
|
|
_PROTOTYPE( int uds_open, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int uds_close, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int uds_read, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int uds_write, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int uds_ioctl, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int uds_select, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int uds_status, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int uds_cancel, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
|
|
|
|
/* uds.c */
|
|
|
|
_PROTOTYPE( void uds_init, (void) );
|
|
|
|
_PROTOTYPE( int do_accept, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_connect, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_listen, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_socket, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_bind, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_getsockname, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_getpeername, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_shutdown, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_socketpair, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_getsockopt_sotype,
|
|
|
|
(message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_getsockopt_peercred,
|
|
|
|
(message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_getsockopt_sndbuf,
|
|
|
|
(message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_setsockopt_sndbuf,
|
|
|
|
(message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_getsockopt_rcvbuf,
|
|
|
|
(message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_setsockopt_rcvbuf,
|
|
|
|
(message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_sendto, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int do_recvfrom, (message *dev_m_in, message *dev_m_out) );
|
|
|
|
_PROTOTYPE( int perform_connection,
|
|
|
|
(message *dev_m_in, message *dev_m_out,
|
|
|
|
struct sockaddr_un *addr, int minorx,
|
|
|
|
int minory) );
|
|
|
|
|
2010-05-28 11:39:18 +02:00
|
|
|
#endif
|