add lstat to fs_dev and romfs_dev

This commit is contained in:
Ezekiel Bethel 2020-05-23 18:42:22 +01:00 committed by fincs
parent 17ebe4104a
commit 573e2f772c
2 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,8 @@ fsdev_devoptab =
.chmod_r = fsdev_chmod,
.fchmod_r = fsdev_fchmod,
.rmdir_r = fsdev_rmdir,
// symlinks aren't supported so alias lstat to stat
.lstat_r = fsdev_stat,
};
typedef struct

View File

@ -168,6 +168,8 @@ static const devoptab_t romFS_devoptab =
.dirreset_r = romfs_dirreset,
.dirnext_r = romfs_dirnext,
.dirclose_r = romfs_dirclose,
// symlinks aren't supported so alias lstat to stat
.lstat_r = romfs_stat,
};
static bool romfs_initialised = false;