summaryrefslogtreecommitdiff
path: root/src/unistd/_exit.c
blob: 53e7ddbac31bbb9209df6616fbd1dfc518b4ea5c (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 = __lookup("exit");
	for (;;) {
		__syscall(scno, status);
	}
}
/*
POSIX(1)
*/