/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/ |
H A D | sys.rs | 58 let raw = self.0.as_raw_fd(); 68 self.0.as_raw_fd(), 95 let mut flags = syscall!(fcntl(self.0.as_raw_fd(), libc::F_GETFL))?; 97 syscall!(fcntl(self.0.as_raw_fd(), libc::F_SETFL, flags)).map(|_| ()) 108 fn as_raw_fd(&self) -> RawFd { in as_fd() functions 109 self.0.as_raw_fd() in as_fd() 124 self.0.as_raw_fd(), in read() 135 self.0.as_raw_fd(), in write() 167 self.0.as_raw_fd() in get_fd() 180 let fd = self.0.as_raw_fd(); 202 fn as_raw_fd(&self) -> RawFd { as_fd() functions [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/ |
H A D | pipe.rs | 55 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 56 self.fd.as_raw_fd() in as_raw_fd() 62 unsafe { BorrowedFd::borrow_raw(self.fd.as_raw_fd()) } in as_fd() 73 SourceFd(&self.as_raw_fd()).register(selector, token, interests) in register() 77 SourceFd(&self.as_raw_fd()).deregister(selector) in deregister() 81 self.fd.as_raw_fd() in get_fd() 114 assert!(pipe.get_fd().as_raw_fd() >= 0); in ut_process_pipe_test() 115 assert!(pipe.as_fd().as_raw_fd() >= 0); in ut_process_pipe_test() 116 assert!(pipe.as_raw_fd() >= 0); in ut_process_pipe_test()
|
H A D | child.rs | 107 let fd = fd.as_raw_fd(); in set_nonblock() 180 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 181 AsRawFd::as_raw_fd(&*(self.inner)) in as_raw_fd() 187 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/ |
H A D | stdio_cargo_test.rs | 32 assert!(stdout.as_fd().as_raw_fd() >= 0); in sdv_stdio_write() 34 assert!(stdout.as_raw_fd() >= 0); in sdv_stdio_write() 44 assert!(stderr.as_fd().as_raw_fd() >= 0); in sdv_stdio_write() 46 assert!(stderr.as_raw_fd() >= 0); in sdv_stdio_write()
|
H A D | process.rs | 226 assert!(child_stdin.as_fd().as_raw_fd() >= 0); in sdv_process_stdio_test() 227 assert!(child_stdin.as_raw_fd() >= 0); in sdv_process_stdio_test() 231 assert!(child_stdout.as_fd().as_raw_fd() >= 0); in sdv_process_stdio_test() 232 assert!(child_stdout.as_raw_fd() >= 0); in sdv_process_stdio_test() 236 assert!(child_stderr.as_fd().as_raw_fd() >= 0); in sdv_process_stdio_test() 237 assert!(child_stderr.as_raw_fd() >= 0); in sdv_process_stdio_test()
|
H A D | uds_test.rs | 121 assert!(stream.as_raw_fd() >= 0); in sdv_uds_stream_baisc_test() 143 assert!(datagram.as_raw_fd() >= 0); in sdv_uds_datagram_baisc_test()
|
H A D | uds_cargo_test.rs | 38 assert!(listener.as_fd().as_raw_fd() >= 0); in sdv_uds_listener_baisc_test() 39 assert!(listener.as_raw_fd() >= 0); in sdv_uds_listener_baisc_test()
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/ |
H A D | listener.rs | 70 self.inner.as_raw_fd(), in accept() 80 self.inner.as_raw_fd(), in accept() 172 selector.register(self.inner.as_raw_fd(), token, interests) in register() 176 selector.deregister(self.inner.as_raw_fd()) in deregister() 180 self.inner.as_raw_fd() in get_fd()
|
H A D | datagram.rs | 269 selector.register(self.inner.as_raw_fd(), token, interests) in register() 273 selector.deregister(self.inner.as_raw_fd()) in deregister() 277 self.inner.as_raw_fd() in get_fd()
|
H A D | socket.rs | 63 match syscall!(bind(socket.as_raw_fd(), socket_addr, addr_length)) {
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/ |
H A D | listener.rs | 40 inner: unsafe { net::TcpListener::from_raw_fd(socket.as_raw_fd()) }, in bind() 62 self.inner.as_raw_fd(), in accept() 75 self.inner.as_raw_fd(), in accept() 190 self.inner.as_raw_fd() in get_fd()
|
H A D | socket.rs | 91 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/ |
H A D | stderr.rs | 57 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 58 io::stdout().as_raw_fd() in as_raw_fd() 65 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd()
|
H A D | stdout.rs | 57 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 58 io::stdout().as_raw_fd() in as_raw_fd() 65 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd()
|
H A D | stdin.rs | 102 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 103 io::stdin().as_raw_fd() in as_raw_fd() 110 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/ |
H A D | child.rs | 420 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 421 self.inner.as_raw_fd() in as_raw_fd() 521 assert!(child_stdin.as_fd().as_raw_fd() >= 0); in ut_process_stdio_test() 522 assert!(child_stdin.as_raw_fd() >= 0); in ut_process_stdio_test() 526 assert!(child_stdout.as_fd().as_raw_fd() >= 0); in ut_process_stdio_test() 527 assert!(child_stdout.as_raw_fd() >= 0); in ut_process_stdio_test() 531 assert!(child_stderr.as_fd().as_raw_fd() >= 0); in ut_process_stdio_test() 532 assert!(child_stderr.as_raw_fd() >= 0); in ut_process_stdio_test()
|
/commonlibrary/c_utils/base/test/unittest/rust/ |
H A D | rust_utils_file_test.rs | 56 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_file_001() 132 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_002() 145 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_003() 158 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_004() 171 let fd: RawFd = file.as_raw_fd(); in test_load_string_from_fd_005() 186 fd = file.as_raw_fd(); in test_load_string_from_fd_006() 290 let mut fd: RawFd = file.as_raw_fd(); in test_save_string_to_fd_002() 296 fd = file.as_raw_fd(); in test_save_string_to_fd_002() 308 let mut fd: RawFd = file.as_raw_fd(); in test_save_string_to_fd_003() 314 fd = file.as_raw_fd(); in test_save_string_to_fd_003() [all...] |
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/unix/ |
H A D | datagram.rs | 441 fn as_raw_fd(&self) -> RawFd { in fmt() functions 448 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd() 475 assert!(datagram.as_fd().as_raw_fd() >= 0); in ut_uds_datagram_baisc_test() 476 assert!(datagram.as_raw_fd() >= 0); in ut_uds_datagram_baisc_test()
|
H A D | listener.rs | 118 fn as_raw_fd(&self) -> RawFd { in fmt() functions 125 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd()
|
H A D | stream.rs | 381 fn as_raw_fd(&self) -> RawFd { in fmt() functions 388 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd() 416 assert!(stream.as_fd().as_raw_fd() >= 0); in ut_uds_stream_baisc_test() 417 assert!(stream.as_raw_fd() >= 0); in ut_uds_stream_baisc_test()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/ |
H A D | async_file.rs | 432 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 433 self.file.as_raw_fd() in as_raw_fd() 439 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd() 946 /// UT for `as_raw_fd` 965 let fd = std.as_raw_fd(); in ut_file_as_raw_fd() 967 let fd2 = file.as_raw_fd(); in ut_file_as_raw_fd() 969 let fd3 = file.as_fd().as_raw_fd(); in ut_file_as_raw_fd() 973 let fd4 = file2.as_raw_fd(); in ut_file_as_raw_fd()
|
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/udp/ |
H A D | socket.rs | 57 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
|
H A D | udp_socket.rs | 771 self.inner.as_raw_fd() in get_fd() 790 self.inner.as_raw_fd() in get_fd()
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/ |
H A D | listener.rs | 249 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/ |
H A D | udp.rs | 1430 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions 1437 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
|