ladybird/Kernel/TTY
Sergey Bugaev d0d13e2bf5 Kernel: Move setting file flags and r/w mode to VFS::open()
Previously, VFS::open() would only use the passed flags for permission checking
purposes, and Process::sys$open() would set them on the created FileDescription
explicitly. Now, they should be set by VFS::open() on any files being opened,
including files that the kernel opens internally.

This also lets us get rid of the explicit check for whether or not the returned
FileDescription was a preopen fd, and in fact, fixes a bug where a read-only
preopen fd without any other flags would be considered freshly opened (due to
O_RDONLY being indistinguishable from 0) and granted a new set of flags.
2020-01-18 23:51:22 +01:00
..
MasterPTY.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
MasterPTY.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
PTYMultiplexer.cpp Kernel: Move setting file flags and r/w mode to VFS::open() 2020-01-18 23:51:22 +01:00
PTYMultiplexer.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
SlavePTY.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
SlavePTY.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
TTY.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
TTY.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
VirtualConsole.cpp Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
VirtualConsole.h Meta: Add license header to source files 2020-01-18 09:45:54 +01:00