diff options
author | 2025-01-23 10:41:10 +0800 | |
---|---|---|
committer | 2025-01-23 10:41:10 +0800 | |
commit | e6f77b7ea3e38c9853bee60b275f3f89d252a5b3 (patch) | |
tree | 80bfbabed9d4cbcf9fa62677f78b34279d7e2f87 /src/lib/_exit.c | |
download | linux-0.11-master.tar.gz linux-0.11-master.zip |
Diffstat (limited to 'src/lib/_exit.c')
-rw-r--r-- | src/lib/_exit.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/_exit.c b/src/lib/_exit.c new file mode 100644 index 0000000..09e31f6 --- /dev/null +++ b/src/lib/_exit.c | |||
@@ -0,0 +1,13 @@ | |||
1 | /* | ||
2 | * linux/lib/_exit.c | ||
3 | * | ||
4 | * (C) 1991 Linus Torvalds | ||
5 | */ | ||
6 | |||
7 | #define __LIBRARY__ | ||
8 | #include <unistd.h> | ||
9 | |||
10 | void _exit(int exit_code) | ||
11 | { | ||
12 | __asm__ __volatile__ ("int $0x80"::"a" (__NR_exit),"b" (exit_code)); | ||
13 | } | ||