getuid.ha (461B)
1 // SPDX-License-Identifier: MPL-2.0 2 // (c) Hare authors <https://harelang.org> 3 4 use rt; 5 6 // Returns the current process user ID. 7 export fn getuid() uint = rt::getuid(): uint; 8 9 // Returns the current process effective user ID. 10 export fn geteuid() uint = rt::geteuid(): uint; 11 12 // Returns the current process group ID. 13 export fn getgid() uint = rt::getgid(): uint; 14 15 // Returns the current process effective group ID. 16 export fn getegid() uint = rt::getegid(): uint;