mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Kernel+LibC: Update struct stat to use struct timespec instead of time_t
Some programs unconditionally expect struct stat to have nanosecond support.
This commit is contained in:
parent
e6b396c248
commit
c33592d28c
3 changed files with 42 additions and 34 deletions
|
@ -117,9 +117,12 @@ struct InodeMetadata {
|
|||
buffer.st_size = size;
|
||||
buffer.st_blksize = block_size;
|
||||
buffer.st_blocks = block_count;
|
||||
buffer.st_atime = atime;
|
||||
buffer.st_mtime = mtime;
|
||||
buffer.st_ctime = ctime;
|
||||
buffer.st_atim.tv_sec = atime;
|
||||
buffer.st_atim.tv_nsec = 0;
|
||||
buffer.st_mtim.tv_sec = mtime;
|
||||
buffer.st_mtim.tv_nsec = 0;
|
||||
buffer.st_ctim.tv_sec = ctime;
|
||||
buffer.st_ctim.tv_nsec = 0;
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue