MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / nix_uid

Function nix_uid

atomic-client/src/lib.rs:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51fn nix_uid() -> u32 {
52 #[cfg(unix)]
53 {
54 unsafe { libc::geteuid() }
55 }
56 #[cfg(not(unix))]
57 {
58 0
59 }
60}
61
62/// A connected client over the daemon socket.
63pub struct AtomicClient {

Callers 1

socket_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected