summaryrefslogtreecommitdiff
path: root/src/unistd/_exit.c
blob: 618b839cb5455e799c054447c35e3f2b12f0e8e1 (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 "nonstd/syscall.h"

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