fileinfo: implement os_fileinfo_size

this replaces os_get_file_size and file_info.stat.st_size
This commit is contained in:
Stefan Hoffmann
2014-08-08 16:25:33 +02:00
parent 3051015f89
commit aa378acdf5
6 changed files with 35 additions and 23 deletions

View File

@@ -5127,9 +5127,10 @@ void buf_reload(buf_T *buf, int orig_mode)
}
void buf_store_file_info(buf_T *buf, FileInfo *file_info)
FUNC_ATTR_NONNULL_ALL
{
buf->b_mtime = (long)file_info->stat.st_mtim.tv_sec;
buf->b_orig_size = file_info->stat.st_size;
buf->b_orig_size = os_fileinfo_size(file_info);
buf->b_orig_mode = (int)file_info->stat.st_mode;
}