BarryServer : Git

All the code for all my projects
// BarryServer : Git / OrionLibC / blob / 2e2f919ac415da5f75aeb6b83981b659fa5072eb / 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