summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-07-09 19:59:37 -0400
committerIan Moffett <ian@osmora.org>2025-07-09 21:05:51 -0400
commite57f9bf6ca7fa27b6d44029658d565ae093606b8 (patch)
tree1dd7b2151da759b19674c56f1ba600d80ec9cc33 /sys/include
parent252c90732709447ad33bbf329fc47d584cd23f37 (diff)
kernel: ucred: Add SYS_getuid
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/syscall.h1
-rw-r--r--sys/include/sys/ucred.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/sys/syscall.h b/sys/include/sys/syscall.h
index 05288f4..51c2579 100644
--- a/sys/include/sys/syscall.h
+++ b/sys/include/sys/syscall.h
@@ -57,6 +57,7 @@
#define SYS_getpid 16
#define SYS_getppid 17
#define SYS_setuid 18
+#define SYS_getuid 19
#if defined(_KERNEL)
/* Syscall return value and arg type */
diff --git a/sys/include/sys/ucred.h b/sys/include/sys/ucred.h
index b44a7fe..f8cbbe0 100644
--- a/sys/include/sys/ucred.h
+++ b/sys/include/sys/ucred.h
@@ -48,8 +48,10 @@ struct ucred {
};
int setuid(uid_t new);
+uid_t getuid(void);
#if defined(_KERNEL)
scret_t sys_setuid(struct syscall_args *scargs);
+scret_t sys_getuid(struct syscall_args *scargs);
#endif
#endif /* !_SYS_UCRED_H_ */