We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 181885b commit c3d3344Copy full SHA for c3d3344
src/uucore/src/lib/features/process.rs
@@ -23,6 +23,12 @@ pub fn geteuid() -> uid_t {
23
unsafe { libc::geteuid() }
24
}
25
26
+/// `getpgrp()` returns the process group ID of the calling process.
27
+/// It is a trivial wrapper over libc::getpgrp to "hide" the unsafe
28
+pub fn getpgrp() -> pid_t {
29
+ unsafe { libc::getpgrp() }
30
+}
31
+
32
/// `getegid()` returns the effective group ID of the calling process.
33
pub fn getegid() -> gid_t {
34
unsafe { libc::getegid() }
0 commit comments