Lines Matching refs:FileDescriptorVec
653 pub struct FileDescriptorVec { struct
657 impl Default for FileDescriptorVec { implementation
662 impl FileDescriptorVec { implementation
666 pub fn new() -> FileDescriptorVec { in new()
667 let mut data = Vec::with_capacity(FileDescriptorVec::PROCESS_MAX_FD); in new()
668 data.resize(FileDescriptorVec::PROCESS_MAX_FD, None); in new()
671 return FileDescriptorVec { fds: data }; in new()
677 pub fn clone(&self) -> FileDescriptorVec { in clone() argument
678 let mut res = FileDescriptorVec::new(); in clone()
679 for i in 0..FileDescriptorVec::PROCESS_MAX_FD { in clone()
707 return !(fd < 0 || fd as usize > FileDescriptorVec::PROCESS_MAX_FD); in validate_fd()
732 for i in 0..FileDescriptorVec::PROCESS_MAX_FD { in alloc_fd()
748 if !FileDescriptorVec::validate_fd(fd) { in get_file_by_fd()
773 for i in 0..FileDescriptorVec::PROCESS_MAX_FD { in close_on_exec()
793 fds: &'a FileDescriptorVec,
798 pub fn new(fds: &'a FileDescriptorVec) -> Self { in new()
807 while self.index < FileDescriptorVec::PROCESS_MAX_FD { in next()