kernel: restore setting KTS_NONE
[minix.git] / servers / pfs / proto.h
blob4176f2874e71328232225742548b2037bd26e8c1
1 #ifndef __PFS_PROTO_H__
2 #define __PFS_PROTO_H__
4 /* Function prototypes. */
6 /* Structs used in prototypes must be declared as such first. */
7 struct buf;
8 struct inode;
9 struct sockaddr_un;
10 struct ancillary;
12 /* buffer.c */
13 struct buf *get_block(dev_t dev, ino_t inum);
14 void put_block(dev_t dev, ino_t inum);
16 /* cache.c */
17 void buf_pool(void);
19 /* inode.c */
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);
31 /* link.c */
32 int fs_ftrunc(message *fs_m_in, message *fs_m_out);
33 int truncate_inode(struct inode *rip, off_t newsize);
36 /* main.c */
37 void reply(endpoint_t who, message *m_out);
39 /* misc.c */
40 int fs_sync(message *fs_m_in, message *fs_m_out);
42 /* mount.c */
43 int fs_unmount(message *fs_m_in, message *fs_m_out);
45 /* open.c */
46 int fs_newnode(message *fs_m_in, message *fs_m_out);
48 /* read.c */
49 int fs_readwrite(message *fs_m_in, message *fs_m_out);
51 /* utility.c */
52 time_t clock_time(void);
53 int no_sys(message *pfs_m_in, message *pfs_m_out);
55 /* stadir.c */
56 int fs_stat(message *fs_m_in, message *fs_m_out);
58 /* super.c */
59 bit_t alloc_bit(void);
60 void free_bit(bit_t bit_returned);
62 /* dev_uds.c */
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);
72 /* uds.c */
73 void uds_init(void);
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);
98 #endif