summaryrefslogtreecommitdiff
path: root/kernel/fs/vfs.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-11-22 21:06:33 +0100
committerAnton Kling <anton@kling.gg>2023-11-22 21:06:33 +0100
commitf0af695b6c3289a041e8fce8926721063796c596 (patch)
tree7575159d8efbb60ccf1762f2da3e126661f5c7bd /kernel/fs/vfs.h
parentb3866b0442f55b97833981a99c601f2143d10315 (diff)
Meta: Use dirent as a general include file
This include file is shared by the kernel and libc
Diffstat (limited to 'kernel/fs/vfs.h')
-rw-r--r--kernel/fs/vfs.h6
1 files changed, 1 insertions, 5 deletions
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 <stddef.h>
#include <sys/stat.h>
#include <typedefs.h>
+#include <dirent.h>
// 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;