summaryrefslogtreecommitdiff
path: root/kernel/cpu/syscall.c
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-28 20:11:05 +0100
committerAnton Kling <anton@kling.gg>2023-11-28 20:12:20 +0100
commitd07fa25e04a19ccb9aa25bb6e2156d23d213db77 (patch)
tree25f2e4a6301f3ad7c5b158e74966a394862fdf39 /kernel/cpu/syscall.c
parent636858dbbd48ed9f5073793b46740302aa202f43 (diff)
Meta: Apply new clang-format rules to kernel
Diffstat (limited to 'kernel/cpu/syscall.c')
-rw-r--r--kernel/cpu/syscall.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel/cpu/syscall.c b/kernel/cpu/syscall.c
index 5fd6828..3a2b1ca 100644
--- a/kernel/cpu/syscall.c
+++ b/kernel/cpu/syscall.c
@@ -80,9 +80,13 @@ void syscall_wait(int *status) {
*status = get_current_task()->child_rc;
}
-int syscall_fork(void) { return fork(); }
+int syscall_fork(void) {
+ return fork();
+}
-int syscall_getpid(void) { return get_current_task()->pid; }
+int syscall_getpid(void) {
+ return get_current_task()->pid;
+}
void *align_page(void *a);
@@ -105,7 +109,9 @@ void *syscall_sbrk(uintptr_t increment) {
return rc;
}
-int syscall_close(int fd) { return vfs_close(fd); }
+int syscall_close(int fd) {
+ return vfs_close(fd);
+}
int syscall_openpty(SYS_OPENPTY_PARAMS *args) {
assert(is_valid_userpointer(args, sizeof(SYS_OPENPTY_PARAMS)));