Lines Matching refs:fds
378 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in dup()
382 if let Some(file) = &fds.fds[oldfd as usize] { in dup()
413 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in dup2()
422 if let Some(file) = &fds.fds[oldfd as usize] { in dup2()
423 if fds.fds[newfd as usize].is_some() { in dup2()
467 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
468 if fds.fds[i as usize].is_none() { in fcntl()
478 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
480 if let Some(file) = &fds.fds[fd as usize] { in fcntl()
492 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
494 if let Some(file) = &mut fds.fds[fd as usize] { in fcntl()
511 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
513 if let Some(file) = &fds.fds[fd as usize] { in fcntl()
523 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in fcntl()
525 if let Some(file) = &mut fds.fds[fd as usize] { in fcntl()
563 if let Some(fds) = FileDescriptorVec::from_pcb(current_pcb()) { in ftruncate()
565 if let Some(file) = &mut fds.fds[fd as usize] { in ftruncate()