Lines Matching refs:unwrap_or
87 range: 0..highest.map(|h| h as usize + 1).unwrap_or(FD_SETSIZE), in fds()
182 .map(|set| set.highest().unwrap_or(-1)) in select()
184 .unwrap_or(-1) + 1 in select()
187 let readfds = readfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in select()
188 let writefds = writefds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in select()
189 let errorfds = errorfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in select()
191 .unwrap_or(null_mut()); in select()
253 .map(|set| set.highest().unwrap_or(-1)) in pselect()
255 .unwrap_or(-1) + 1 in pselect()
258 let readfds = readfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in pselect()
259 let writefds = writefds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in pselect()
260 let errorfds = errorfds.map(|set| set as *mut _ as *mut libc::fd_set).unwrap_or(null_mut()); in pselect()
261 let timeout = timeout.map(|ts| ts.as_ref() as *const libc::timespec).unwrap_or(null()); in pselect()
262 let sigmask = sigmask.map(|sm| sm.as_ref() as *const libc::sigset_t).unwrap_or(null()); in pselect()