Lines Matching defs:gn

192 	GNode *gn;		/* New node */
311 gn = Targ_GetNode(fullName);
312 gn->type |= OP_ARCHV;
313 Lst_Append(gns, gn);
333 gn = Targ_GetNode(fullname);
336 gn->type |= OP_ARCHV;
337 Lst_Append(gns, gn);
343 gn = Targ_GetNode(fullname);
346 gn->type |= OP_ARCHV;
347 Lst_Append(gns, gn);
750 Arch_Touch(GNode *gn)
755 f = ArchFindMember(GNode_VarArchive(gn), GNode_VarMember(gn), &arh,
773 Arch_TouchLib(GNode *gn MAKE_ATTR_UNUSED)
780 f = ArchFindMember(gn->path, RANLIBMAG, &arh, "r+");
789 utime(gn->path, &times); /* TODO: handle errors */
798 Arch_UpdateMTime(GNode *gn)
802 arh = ArchStatMember(GNode_VarArchive(gn), GNode_VarMember(gn), true);
804 gn->mtime = (time_t)strtol(arh->ar_date, NULL, 10);
806 gn->mtime = 0;
810 * Given a nonexistent archive member's node, update gn->mtime from its
814 Arch_UpdateMemberMTime(GNode *gn)
818 for (ln = gn->parents.first; ln != NULL; ln = ln->next) {
835 strncmp(nameStart, gn->name, nameLen) == 0) {
837 gn->mtime = pgn->mtime;
844 gn->mtime = 0;
863 Arch_FindLib(GNode *gn, SearchPath *path)
865 char *libName = str_concat3("lib", gn->name + 2, ".a");
866 gn->path = Dir_FindFile(libName, path);
869 Var_Set(gn, TARGET, gn->name);
873 RanlibOODate(const GNode *gn MAKE_ATTR_UNUSED)
879 arh = ArchStatMember(gn->path, RANLIBMAG, false);
893 return gn->youngestChild == NULL ||
894 gn->youngestChild->mtime > tocModTime;
915 * (gn->mtime < gn->youngestChild->mtime).
929 Arch_LibOODate(GNode *gn)
932 if (gn->type & OP_PHONY)
934 if (!GNode_IsTarget(gn) && Lst_IsEmpty(&gn->children))
936 if ((!Lst_IsEmpty(&gn->children) && gn->youngestChild == NULL) ||
937 (gn->mtime > now) ||
938 (gn->youngestChild != NULL &&
939 gn->mtime < gn->youngestChild->mtime))
941 return RanlibOODate(gn);
965 Arch_IsLib(GNode *gn)
971 if ((fd = open(gn->path, O_RDONLY)) == -1)