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