Skip to content

Commit

Permalink
dirent: added device to directory descriptor struct
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Sep 26, 2024
1 parent 821a02b commit 30b081b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/include/kernel/dirent.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
#include <kernel/sched.h>
#include <kernel/file.h>

// directory descriptors will be OR'ed with this flag
#define DIRECTORY_DESCRIPTOR_FLAG 0x8000

typedef int DIR;

struct dirent {
Expand All @@ -22,6 +25,7 @@ struct dirent {
typedef struct {
Process *process;
char path[MAX_FILE_PATH];
char device[MAX_FILE_PATH];
size_t position;
} DirectoryDescriptor;

Expand Down

0 comments on commit 30b081b

Please sign in to comment.