Lines Matching refs:filestat

167 get_create_time(struct stat *filestat)
171 ret = MIN(filestat->st_ctime, filestat->st_mtime);
172 ret1 = MIN(ret, filestat->st_atime);
276 struct stat filestat;
305 if (stat(pathname, &filestat) != -1)
359 struct stat filestat;
424 if ((stat(path, &filestat) == 0) && (S_ISDIR(filestat.st_mode)))
652 struct stat filestat;
658 if (fstat(handle, &filestat) != 0)
667 if (S_ISDIR(filestat.st_mode))
677 if (!(filestat.st_mode & S_IWUSR))
684 seconds_since_1970_to_filetime(get_create_time(&filestat), &ft_high,
689 seconds_since_1970_to_filetime(filestat.st_atime, &ft_high, &ft_low);
693 seconds_since_1970_to_filetime(filestat.st_mtime, &ft_high, &ft_low);
697 seconds_since_1970_to_filetime(filestat.st_ctime, &ft_high, &ft_low);
706 out_uint32_le(out, filestat.st_size); /* Allocation size */
708 out_uint32_le(out, filestat.st_size); /* End of file */
710 out_uint32_le(out, filestat.st_nlink); /* Number of links */
712 out_uint8(out, S_ISDIR(filestat.st_mode) ? 1 : 0); /* Directory */
736 struct stat filestat;
777 if (fstat(handle, &filestat))
780 tvs.modtime = filestat.st_mtime;
781 tvs.actime = filestat.st_atime;
810 mode = filestat.st_mode;
1005 struct stat filestat;
1011 if (fstat(handle, &filestat) < 0)
1016 p->modify_time = filestat.st_mtime;
1017 p->status_time = filestat.st_ctime;
1038 if (!stat(fullname, &filestat))
1040 p->total_time += (filestat.st_mtime + filestat.st_ctime);
1201 struct stat filestat;
1239 if (stat(fullpath, &filestat))
1247 memset(&filestat, 0, sizeof(filestat));
1258 if (S_ISDIR(filestat.st_mode))
1264 if (!(filestat.st_mode & S_IWUSR))
1281 seconds_since_1970_to_filetime(get_create_time(&filestat), &ft_high,
1286 seconds_since_1970_to_filetime(filestat.st_atime, &ft_high, &ft_low);
1290 seconds_since_1970_to_filetime(filestat.st_mtime, &ft_high, &ft_low);
1294 seconds_since_1970_to_filetime(filestat.st_ctime, &ft_high, &ft_low);
1298 out_uint32_le(out, filestat.st_size); /* filesize low */
1300 out_uint32_le(out, filestat.st_size); /* filesize low */
1316 seconds_since_1970_to_filetime(get_create_time(&filestat), &ft_high,
1321 seconds_since_1970_to_filetime(filestat.st_atime, &ft_high, &ft_low);
1325 seconds_since_1970_to_filetime(filestat.st_mtime, &ft_high, &ft_low);
1329 seconds_since_1970_to_filetime(filestat.st_ctime, &ft_high, &ft_low);
1333 out_uint32_le(out, filestat.st_size); /* filesize low */
1335 out_uint32_le(out, filestat.st_size); /* filesize low */
1345 seconds_since_1970_to_filetime(get_create_time(&filestat), &ft_high,
1350 seconds_since_1970_to_filetime(filestat.st_atime, &ft_high, &ft_low);
1354 seconds_since_1970_to_filetime(filestat.st_mtime, &ft_high, &ft_low);
1358 seconds_since_1970_to_filetime(filestat.st_ctime, &ft_high, &ft_low);
1362 out_uint32_le(out, filestat.st_size); /* filesize low */
1364 out_uint32_le(out, filestat.st_size); /* filesize low */