Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
51
fn 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.
63
pub struct AtomicClient {
Callers
1
socket_path
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected