mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
9 lines
205 B
Rust
9 lines
205 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use super::SyscallReturn;
|
|
use crate::prelude::*;
|
|
|
|
pub fn sys_getpgrp(ctx: &Context) -> Result<SyscallReturn> {
|
|
Ok(SyscallReturn::Return(ctx.process.pgid() as _))
|
|
}
|