summaryrefslogtreecommitdiff
path: root/src/libk
diff options
context:
space:
mode:
authordzwdz2023-08-31 01:06:41 +0200
committerdzwdz2023-08-31 01:06:41 +0200
commit6cbe58797781cb8514a62bb3ab0e3e8a5d58bce2 (patch)
treebc405a3bc28dce58f1a7141640a5e0605363224c /src/libk
parentcf7877737ff5032f8bad59d57b048f66c4813b5b (diff)
kernel: add _sys_getprocfs in place of HANDLE_PROCFS
This makes the side-effects more explicit, and feels less hacky than `HANDLE_PROCFS`. I don't think accessing a handle alone should have side-effects, even if it's a "special" one.
Diffstat (limited to 'src/libk')
-rw-r--r--src/libk/include/camellia/flags.h1
-rw-r--r--src/libk/include/camellia/syscalls.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libk/include/camellia/flags.h b/src/libk/include/camellia/flags.h
index f4c54fe..bc34616 100644
--- a/src/libk/include/camellia/flags.h
+++ b/src/libk/include/camellia/flags.h
@@ -32,4 +32,3 @@
/* special handles */
#define HANDLE_NULLFS -2
-#define HANDLE_PROCFS -3
diff --git a/src/libk/include/camellia/syscalls.h b/src/libk/include/camellia/syscalls.h
index b7e60a0..58898d4 100644
--- a/src/libk/include/camellia/syscalls.h
+++ b/src/libk/include/camellia/syscalls.h
@@ -21,6 +21,7 @@
#define _SYS_GETPID 19
#define _SYS_GETPPID 20
#define _SYS_WAIT2 21
+#define _SYS_GETPROCFS 22
#define _SYS_EXECBUF 100
#define _SYS_DEBUG_KLOG 101
@@ -81,6 +82,8 @@ uint32_t _sys_getppid(void);
int _sys_wait2(int pid, int flags, struct sys_wait2 __user *out);
+hid_t _sys_getprocfs(int flags);
+
/* see shared/execbuf.h */
long _sys_execbuf(void __user *buf, size_t len);