Files
RockOS/sysroot/usr/include/unistd.h

28 lines
734 B
C
Raw Normal View History

#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 */