newlib: fix fstat file size

git-svn-id: svn://kolibrios.org@5369 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Sergey Semyonov (Serge)
2015-01-15 02:45:05 +00:00
parent ca8fee6c6c
commit 179b91082e
4 changed files with 38 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ _DEFUN (fstat, (fd, buf),
buf->st_mode = S_IFREG|S_IRUSR|S_IWUSR|S_IXUSR;
}
buf->st_blksize = 4096;
buf->st_size = info.size;
time.tm_sec = info.atime.sec;
time.tm_min = info.atime.min;