Home
last modified time | relevance | path

Searched refs:zeroed (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/
H A Dsocket_addr.rs38 let mut in_addr_0 = mem::zeroed::<IN_ADDR_0>(); in socket_addr_trans()
58 let mut u = mem::zeroed::<IN6_ADDR_0>(); in socket_addr_trans()
64 let mut si0 = mem::zeroed::<SOCKADDR_IN6_0>(); in socket_addr_trans()
H A Dafd.rs16 use std::mem::{size_of, zeroed};
245 pub(crate) fn zeroed() -> AfdPollInfo { in zeroed() method
246 unsafe { zeroed() } in zeroed()
H A Dio_status_block.rs24 pub(crate) fn zeroed() -> Self { in zeroed() method
H A Dselector.rs348 iosb: IoStatusBlock::zeroed(), in new()
349 poll_info: AfdPollInfo::zeroed(), in new()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_signal/src/
H A Dunix.rs25 let mut old_act: libc::sigaction = unsafe { mem::zeroed() }; in get_old_action()
40 let mut handler: libc::sigaction = unsafe { mem::zeroed() }; in replace_sigaction()
41 let mut old_act: libc::sigaction = unsafe { mem::zeroed() }; in replace_sigaction()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/core_affinity/
H A Dlinux.rs17 use std::mem::{size_of, zeroed};
45 unsafe { zeroed::<cpu_set_t>() } in new_cpu_set()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/util/num_cpus/
H A Dwindows.rs39 let mut sysinfo: SYSTEM_INFO = std::mem::zeroed(); in get_cpu_num_online()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/
H A Dsocket_addr.rs28 std::mem::MaybeUninit::<libc::sockaddr_un>::zeroed(); in socket_addr_trans_un()
H A Dlistener.rs62 let mut addr = unsafe { MaybeUninit::<libc::sockaddr_un>::zeroed().assume_init() }; in accept()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dasync_pool.rs22 use std::mem::{size_of, zeroed};
96 unsafe { zeroed::<cpu_set_t>() } in new_cpu_set()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_signal/tests/
H A Dsignal.rs147 let mut new_act: libc::sigaction = unsafe { std::mem::zeroed() }; in sdv_signal_register_with_old()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dread_buf.rs315 let mut uninit_buf: [MaybeUninit<u8>; 16] = unsafe { MaybeUninit::zeroed().assume_init() }; in ut_test_readbuf_new()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/
H A Dkqueue.rs212 ..unsafe { mem::zeroed() } in kevent_new()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/mpsc/unbounded/
H A Dqueue.rs47 data: unsafe { MaybeUninit::zeroed().assume_init() }, in new()