Home
last modified time | relevance | path

Searched refs:fd0 (Results 1 - 5 of 5) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/dup2/
H A Ddup203.c23 static int fd0 = -1, fd1 = -1; variable
42 fd0 = SAFE_CREAT(filename0, 0666); in run()
43 SAFE_WRITE(SAFE_WRITE_ALL, fd0, filename0, strlen(filename0)); in run()
44 SAFE_CLOSE(fd0); in run()
49 fd0 = SAFE_OPEN(filename0, O_RDONLY); in run()
50 SAFE_FCNTL(fd0, F_SETFD, 1); in run()
58 TEST(dup2(fd0, fd1)); in run()
83 SAFE_CLOSE(fd0); in run()
100 close(fd0); in cleanup()
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
H A Dsyscalls.rs106 let [fd0, fd1] = result.assume_init();
107 Ok((fd0, fd1))
122 let [fd0, fd1] = result.assume_init();
123 Ok((fd0, fd1))
/third_party/rust/crates/rustix/src/backend/libc/net/
H A Dsyscalls.rs387 let [fd0, fd1] = fds.assume_init();
388 Ok((fd0, fd1))
/third_party/rust/crates/nix/test/
H A Dtest_unistd.rs721 let (fd0, fd1) = pipe().unwrap(); in test_pipe()
723 stat::fstat(fd0).unwrap().st_mode as mode_t, in test_pipe()
751 let (fd0, fd1) = pipe2(OFlag::O_CLOEXEC).unwrap(); in test_pipe2()
752 let f0 = FdFlag::from_bits_truncate(fcntl(fd0, FcntlArg::F_GETFD).unwrap()); in test_pipe2()
/third_party/python/Lib/test/
H A Dtest_socket.py3584 fd0, fd1 = self.newFDs(2)
3588 array.array("i", [fd0])),
3611 fd0, fd1 = self.newFDs(2)
3615 array.array("i", [fd0])),
3686 fd0, fd1 = self.newFDs(2)
3691 array.array("i", [fd0, self.badfd]).tobytes()[:-1]),

Completed in 13 milliseconds