summaryrefslogtreecommitdiff
path: root/userland/libc/include/syscall.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-23 17:01:55 +0100
committerAnton Kling <anton@kling.gg>2023-11-23 17:01:55 +0100
commit6757803629574fe46e9047be8567e0c7e0522973 (patch)
treecf31247efa27997b0b43bfed559ffbb42bfb8f3e /userland/libc/include/syscall.h
parentb8da260dd01175529feb57d5a73570f469decb08 (diff)
Kernel/LibC: Add randomfill() syscall.
This syscall aims to fill the given buffer with cryptographically secure random data. If the syscall returns and does not cause a page fault it will **always** have filled the buffer with random data and never gives back any error value.
Diffstat (limited to 'userland/libc/include/syscall.h')
-rw-r--r--userland/libc/include/syscall.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/userland/libc/include/syscall.h b/userland/libc/include/syscall.h
index c09eafb..7a3b50d 100644
--- a/userland/libc/include/syscall.h
+++ b/userland/libc/include/syscall.h
@@ -39,6 +39,7 @@
#define SYS_CHDIR 31
#define SYS_GETCWD 32
#define SYS_ISATTY 33
+#define SYS_RANDOMFILL 34
int syscall(uint32_t eax, uint32_t ebx, uint32_t ecx, uint32_t edx,
uint32_t esi, uint32_t edi);