about summary refs log tree commit diff
path: root/src/exit/_Exit.c
blob: 8ef85a8f206e94e7aea091b69320082652c88c3a (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <stdlib.h>
#define SYSCALL_NORETURN
#include "syscall.h"

void _Exit(int ec)
{
	syscall1(__NR_exit_group, ec);
	syscall1(__NR_exit, ec);
}