summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/_Fork.c
blob: 5ad326da4e1426090b422dd869c5c513f85f1c68 (plain)
1
2
3
4
5
6
7
8
9
10
#include "asm/unistd_64.h" // for __NR_clone

#include <signal.h>  // for SIGCHLD
#include <syscall.h> // for __syscall_2, syscall
#include <unistd.h>  // for _Fork, pid_t

pid_t _Fork(void)
{
	return syscall(clone, SIGCHLD, 0);
}