compiled newlib, need to hook up the system calls

This commit is contained in:
2026-06-28 17:58:58 -05:00
parent 43bc0df81a
commit 97357f3170
337 changed files with 47955 additions and 114 deletions

View File

@@ -0,0 +1,28 @@
#ifndef _UNISTD_H
#define _UNISTD_H
#include <sys/types.h>
/* Standard file descriptors used by streams */
#define STDIN_FILENO 0 /* Standard input */
#define STDOUT_FILENO 1 /* Standard output */
#define STDERR_FILENO 2 /* Standard error output */
/* Seek constants for lseek() / _PDCLIB_lseek() */
#ifndef SEEK_SET
#define SEEK_SET 0 /* Seek from beginning of file */
#define SEEK_CUR 1 /* Seek from current position */
#define SEEK_END 2 /* Seek from end of file */
#endif
/* Null pointer declaration constant */
#ifndef NULL
#define NULL ((void *)0)
#endif
int open(const char *pathname, int flags, ...);
int read(int fd, void *buf, size_t count);
int close(int fd);
#endif /* _UNISTD_H */