18 #pragma GCC system_header
19 #include_next <unistd.h>
21 #ifndef _COBALT_UNISTD_H
22 #define _COBALT_UNISTD_H
24 #include <cobalt/wrappers.h>
30 COBALT_DECL(ssize_t, read(
int fd,
void *buf,
size_t nbyte));
32 COBALT_DECL(ssize_t, write(
int fd,
const void *buf,
size_t nbyte));
34 COBALT_DECL(
int, close(
int fildes));
36 COBALT_DECL(
unsigned int, sleep(
unsigned int seconds));
38 COBALT_DECL(
int, usleep(useconds_t usec));