summaryrefslogtreecommitdiff
path: root/Kernel/Process.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-15 11:28:07 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-15 13:56:47 +0100
commitfb4993f0677a003c80a1c82f5aad3eccdd9a9beb (patch)
treeb73c53feed61b4b1ddd68574641b5003557e4ded /Kernel/Process.h
parent96f8fcdcbaf35461bb51b2fa1e190d8a7653b5eb (diff)
downloadserenity-fb4993f0677a003c80a1c82f5aad3eccdd9a9beb.zip
Kernel: Add anonymous files, created with sys$anon_create()
This patch adds a new AnonymousFile class which is a File backed by an AnonymousVMObject that can only be mmap'ed and nothing else, really. I'm hoping that this can become a replacement for shbufs. :^)
Diffstat (limited to 'Kernel/Process.h')
-rw-r--r--Kernel/Process.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Process.h b/Kernel/Process.h
index b324eb4c85..756317ea20 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -368,6 +368,7 @@ public:
int sys$prctl(int option, FlatPtr arg1, FlatPtr arg2);
int sys$set_coredump_metadata(Userspace<const Syscall::SC_set_coredump_metadata_params*>);
void sys$abort();
+ int sys$anon_create(size_t, int options);
template<bool sockname, typename Params>
int get_sock_or_peer_name(const Params&);