removed pdclib, strange things were happening..., user shell kinda works now
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user