unistd.h 425 B

1234567891011121314151617181920212223
  1. #ifndef __GBLIBC_UNISTD_H_
  2. #define __GBLIBC_UNISTD_H_
  3. #include <sys/types.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. ssize_t read(int fd, void* buf, size_t count);
  8. ssize_t write(int fd, const void* buf, size_t count);
  9. _Noreturn void _exit(int code);
  10. pid_t fork(void);
  11. int execve(const char* pathname, char* const argv[], char* const envp[]);
  12. unsigned int sleep(unsigned int seconds);
  13. #ifdef __cplusplus
  14. }
  15. #endif
  16. #endif