25 lines
553 B
C
25 lines
553 B
C
#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;
|
|
|
|
extern int open(const char *pathname, int flags, ...);
|
|
extern int openat(int dirfd, const char *pathname, int flags, ...);
|
|
|
|
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);
|
|
|
|
extern off_t lseek(int fd, off_t off, int whence);
|
|
|
|
extern pid_t getpid(void);
|
|
extern pid_t gettid(void);
|
|
|
|
#endif
|