Lines Matching refs:stat
44 #include <sys/stat.h> /* lstat() */
63 extern void set_target_stat(register Name target, struct stat buf);
81 * debug_level Should we trace the stat call?
88 struct stat buf;
91 /* We cache stat information. */
92 if (target->stat.time != file_no_time) {
93 return target->stat.time;
118 target->stat.is_sym_link = true;
121 target->stat.is_sym_link = false;
125 target->stat.time = file_doesnt_exist;
126 target->stat.stat_errno = errno;
140 target->stat.stat_errno = 0;
141 target->stat.is_file = true;
142 target->stat.mode = buf.st_mode & 0777;
143 target->stat.size = buf.st_size;
144 target->stat.is_dir =
146 if (target->stat.is_dir) {
147 target->stat.time = file_is_dir;
149 /* target->stat.time = buf.st_mtime; */
152 target->stat.time = MAX(buf.st_mtim, file_min_time);
158 target->stat.time;
160 return target->stat.time;
166 * Called by exists() to set some stat fields in the Name structure
170 * target The target whose stat field is set
171 * buf stat values (on disk) of the file
175 set_target_stat(register Name target, struct stat buf)
177 target->stat.stat_errno = 0;
178 target->stat.is_file = true;
179 target->stat.mode = buf.st_mode & 0777;
180 target->stat.size = buf.st_size;
181 target->stat.is_dir =
183 if (target->stat.is_dir) {
184 target->stat.time = file_is_dir;
186 /* target->stat.time = buf.st_mtime; */
189 target->stat.time = MAX(buf.st_mtim, file_min_time);
237 target->stat.is_file = true;
238 target->stat.mode = alias->stat.mode;
239 target->stat.size = alias->stat.size;
240 target->stat.is_dir = alias->stat.is_dir;
241 target->stat.time = alias->stat.time;
246 return alias->stat.time;
257 return target->stat.time;
376 file->stat.has_sccs = NO_SCCS;
388 plain_file->stat.is_file = true;
389 plain_file->stat.has_sccs = HAS_SCCS;
476 if (!dir->stat.is_file) {
500 file->stat.is_file = true;
501 file->stat.has_sccs = NO_SCCS;
512 plain_file->stat.is_file = true;
513 plain_file->stat.has_sccs = HAS_SCCS;
576 name->stat.is_file = true;
587 name->stat.is_file = true;
591 prop->body.member.library->stat.is_file = true;
594 prop->body.member.member->stat.is_file = true;