]>
git.proxmox.com Git - wasi-libc.git/blob - libc-bottom-half/cloudlibc/src/libc/unistd/sleep.c
1 // Copyright (c) 2015 Nuxi, https://nuxi.nl/
3 // SPDX-License-Identifier: BSD-2-Clause
8 unsigned int sleep(unsigned int seconds
) {
9 struct timespec ts
= {.tv_sec
= seconds
, .tv_nsec
= 0};
10 if (clock_nanosleep(CLOCK_REALTIME
, 0, &ts
, NULL
) != 0)