Home
last modified time | relevance | path

Searched refs:from_raw_fd (Results 1 - 10 of 10) sorted by relevance

/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/
H A Dsocket.rs31 let net = unsafe { net::UnixListener::from_raw_fd(socket) };
45 let net = unsafe { net::UnixStream::from_raw_fd(socket) };
54 let net = unsafe { net::UnixDatagram::from_raw_fd(socket) };
91 Ok(unsafe { (T::from_raw_fd(fds[0]), T::from_raw_fd(fds[1])) }) in pair()
H A Dlistener.rs75 .map(|socket| unsafe { net::UnixStream::from_raw_fd(socket) })? in accept()
86 let socket = unsafe { net::UnixStream::from_raw_fd(socket) }; in accept()
197 unsafe fn from_raw_fd(fd: RawFd) -> UnixListener { in from_raw_fd() functions
198 UnixListener::from_std(FromRawFd::from_raw_fd(fd)) in from_raw_fd()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/udp/
H A Dsocket.rs46 inner: unsafe { net::UdpSocket::from_raw_fd(self.socket) },
63 unsafe fn from_raw_fd(fd: RawFd) -> UdpSock { in from_raw_fd() functions
/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()
67 Ok(socket) => unsafe { net::TcpStream::from_raw_fd(socket) }, in accept()
81 unsafe { net::TcpStream::from_raw_fd(socket) } in accept()
H A Dsocket.rs80 inner: unsafe { net::TcpStream::from_raw_fd(self.socket) },
97 unsafe fn from_raw_fd(fd: RawFd) -> TcpSocket { in from_raw_fd() functions
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/
H A Dwaker.rs53 let file = unsafe { File::from_raw_fd(fd) };
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/
H A Dpipe.rs29 let fd = unsafe { File::from_raw_fd(value.into_raw_fd()) }; in from()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/
H A Dsys.rs41 let fd = unsafe { OwnedFd::from_raw_fd(raw) };
/commonlibrary/rust/ylong_runtime/ylong_io/tests/
H A Duds_test.rs162 let receiver = unsafe { UnixDatagram::from_raw_fd(fd) }; in sdv_uds_send_recv()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/
H A Dasync_file.rs444 unsafe fn from_raw_fd(fd: RawFd) -> Self { in from_raw_fd() functions
445 SyncFile::from_raw_fd(fd).into() in from_raw_fd()
972 let file2 = unsafe { File::from_raw_fd(fd) }; in ut_file_as_raw_fd()

Completed in 5 milliseconds