diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-15 11:28:07 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-15 13:56:47 +0100 |
commit | fb4993f0677a003c80a1c82f5aad3eccdd9a9beb (patch) | |
tree | b73c53feed61b4b1ddd68574641b5003557e4ded /Kernel/Process.h | |
parent | 96f8fcdcbaf35461bb51b2fa1e190d8a7653b5eb (diff) | |
download | serenity-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.h | 1 |
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&); |