#ifndef _UNISTD_H #define _UNISTD_H #include #ifdef __cplusplus extern "C" { #endif /* Not implemented. */ int execv(const char*, char* const[]); /* Not implemented. */ int execve(const char*, char* const[], char* const[]); /* Not implemented. */ int execvp(const char*, char* const[]); /* Not implemented. */ pid_t fork(void); /* Calls the kernel for a specific service, determined by number. */ long syscall(long number, ...); /* Suspends execution for a chosen amount of seconds. */ unsigned int sleep(unsigned int seconds); /* Reads count bytes from the file descriptor fd into the memory at buf. */ ssize_t read(int fd, void* buf, size_t count); /* Writes count bytes of the memory at buf to the file descriptor fd. */ ssize_t write(int fd, const void* buf, size_t count); /* Closes the file descriptor fd. */ int close(int fd); #ifdef __cplusplus } #endif #endif