Sign in
android
/
toolchain
/
rustc
/
87880447cc5437c45a3562596a9766d9797e7318
/
.
/
vendor
/
rustix-0.38.2
/
src
/
backend
/
libc
/
pid
/
syscalls.rs
blob: d0ed4bc9f0c03acb2ade7a196e000861940cef68 [
file
] [
log
] [
blame
]
//! libc syscalls for PIDs
use
crate
::
backend
::
c
;
use
crate
::
pid
::
Pid
;
#[
cfg
(
not
(
target_os
=
"wasi"
))]
#[
inline
]
#[
must_use
]
pub
(
crate
)
fn
getpid
()
->
Pid
{
unsafe
{
let
pid
=
c
::
getpid
();
Pid
::
from_raw_unchecked
(
pid
)
}
}