MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / domainname

Method domainname

src/system.rs:96–98  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

94 #[cfg(linux_kernel)]
95 #[inline]
96 pub fn domainname(&self) -> &CStr {
97 Self::to_cstr(self.0.domainname.as_ptr().cast())
98 }
99
100 #[inline]
101 fn to_cstr<'a>(ptr: *const u8) -> &'a CStr {

Callers

nothing calls this directly

Calls 1

as_ptrMethod · 0.45

Tested by

no test coverage detected