summaryrefslogtreecommitdiff
path: root/src/unistd/_exit.c
blob: 07a0e53f5fa7d391c2bb3dae4ed1c001b5dbe71e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stddef.h>
#include <sys/types.h>
#include <unistd.h>
#include "_syscall.h"

void _exit(int status)
{
	long scno = __syscall_lookup(exit);
	for (;;) {
		__syscall(scno, status);
	}
}
/*
POSIX(1)
*/