Lines Matching refs:filestat
343 struct stat filestat; in disk_create() local
390 if ((stat(path, &filestat) == 0) && (S_ISDIR(filestat.st_mode))) in disk_create()
615 struct stat filestat; in disk_query_information() local
621 if (fstat(handle, &filestat) != 0) in disk_query_information()
630 if (S_ISDIR(filestat.st_mode)) in disk_query_information()
640 if (!(filestat.st_mode & S_IWUSR)) in disk_query_information()
647 seconds_since_1970_to_filetime(get_create_time(&filestat), &ft_high, in disk_query_information()
652 seconds_since_1970_to_filetime(filestat.st_atime, &ft_high, &ft_low); in disk_query_information()
656 seconds_since_1970_to_filetime(filestat.st_mtime, &ft_high, &ft_low); in disk_query_information()
660 seconds_since_1970_to_filetime(filestat.st_ctime, &ft_high, &ft_low); in disk_query_information()
669 out_uint32_le(out, filestat.st_size); /* Allocation size */ in disk_query_information()
671 out_uint32_le(out, filestat.st_size); /* End of file */ in disk_query_information()
673 out_uint32_le(out, filestat.st_nlink); /* Number of links */ in disk_query_information()
675 out_uint8(out, S_ISDIR(filestat.st_mode) ? 1 : 0); /* Directory */ in disk_query_information()
699 struct stat filestat; in disk_set_information() local
739 if (fstat(handle, &filestat)) in disk_set_information()
742 tvs.modtime = filestat.st_mtime; in disk_set_information()
743 tvs.actime = filestat.st_atime; in disk_set_information()
772 mode = filestat.st_mode; in disk_set_information()