From f0af695b6c3289a041e8fce8926721063796c596 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 22 Nov 2023 21:06:33 +0100 Subject: Meta: Use dirent as a general include file This include file is shared by the kernel and libc --- kernel/fs/vfs.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'kernel/fs/vfs.h') diff --git a/kernel/fs/vfs.h b/kernel/fs/vfs.h index 76c0a0c..d042acf 100644 --- a/kernel/fs/vfs.h +++ b/kernel/fs/vfs.h @@ -10,6 +10,7 @@ typedef struct vfs_mounts vfs_mounts_t; #include #include #include +#include // FIXME: Is there some standard value for this? #define O_NONBLOCK (1 << 0) @@ -38,11 +39,6 @@ struct vfs_mounts { vfs_inode_t *local_root; }; -struct dirent { - unsigned int d_ino; // File serial number. - char d_name[PATH_MAX]; // Filename string of entry. -}; - struct vfs_fd { size_t offset; int flags; -- cgit v1.2.3