From 02fec4701cee79f875c1d02b8b4aee09380dbcb8 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Thu, 4 Jan 2001 20:04:45 +0000 Subject: integrate dietlibc/stdio per default for cdrom and disk only installs --- mdk-stage1/dietlibc/include/unistd.h | 77 ++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 mdk-stage1/dietlibc/include/unistd.h (limited to 'mdk-stage1/dietlibc/include/unistd.h') diff --git a/mdk-stage1/dietlibc/include/unistd.h b/mdk-stage1/dietlibc/include/unistd.h new file mode 100644 index 000000000..a3c863586 --- /dev/null +++ b/mdk-stage1/dietlibc/include/unistd.h @@ -0,0 +1,77 @@ +#ifndef _UNISTD_H +#define _UNISTD_H + +#include +#include +#include + +const enum { + SEEK_SET=0, + SEEK_CUR=1, + SEEK_END=2 +} __seek_types; + +off_t lseek(int fildes, off_t offset, int whence) __THROW; + +int chdir(const char *path) __THROW; +int fchdir(int fd) __THROW; +int mkdir(const char *pathname, mode_t mode) __THROW; +int rmdir(const char *pathname) __THROW; +char *getcwd(char *buf, size_t size) __THROW; + +int open(const char* pathname,int flags, ...) __THROW; +int creat(const char* pathname,mode_t mode) __THROW; +int write(int fd,const void* buf,size_t len) __THROW; +int read(int fd,const void* buf,size_t len) __THROW; +int close(int fd) __THROW; + +int pread(int fd, void *buf, size_t count, off_t offset); +int pwrite(int fd, const void *buf, size_t count, off_t offset); + +int execve (const char *filename, char *const argv [], char *const envp[]) __THROW; +int execl( const char *path, ...); +int execv (const char *__path, char *const __argv[]) __THROW; + +pid_t getpid(void) __attribute__((const)) __THROW; +pid_t getppid(void) __THROW; +int kill(pid_t pid, int sig) __THROW; + +int mknod(const char *pathname, mode_t mode, dev_t dev) __THROW; + +int getdents(unsigned int fd, struct dirent *dirp, unsigned int count) __THROW; +int getdents64(unsigned int fd, struct dirent64 *dirp, unsigned int count) __THROW; + +pid_t fork() __THROW; +pid_t vfork() __THROW; + +int readlink(const char *path, char *buf, size_t bufsiz) __THROW; +int symlink(const char *oldpath, const char *newpath) __THROW; +int link(const char *oldpath, const char *newpath) __THROW; +int unlink (const char *__name) __THROW; + +int chown(const char *path, uid_t owner, gid_t group) __THROW; +int fchown(int fd, uid_t owner, gid_t group) __THROW; +int lchown(const char *path, uid_t owner, gid_t group) __THROW; + +char *ttyname (int desc) __THROW; + +int brk(void *end_data_segment) __THROW; +void *sbrk(ptrdiff_t increment) __THROW; + +int gethostname(char *name, size_t len) __THROW; + +/* Values for the second argument to access. + These may be OR'd together. */ +#define R_OK 4 /* Test for read permission. */ +#define W_OK 2 /* Test for write permission. */ +#define X_OK 1 /* Test for execute permission. */ +#define F_OK 0 /* Test for existence. */ + +int access (char *__name, int __type) __THROW; + +int dup2 (int __fd, int __fd2) __THROW; + +pid_t setsid (void) __THROW; + + +#endif -- cgit v1.2.1