From 2d94246f552702dd2332596c6924251d04304cda Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Sun, 31 Mar 2024 21:41:07 +0300 Subject: [PATCH] Update fdt stat to include file timestamps --- storage/file_descriptor.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/storage/file_descriptor.cpp b/storage/file_descriptor.cpp index 5a27992..7b8be33 100644 --- a/storage/file_descriptor.cpp +++ b/storage/file_descriptor.cpp @@ -503,6 +503,9 @@ namespace vfs statbuf->st_gid = node->GroupIdentifier; statbuf->st_rdev = 0; /* FIXME: stub */ statbuf->st_size = node->Size; + statbuf->st_atime = node->AccessTime; + statbuf->st_mtime = node->ModifyTime; + statbuf->st_ctime = node->ChangeTime; statbuf->st_blksize = 0; /* FIXME: stub */ statbuf->st_blocks = 0; /* FIXME: stub */ statbuf->st_attr = 0; /* FIXME: stub */ @@ -527,6 +530,9 @@ namespace vfs statbuf->st_gid = node->GroupIdentifier; statbuf->st_rdev = 0; /* FIXME: stub */ statbuf->st_size = node->Size; + statbuf->st_atime = node->AccessTime; + statbuf->st_mtime = node->ModifyTime; + statbuf->st_ctime = node->ChangeTime; statbuf->st_blksize = 0; /* FIXME: stub */ statbuf->st_blocks = 0; /* FIXME: stub */ statbuf->st_attr = 0; /* FIXME: stub */ @@ -558,6 +564,9 @@ namespace vfs statbuf->st_gid = node->GroupIdentifier; statbuf->st_rdev = 0; /* FIXME: stub */ statbuf->st_size = node->Size; + statbuf->st_atime = node->AccessTime; + statbuf->st_mtime = node->ModifyTime; + statbuf->st_ctime = node->ChangeTime; statbuf->st_blksize = 0; /* FIXME: stub */ statbuf->st_blocks = 0; /* FIXME: stub */ statbuf->st_attr = 0; /* FIXME: stub */