aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/sys.h
diff options
context:
space:
mode:
authorMarvin Borner2020-08-21 20:39:48 +0200
committerMarvin Borner2020-08-21 20:39:48 +0200
commitf700ba6668dbdb91a03b2c5aa387eb4cabae8fcd (patch)
treeb04a80efabb09c9da9726332ccd22cb5a325fe39 /libc/inc/sys.h
parent1339d96cea2c647991c178587008d6fc40772a78 (diff)
Some things here and some things there
Diffstat (limited to 'libc/inc/sys.h')
-rw-r--r--libc/inc/sys.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/inc/sys.h b/libc/inc/sys.h
index 88d83df..e776f44 100644
--- a/libc/inc/sys.h
+++ b/libc/inc/sys.h
@@ -35,9 +35,9 @@ int sysv(enum sys num, ...);
#define read(path) (void *)sys1(SYS_READ, (int)path)
#define write(path, buf) sys2(SYS_WRITE, (int)path, buf)
#define exec(path, ...) sysv(SYS_EXEC, (int)path, ##__VA_ARGS__)
-#define exit() \
+#define exit(status) \
{ \
- sys0(SYS_EXIT); \
+ sys1(SYS_EXIT, (int)status); \
while (1) { \
} \
}