OrionLibC
Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)diff --git a/include/sys/sched.h b/include/sys/sched.h new file mode 100644 index 0000000..fe17753 --- /dev/null +++ b/include/sys/sched.h @@ -0,0 +1,19 @@ +#ifndef _SYS_SCHED_H +#define _SYS_SCHED_H + +#include <sys/types.h> + +/* Flags for clone syscall */ +enum CloneFlag { + CLONE_NONE = (1 << 0), + CLONE_PARENT = (1 << 1), + CLONE_THREAD = (1 << 2), + CLONE_FILES = (1 << 3), + CLONE_FS = (1 << 4), + CLONE_VM = (1 << 5), + CLONE_IPC = (1 << 6), // TODO: Add IPC namespace +}; + +pid_t clone(int flags); + +#endif