/* SPDX-License-Identifier: LicenseRef-Starship-1.0 * Copyright (c) 2023-2026 Robert A. James */ /* Freestanding time.h shim — no POSIX time in kernel builds. */ #ifndef FREESTANDING_TIME_H #define FREESTANDING_TIME_H #include #include "sys/time.h" /* provides time_t, suseconds_t, struct timeval */ struct timespec { time_t tv_sec; long tv_nsec; }; int nanosleep(const struct timespec *req, struct timespec *rem); #endif /* FREESTANDING_TIME_H */