meta: move photon/libc to root
This commit is contained in:
24
libc/sys/horizon/unistd.h
Normal file
24
libc/sys/horizon/unistd.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user