summaryrefslogtreecommitdiffstats
path: root/contrib/bmake/meta.c
diff options
context:
space:
mode:
authorsjg <sjg@FreeBSD.org>2016-06-08 17:51:21 +0000
committersjg <sjg@FreeBSD.org>2016-06-08 17:51:21 +0000
commit40b0d2c4e53b744bec6a0948f1445f6083b871ec (patch)
tree56122b5c8140a0bf6027aed1c35467390a3cfad5 /contrib/bmake/meta.c
parent9c33c8f38a611cd237ba6ea77def0b0928ddb50e (diff)
downloadFreeBSD-src-40b0d2c4e53b744bec6a0948f1445f6083b871ec.zip
FreeBSD-src-40b0d2c4e53b744bec6a0948f1445f6083b871ec.tar.gz
Merge bmake-20160606
o dir.c: extend mtimes cache to others via cached_stat()
Diffstat (limited to 'contrib/bmake/meta.c')
-rw-r--r--contrib/bmake/meta.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/bmake/meta.c b/contrib/bmake/meta.c
index 4f54a00..dcd396d 100644
--- a/contrib/bmake/meta.c
+++ b/contrib/bmake/meta.c
@@ -1,4 +1,4 @@
-/* $NetBSD: meta.c,v 1.60 2016/06/04 22:17:14 sjg Exp $ */
+/* $NetBSD: meta.c,v 1.61 2016/06/07 00:40:00 sjg Exp $ */
/*
* Implement 'meta' mode.
@@ -429,7 +429,7 @@ meta_needed(GNode *gn, const char *dname, const char *tname,
}
/* The object directory may not exist. Check it.. */
- if (stat(dname, &fs) != 0) {
+ if (cached_stat(dname, &fs) != 0) {
if (verbose)
fprintf(debug_file, "Skipping meta for %s: no .OBJDIR\n",
gn->name);
@@ -1238,8 +1238,8 @@ meta_oodate(GNode *gn, Boolean oodate)
if ((strstr("tmp", p)))
break;
- if ((link_src != NULL && lstat(p, &fs) < 0) ||
- (link_src == NULL && stat(p, &fs) < 0)) {
+ if ((link_src != NULL && cached_lstat(p, &fs) < 0) ||
+ (link_src == NULL && cached_stat(p, &fs) < 0)) {
if (Lst_Find(missingFiles, p, string_match) == NULL)
Lst_AtEnd(missingFiles, bmake_strdup(p));
}
@@ -1328,7 +1328,7 @@ meta_oodate(GNode *gn, Boolean oodate)
if (DEBUG(META))
fprintf(debug_file, "%s: %d: looking for: %s\n", fname, lineno, *sdp);
#endif
- if (stat(*sdp, &fs) == 0) {
+ if (cached_stat(*sdp, &fs) == 0) {
found = 1;
p = *sdp;
}
OpenPOWER on IntegriCloud