ggstd 0.1.0

Partial implementation of Go standard library
Documentation
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 }
}