svc_fdset.h revision 1.1.10.2 1 1.1.10.2 yamt /* $NetBSD: svc_fdset.h,v 1.1.10.2 2014/05/22 11:36:53 yamt Exp $ */
2 1.1.10.2 yamt
3 1.1.10.2 yamt #ifndef _LIBC
4 1.1.10.2 yamt
5 1.1.10.2 yamt void init_fdsets(void);
6 1.1.10.2 yamt void alloc_fdset(void);
7 1.1.10.2 yamt fd_set *get_fdset(void);
8 1.1.10.2 yamt int *get_fdsetmax(void);
9 1.1.10.2 yamt
10 1.1.10.2 yamt # ifdef RUMP_RPC
11 1.1.10.2 yamt # include <rump/rump.h>
12 1.1.10.2 yamt # include <rump/rump_syscalls.h>
13 1.1.10.2 yamt # undef close
14 1.1.10.2 yamt # define close(a) rump_sys_close(a)
15 1.1.10.2 yamt # undef fcntl
16 1.1.10.2 yamt # define fcntl(a, b, c) rump_sys_fcntl(a, b, c)
17 1.1.10.2 yamt # undef read
18 1.1.10.2 yamt # define read(a, b, c) rump_sys_read(a, b, c)
19 1.1.10.2 yamt # undef write
20 1.1.10.2 yamt # define write(a, b, c) rump_sys_write(a, b, c)
21 1.1.10.2 yamt # undef pollts
22 1.1.10.2 yamt # define pollts(a, b, c, d) rump_sys_pollts(a, b, c, d)
23 1.1.10.2 yamt # undef select
24 1.1.10.2 yamt # define select(a, b, c, d, e) rump_sys_select(a, b, c, d, e)
25 1.1.10.2 yamt # endif
26 1.1.10.2 yamt
27 1.1.10.2 yamt #else
28 1.1.10.2 yamt # define get_fdset() (&svc_fdset)
29 1.1.10.2 yamt # define get_fdsetmax() (&svc_maxfd)
30 1.1.10.2 yamt #endif
31