Home
last modified time | relevance | path

Searched refs:as_raw_fd (Results 1 - 25 of 25) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/
H A Dsys.rs58 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 Dpipe.rs55 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 Dchild.rs107 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 Dstdio_cargo_test.rs32 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 Dprocess.rs226 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 Duds_test.rs121 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 Duds_cargo_test.rs38 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 Dlistener.rs70 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 Ddatagram.rs269 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 Dsocket.rs63 match syscall!(bind(socket.as_raw_fd(), socket_addr, addr_length)) {
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/
H A Dlistener.rs40 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 Dsocket.rs91 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dstderr.rs57 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 Dstdout.rs57 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 Dstdin.rs102 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 Dchild.rs420 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 Drust_utils_file_test.rs56 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 Ddatagram.rs441 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 Dlistener.rs118 fn as_raw_fd(&self) -> RawFd { in fmt() functions
125 unsafe { BorrowedFd::borrow_raw(self.as_raw_fd()) } in as_fd()
H A Dstream.rs381 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 Dasync_file.rs432 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 Dsocket.rs57 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
H A Dudp_socket.rs771 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 Dlistener.rs249 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/
H A Dudp.rs1430 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions
1437 fn as_raw_fd(&self) -> RawFd { in as_raw_fd() functions

Completed in 13 milliseconds