meta: move photon/libc to root

This commit is contained in:
2026-02-08 20:45:25 +00:00
parent f00e74260d
commit 345a37962e
140 changed files with 0 additions and 0 deletions

24
libc/sys/horizon/unistd.h Normal file
View 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