Lines Matching defs:target

62 extern	timestruc_t&	exists(register Name target);
63 extern void set_target_stat(register Name target, struct stat buf);
64 static timestruc_t& vpath_exists(register Name target);
70 * exists(target)
72 * Figure out the timestamp for one target.
75 * The time the target was created
78 * target The target to check
86 exists(register Name target)
92 if (target->stat.time != file_no_time) {
93 return target->stat.time;
97 * If the target is a member, we have to extract the time
100 if (target->is_member &&
101 (get_prop(target->prop, member_prop) != NULL)) {
102 return read_archive(target);
109 target->string_mb);
112 result = lstat_vroot(target->string_mb, &buf, NULL, VROOT_DEFAULT);
118 target->stat.is_sym_link = true;
119 result = stat_vroot(target->string_mb, &buf, NULL, VROOT_DEFAULT);
121 target->stat.is_sym_link = false;
125 target->stat.time = file_doesnt_exist;
126 target->stat.stat_errno = errno;
132 (target->string_mb[0] != (int) slash_char) ) {
135 vpath_exists(target);
136 // return vpath_exists(target);
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);
155 if ((target->colon_splits > 0) &&
156 (get_prop(target->prop, time_prop) == NULL)) {
157 append_prop(target, time_prop)->body.time.time =
158 target->stat.time;
160 return target->stat.time;
164 * set_target_stat( target, buf)
170 * target The target whose stat field is set
172 * represented by target.
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);
195 * vpath_exists(target)
198 * This function stats the VPATH translation of the target.
201 * The time the target was created
204 * target The target to check
210 vpath_exists(register Name target)
223 Wstring wcb1(target);
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;
242 maybe_append_prop(target, vpath_alias_prop)->
244 target->has_vpath_alias_prop = true;
257 return target->stat.time;
360 * enter the file as a dependency for the target.
365 line->body.line.target->string_mb,
402 line->body.line.target->
537 line->body.line.target->