1 #ifndef __PFS_PROTO_H__
2 #define __PFS_PROTO_H__
4 /* Function prototypes. */
6 /* Structs used in prototypes must be declared as such first. */
13 struct buf
*get_block(dev_t dev
, ino_t inum
);
14 void put_block(dev_t dev
, ino_t inum
);
20 struct inode
*alloc_inode(dev_t dev
, mode_t mode
);
21 void dup_inode(struct inode
*ip
);
22 struct inode
*find_inode(ino_t numb
);
23 void free_inode(struct inode
*rip
);
24 int fs_putnode(message
*fs_m_in
, message
*fs_m_out
);
25 void init_inode_cache(void);
26 struct inode
*get_inode(dev_t dev
, ino_t numb
);
27 void put_inode(struct inode
*rip
);
28 void update_times(struct inode
*rip
);
29 void wipe_inode(struct inode
*rip
);
32 int fs_ftrunc(message
*fs_m_in
, message
*fs_m_out
);
33 int truncate_inode(struct inode
*rip
, off_t newsize
);
37 void reply(endpoint_t who
, message
*m_out
);
40 int fs_sync(message
*fs_m_in
, message
*fs_m_out
);
43 int fs_unmount(message
*fs_m_in
, message
*fs_m_out
);
46 int fs_newnode(message
*fs_m_in
, message
*fs_m_out
);
49 int fs_readwrite(message
*fs_m_in
, message
*fs_m_out
);
52 time_t clock_time(void);
53 int no_sys(message
*pfs_m_in
, message
*pfs_m_out
);
56 int fs_stat(message
*fs_m_in
, message
*fs_m_out
);
59 bit_t
alloc_bit(void);
60 void free_bit(bit_t bit_returned
);
63 int uds_open(message
*dev_m_in
, message
*dev_m_out
);
64 int uds_close(message
*dev_m_in
, message
*dev_m_out
);
65 int uds_read(message
*dev_m_in
, message
*dev_m_out
);
66 int uds_write(message
*dev_m_in
, message
*dev_m_out
);
67 int uds_ioctl(message
*dev_m_in
, message
*dev_m_out
);
68 int uds_select(message
*dev_m_in
, message
*dev_m_out
);
69 int uds_unsuspend(endpoint_t m_source
, int minor
);
70 int uds_cancel(message
*dev_m_in
, message
*dev_m_out
);
74 int do_accept(message
*dev_m_in
, message
*dev_m_out
);
75 int do_connect(message
*dev_m_in
, message
*dev_m_out
);
76 int do_listen(message
*dev_m_in
, message
*dev_m_out
);
77 int do_socket(message
*dev_m_in
, message
*dev_m_out
);
78 int do_bind(message
*dev_m_in
, message
*dev_m_out
);
79 int do_getsockname(message
*dev_m_in
, message
*dev_m_out
);
80 int do_getpeername(message
*dev_m_in
, message
*dev_m_out
);
81 int do_shutdown(message
*dev_m_in
, message
*dev_m_out
);
82 int do_socketpair(message
*dev_m_in
, message
*dev_m_out
);
83 int do_socketpair_old(message
*dev_m_in
, message
*dev_m_out
);
84 int do_getsockopt_sotype(message
*dev_m_in
, message
*dev_m_out
);
85 int do_getsockopt_peercred(message
*dev_m_in
, message
*dev_m_out
);
86 int do_getsockopt_peercred_old(message
*dev_m_in
, message
*dev_m_out
);
87 int do_getsockopt_sndbuf(message
*dev_m_in
, message
*dev_m_out
);
88 int do_setsockopt_sndbuf(message
*dev_m_in
, message
*dev_m_out
);
89 int do_getsockopt_rcvbuf(message
*dev_m_in
, message
*dev_m_out
);
90 int do_setsockopt_rcvbuf(message
*dev_m_in
, message
*dev_m_out
);
91 int do_sendto(message
*dev_m_in
, message
*dev_m_out
);
92 int do_recvfrom(message
*dev_m_in
, message
*dev_m_out
);
93 int do_sendmsg(message
*dev_m_in
, message
*dev_m_out
);
94 int do_recvmsg(message
*dev_m_in
, message
*dev_m_out
);
95 int perform_connection(message
*dev_m_in
, message
*dev_m_out
, struct
96 sockaddr_un
*addr
, int minorx
, int minory
);
97 int clear_fds(int minor
, struct ancillary
*data
);