2021-12-24 11:13:08 +00:00
|
|
|
#ifndef SYS_LINUX_UNISTD_H_
|
|
|
|
|
#define SYS_LINUX_UNISTD_H_
|
|
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
#include <mio/types.h>
|
|
|
|
|
|
|
|
|
|
struct stat;
|
|
|
|
|
struct pollfd;
|
|
|
|
|
|
2022-01-06 11:37:23 +00:00
|
|
|
extern int open(const char *pathname, int flags, ...);
|
|
|
|
|
extern int openat(int dirfd, const char *pathname, int flags, ...);
|
|
|
|
|
|
2021-12-24 11:13:08 +00:00
|
|
|
extern ssize_t read(int fd, void *buf, size_t count);
|
|
|
|
|
extern ssize_t write(int fd, const void *buf, size_t count);
|
|
|
|
|
extern int close(int fd);
|
|
|
|
|
|
2022-01-08 13:19:58 +00:00
|
|
|
extern off_t lseek(int fd, off_t off, int whence);
|
|
|
|
|
|
2022-05-26 11:48:14 +01:00
|
|
|
extern pid_t getpid(void);
|
|
|
|
|
extern pid_t gettid(void);
|
|
|
|
|
|
2021-12-24 11:13:08 +00:00
|
|
|
#endif
|