usr.sbin/amd/amd/nfs_start.c
/*
 * Determine whether anything is left in
 * the RPC input queue.
 */
Determine whether anything is left in
the RPC input queue.
Determine whether anything is left in the RPC input queue .
static int rpc_pending_now()
{
	struct timeval tvv;
	int nsel;
#ifdef FD_SET
	fd_set readfds;
	FD_ZERO(&readfds);
	FD_SET(fwd_sock, &readfds);
#else
	int readfds = (1 << fwd_sock);
#endif 
	tvv.tv_sec = tvv.tv_usec = 0;
	nsel = select(max_fds+1, &readfds, (int *) 0, (int *) 0, &tvv);
	if (nsel < 1)
		return(0);
#ifdef FD_SET
	if (FD_ISSET(fwd_sock, &readfds))
		return(1);
#else
	if (readfds & (1 << fwd_sock))
		return(1);
#endif
	return(0);
}
static int rpc_pending_now ( ) { struct timeval tvv ; int nsel ; #ifdef FD_SET fd_set readfds ; FD_ZERO ( & readfds ) ; FD_SET ( fwd_sock , & readfds ) ; #else int readfds = ( 1 << fwd_sock ) ; #endif tvv . tv_sec = tvv . tv_usec = 0 ; nsel = select ( max_fds + 1 , & readfds , ( int * ) 0 , ( int * ) 0 , & tvv ) ; if ( nsel < 1 ) return ( 0 ) ; #ifdef FD_SET if ( FD_ISSET ( fwd_sock , & readfds ) ) return ( 1 ) ; #else if ( readfds & ( 1 << fwd_sock ) ) return ( 1 ) ; #endif return ( 0 ) ; }
Determine whether anything is left in
 the RPC input queue.
Determine whether anything is left in the RPC input queue .
/* FD_SET */