mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
11 lines
252 B
Rust
11 lines
252 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use super::SyscallReturn;
|
|
use crate::prelude::*;
|
|
|
|
pub fn sys_getgid(ctx: &Context) -> Result<SyscallReturn> {
|
|
let gid = ctx.posix_thread.credentials().rgid();
|
|
|
|
Ok(SyscallReturn::Return(gid.as_u32() as _))
|
|
}
|