removed pdclib, strange things were happening..., user shell kinda works now

This commit is contained in:
2026-07-06 22:13:57 -05:00
parent 7d76f0ec73
commit 6d7a23d747
308 changed files with 829 additions and 41231 deletions

View File

@@ -1,28 +1,15 @@
#ifndef _UNISTD_H
#define _UNISTD_H
#ifndef RLIBC_UNISTD_H
#define RLIBC_UNISTD_H
#include <syscall.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 */
#define STDIN_FILENO 0
#define STDOUT_FILENO 1
#define STDERR_FILENO 2
/* 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
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
/* 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 */
#endif