summaryrefslogtreecommitdiff
path: root/sys/fs/devfs.c
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2025-06-27 19:03:31 -0400
committerIan Moffett <ian@osmora.org>2025-06-27 19:04:55 -0400
commitbbd861c0cd4c26e2699392fec3ae0ec7df8ab145 (patch)
treecbed69b27dbb16486f28d0995ab9524266c508a3 /sys/fs/devfs.c
parent8877f9b8a8992388b4f64d425a48b02a3229cf61 (diff)
kernel: vfs: Add support for O_CREAT flag
Add support for the O_CREAT flag which allows file creation upon an open() call. Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/fs/devfs.c')
-rw-r--r--sys/fs/devfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/devfs.c b/sys/fs/devfs.c
index 0c087f0..293ee0a 100644
--- a/sys/fs/devfs.c
+++ b/sys/fs/devfs.c
@@ -273,7 +273,8 @@ const struct vops g_devfs_vops = {
.reclaim = devfs_reclaim,
.read = devfs_read,
.write = devfs_write,
- .getattr = devfs_getattr
+ .getattr = devfs_getattr,
+ .create = NULL
};
const struct vfsops g_devfs_vfsops = {