mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 16:33:24 +00:00
10 lines
227 B
Rust
10 lines
227 B
Rust
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
use super::SyscallReturn;
|
|
use crate::prelude::*;
|
|
|
|
pub fn sys_gettid(ctx: &Context) -> Result<SyscallReturn> {
|
|
let tid = ctx.posix_thread.tid();
|
|
Ok(SyscallReturn::Return(tid as _))
|
|
}
|