mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-06-15 00:29:29 +00:00
15 lines
269 B
C
15 lines
269 B
C
#include <stddef.h>
|
|
#include <errno.h>
|
|
#include <wasi/core.h>
|
|
#include <unistd.h>
|
|
|
|
int pause(void) {
|
|
size_t n;
|
|
__wasi_errno_t error = __wasi_poll_oneoff(0, 0, 0, &n);
|
|
if (error != 0) {
|
|
errno = error;
|
|
return -1;
|
|
}
|
|
__builtin_trap();
|
|
}
|