BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / fd1ac463b480044ea9b8ae4fa3f56a73b00e2ed3 / include / sys / sched.h

// Related

OrionLibC

Barry Updating libc for pipes and signals ad9b6af (2 years, 2 months ago)
#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_SIGHAND = (1 << 6),
	CLONE_IPC     = (1 << 7), // TODO: Add IPC namespace
};

pid_t clone(int flags);

#endif