MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / pause

Function pause

src/backend/linux_raw/event/syscalls.rs:342–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340
341#[inline]
342pub(crate) fn pause() {
343 unsafe {
344 #[cfg(any(target_arch = "aarch64", target_arch = "riscv64"))]
345 let error = ret_error(syscall_readonly!(
346 __NR_ppoll,
347 zero(),
348 zero(),
349 zero(),
350 zero()
351 ));
352
353 #[cfg(not(any(target_arch = "aarch64", target_arch = "riscv64")))]
354 let error = ret_error(syscall_readonly!(__NR_pause));
355
356 debug_assert_eq!(error, io::Errno::INTR);
357 }
358}

Callers

nothing calls this directly

Calls 1

ret_errorFunction · 0.85

Tested by

no test coverage detected