1 2 3 4 5 6 7 8 9 10
// Copyright 2023 The rust-ggstd authors. All rights reserved. use crate::libc_; // get_uid returns the numeric user id of the caller. // // On Windows, it returns -1. pub fn get_uid() -> isize { unsafe { libc_::getuid() as isize } }