summaryrefslogtreecommitdiff
path: root/Kernel/VirtualFileSystem.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-31 05:05:57 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-31 05:05:57 +0100
commitc4fce9b3f91bd89a9031248fa4bcd7cf20dad91d (patch)
tree30a4324fc2836e68428f617bd5908c77960dceb6 /Kernel/VirtualFileSystem.h
parentc3cc318028daf33383ea0466c18ea2a0f1ea980f (diff)
downloadserenity-c4fce9b3f91bd89a9031248fa4bcd7cf20dad91d.zip
Make stat() work on device files again.
FileDescriptor will now keep a pointer to the original inode even after opening it resolves to a character device. Fixed up /bin/ls to display major and minor device numbers instead of size for device files.
Diffstat (limited to 'Kernel/VirtualFileSystem.h')
-rw-r--r--Kernel/VirtualFileSystem.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/VirtualFileSystem.h b/Kernel/VirtualFileSystem.h
index 563a2e89e9..3bd677943f 100644
--- a/Kernel/VirtualFileSystem.h
+++ b/Kernel/VirtualFileSystem.h
@@ -24,6 +24,7 @@
#define O_NOFOLLOW 00400000
#define O_CLOEXEC 02000000
#define O_NOFOLLOW_NOERROR 0x4000000
+#define O_DONT_OPEN_DEVICE 0x8000000
class CharacterDevice;
class FileDescriptor;