()
| 301 | |
| 302 | #[cfg(all(unix, target_os = "linux"))] |
| 303 | fn current_uid() -> u32 { |
| 304 | use std::os::unix::fs::MetadataExt; |
| 305 | |
| 306 | std::fs::metadata("/proc/self").map_or(0, |metadata| metadata.uid()) |
| 307 | } |
| 308 | |
| 309 | #[cfg(not(unix))] |
| 310 | fn is_unix_socket(path: &Path) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected