lwp_clone.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2023-07-06 RT-Thread the first version
  9. */
  10. #ifndef __LWP_CLONE_H__
  11. #define __LWP_CLONE_H__
  12. #define CLONE_VM 0x00000100
  13. #define CLONE_FS 0x00000200
  14. #define CLONE_FILES 0x00000400
  15. #define CLONE_SIGHAND 0x00000800
  16. #define CLONE_PTRACE 0x00002000
  17. #define CLONE_VFORK 0x00004000
  18. #define CLONE_PARENT 0x00008000
  19. #define CLONE_THREAD 0x00010000
  20. #define CLONE_NEWNS 0x00020000
  21. #define CLONE_SYSVSEM 0x00040000
  22. #define CLONE_SETTLS 0x00080000
  23. #define CLONE_PARENT_SETTID 0x00100000
  24. #define CLONE_CHILD_CLEARTID 0x00200000
  25. #define CLONE_DETACHED 0x00400000
  26. #define CLONE_UNTRACED 0x00800000
  27. #define CLONE_CHILD_SETTID 0x01000000
  28. #define CLONE_NEWCGROUP 0x02000000
  29. #define CLONE_NEWUTS 0x04000000
  30. #define CLONE_NEWIPC 0x08000000
  31. #define CLONE_NEWUSER 0x10000000
  32. #define CLONE_NEWPID 0x20000000
  33. #define CLONE_NEWNET 0x40000000
  34. #define CLONE_IO 0x80000000
  35. /* arg[] -> flags
  36. * stack
  37. * new_tid
  38. * tls
  39. * set_clear_tid_address
  40. * quit_func
  41. * start_args
  42. * */
  43. #define SYS_CLONE_ARGS_NR 7
  44. #endif /* __LWP_CLONE_H__ */