mirror of
https://github.com/drasko/codezero.git
synced 2026-02-27 09:13:13 +01:00
Towards finishing off clone()
Few minor changes in clone() syscall
This commit is contained in:
17
tasks/mm0/include/clone.h
Normal file
17
tasks/mm0/include/clone.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef __CLONE_H__
|
||||
#define __CLONE_H__
|
||||
|
||||
/* Linux clone() system call flags */
|
||||
#define CLONE_VM 0x100
|
||||
#define CLONE_FS 0x200
|
||||
#define CLONE_FILES 0x400
|
||||
#define CLONE_SIGHAND 0x800
|
||||
#define CLONE_VFORK 0x4000
|
||||
#define CLONE_PARENT 0x8000
|
||||
#define CLONE_THREAD 0x10000
|
||||
#define CLONE_NEWNS 0x20000
|
||||
#define CLONE_STOPPED 0x2000000
|
||||
|
||||
#endif /* __CLONE_H__ */
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#define TCB_SHARED_VM (1 << 0)
|
||||
#define TCB_SHARED_FILES (1 << 1)
|
||||
#define TCB_SHARED_FS (1 << 2)
|
||||
#define TCB_SAME_GROUP (1 << 3)
|
||||
|
||||
struct vm_file;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user