unistd.h 379 B

12345678910111213141516171819202122232425262728
  1. /**
  2. * @file unistd.h
  3. * @author fslongjin ([email protected])
  4. * @brief
  5. * @version 0.1
  6. * @date 2022-04-22
  7. *
  8. * @copyright Copyright (c) 2022
  9. *
  10. */
  11. #pragma once
  12. #include <syscall/syscall.h>
  13. #include <syscall/syscall_num.h>
  14. /**
  15. * @brief fork当前进程
  16. *
  17. * @return pid_t
  18. */
  19. pid_t fork(void);
  20. /**
  21. * @brief vfork当前进程
  22. *
  23. * @return pid_t
  24. */
  25. pid_t vfork(void);