Kernel, libc: Stub out struct stat.st_dev

This commit is contained in:
apio 2022-10-27 08:01:33 +02:00
parent 9b0f6b6595
commit f9dad8a8d6
2 changed files with 2 additions and 0 deletions

View File

@ -14,6 +14,7 @@ struct stat // FIXME: This struct is quite stubbed out.
ino_t st_ino;
mode_t st_mode;
off_t st_size;
int st_dev; // FIXME: Implement this.
};
void do_stat(Context* context, VFS::Node* node, struct stat* buf)

View File

@ -9,6 +9,7 @@ struct stat // FIXME: This struct is quite stubbed out.
ino_t st_ino;
mode_t st_mode;
off_t st_size;
int st_dev; // Not implemented.
};
#define S_ISDIR(mode) (((mode)&0xf) == __VFS_DIRECTORY)