Lines Matching refs:name

40 struct passwd *getpwnam PARAMS ((char *name));
130 static void do_define PARAMS ((char *name, unsigned int namelen,
168 char *name, *p; in read_all_makefiles() local
185 while ((name = find_next_token (&p, &length)) != 0) in read_all_makefiles()
189 eval_makefile (name, RM_NO_DEFAULT_GOAL|RM_INCLUDED|RM_DONTCARE); in read_all_makefiles()
371 filename = deps->file->name; in eval_makefile()
827 char *name = files->name; in eval() local
833 r = eval_makefile (name, (RM_INCLUDED | RM_NO_TILDE in eval()
836 error (fstart, "%s: %s", name, strerror (errno)); in eval()
837 free (name); in eval()
1155 pattern = target->name; in eval()
1173 deps->name = savestring (beg, end - beg + 1); in eval()
1215 char* name; in eval() local
1222 name = t->name; in eval()
1225 if (strchr (name, '%') != 0) in eval()
1230 if (*name == '.' && strchr (name, '/') == 0 in eval()
1232 && strchr (name, '\\') == 0 in eval()
1243 if (*dep_name (d) != '.' && streq (name, dep_name (d))) in eval()
1251 if (!strneq (name, dep_name (d2), len)) in eval()
1253 if (streq (name + len, dep_name (d))) in eval()
1266 define_variable_global (".DEFAULT_GOAL", 13, t->name, in eval()
1319 do_define (char *name, unsigned int namelen, in do_define() argument
1332 bcopy (name, var, namelen); in do_define()
1776 register char *name = filenames->name; in record_target_var() local
1786 percent = find_percent (name); in record_target_var()
1790 p = create_pattern_var (name, percent); in record_target_var()
1812 f = lookup_file (name); in record_target_var()
1814 f = enter_file (name); in record_target_var()
1819 fname = f->name; in record_target_var()
1838 int len = strlen(v->name); in record_target_var()
1840 gv = lookup_variable (v->name, len); in record_target_var()
1853 if (name != fname && (name < fname || name > fname + strlen (fname))) in record_target_var()
1854 free (name); in record_target_var()
1901 char *name = filenames->name; in record_files() local
1912 if (streq (name, ".POSIX")) in record_files()
1914 else if (streq (name, ".SECONDEXPANSION")) in record_files()
1917 implicit_percent = find_percent (name); in record_files()
1944 targets[target_idx] = name; in record_files()
1953 if (pattern && !pattern_matches (pattern, pattern_percent, name)) in record_files()
1954 error (flocp, _("target `%s' doesn't match the target pattern"), name); in record_files()
1962 && strchr (this->name, '$')); in record_files()
1969 f = enter_file (name); in record_files()
1973 _("target file `%s' has both : and :: entries"), f->name); in record_files()
1980 f->name); in record_files()
1989 f->name); in record_files()
1992 f->name); in record_files()
2068 f = lookup_file (name); in record_files()
2074 _("target file `%s' has both : and :: entries"), f->name); in record_files()
2075 f = enter_file (name); in record_files()
2096 char *o = patsubst_expand (buffer, name, pattern, percent, in record_files()
2107 if (f != 0 && name != f->name in record_files()
2108 && (name < f->name || name > f->name + strlen (f->name))) in record_files()
2110 free (name); in record_files()
2111 name = f->name; in record_files()
2115 if (streq (*default_goal_name, name) in record_files()
2117 || ! streq (default_goal_file->name, name))) in record_files()
2260 char *name; in parse_file_seq() local
2329 name = savestring ("", 0); in parse_file_seq()
2331 name = savestring ("./", 2); in parse_file_seq()
2356 name = savestring (qbase, p1 - qbase); in parse_file_seq()
2360 name = savestring (q, p - q); in parse_file_seq()
2365 new1->name = name; in parse_file_seq()
2380 if (new1->name[0] != '(' /* Don't catch "(%)" and suchlike. */ in parse_file_seq()
2381 && new1->name[strlen (new1->name) - 1] == ')' in parse_file_seq()
2382 && strchr (new1->name, '(') == 0) in parse_file_seq()
2389 while (n != 0 && (paren = strchr (n->name, '(')) == 0) in parse_file_seq()
2398 && n->name[0] != '(') in parse_file_seq()
2407 libname = (char *) alloca (paren - n->name + 1); in parse_file_seq()
2408 bcopy (n->name, libname, paren - n->name); in parse_file_seq()
2409 libname[paren - n->name] = '\0'; in parse_file_seq()
2416 free (n->name); in parse_file_seq()
2424 name = concat (libname, paren, ")"); in parse_file_seq()
2425 free (n->name); in parse_file_seq()
2426 n->name = name; in parse_file_seq()
2429 if (new1->name[1] == '\0') in parse_file_seq()
2439 free (lastn->name); in parse_file_seq()
2445 name = concat (libname, new1->name, ""); in parse_file_seq()
2446 free (new1->name); in parse_file_seq()
2447 new1->name = name; in parse_file_seq()
2457 name = concat (libname, new1->name, ")"); in parse_file_seq()
2458 free (new1->name); in parse_file_seq()
2459 new1->name = name; in parse_file_seq()
2935 tilde_expand (char *name) in tilde_expand() argument
2938 if (name[1] == '/' || name[1] == '\0') in tilde_expand()
2976 char *new = concat (home_dir, "", name + 1); in tilde_expand()
2986 char *userend = strchr (name + 1, '/'); in tilde_expand()
2989 pwent = getpwnam (name + 1); in tilde_expand()
3034 if (old->name[0] == '~') in multi_glob()
3036 char *newname = tilde_expand (old->name); in multi_glob()
3039 free (old->name); in multi_glob()
3040 old->name = newname; in multi_glob()
3045 if (ar_name (old->name)) in multi_glob()
3053 ar_parse_name (old->name, &arname, &memname); in multi_glob()
3054 free (old->name); in multi_glob()
3055 old->name = arname; in multi_glob()
3061 switch (glob (old->name, GLOB_NOCHECK|GLOB_ALTDIRFUNC, NULL, &gl)) in multi_glob()
3084 elt->name = (char *) xmalloc (alen + 1 + mlen + 2); in multi_glob()
3085 bcopy (gl.gl_pathv[i], elt->name, alen); in multi_glob()
3086 elt->name[alen] = '('; in multi_glob()
3087 bcopy (memname, &elt->name[alen + 1], mlen); in multi_glob()
3088 elt->name[alen + 1 + mlen] = ')'; in multi_glob()
3089 elt->name[alen + 1 + mlen + 1] = '\0'; in multi_glob()
3115 elt->name = xstrdup (gl.gl_pathv[i]); in multi_glob()
3121 free (old->name); in multi_glob()