projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix indention with spaces in powerpc asm
[oweals/musl.git]
/
src
/
exit
/
quick_exit.c
1
#include <stdlib.h>
2
#include "syscall.h"
3
#include "atomic.h"
4
#include "libc.h"
5
6
static void dummy() { }
7
weak_alias(dummy, __funcs_on_quick_exit);
8
9
_Noreturn void quick_exit(int code)
10
{
11
static int lock;
12
while (a_swap(&lock, 1)) __syscall(SYS_pause);
13
__funcs_on_quick_exit();
14
_Exit(code);
15
}