Lines Matching refs:name

26 extern char *vmsify PARAMS ((char *name, int type));
148 vms_hash (char *name) in vms_hash() argument
153 while (*name) in vms_hash()
155 unsigned char uc = *name; in vms_hash()
161 name++; in vms_hash()
174 vmsstat_dir (char *name, struct stat *st) in vmsstat_dir() argument
180 dir = opendir (name); in vmsstat_dir()
184 s = strchr (name, ':'); /* find device */ in vmsstat_dir()
188 st->st_dev = (char *)vms_hash (name); in vmsstat_dir()
195 s = name; in vmsstat_dir()
341 char *name; /* Name of the directory. */ member
352 return_ISTRING_HASH_1 (((struct directory const *) key)->name); in directory_hash_1()
358 return_ISTRING_HASH_2 (((struct directory const *) key)->name); in directory_hash_2()
364 return_ISTRING_COMPARE (((struct directory const *) x)->name, in directory_hash_cmp()
365 ((struct directory const *) y)->name); in directory_hash_cmp()
382 char *name; /* Name of the file. */ member
390 return_ISTRING_HASH_1 (((struct dirfile const *) key)->name); in dirfile_hash_1()
396 return_ISTRING_HASH_2 (((struct dirfile const *) key)->name); in dirfile_hash_2()
407 return_ISTRING_COMPARE (x->name, y->name); in dirfile_hash_cmp()
415 static struct directory *find_directory PARAMS ((char *name));
420 find_directory (char *name) in find_directory() argument
436 if ((*name == '.') && (*(name+1) == 0)) in find_directory()
437 name = "[]"; in find_directory()
439 name = vmsify (name,1); in find_directory()
442 dir_key.name = name; in find_directory()
452 p = name + strlen (name); in find_directory()
454 dir->name = savestring (name, p - name); in find_directory()
467 r = vmsstat_dir (name, &st); in find_directory()
469 EINTRLOOP (r, stat (name, &st)); in find_directory()
495 dc_key.path_key = w32_path = w32ify (name, 1); in find_directory()
550 ENULLLOOP (dc->dirstream, opendir (name)); in find_directory()
622 dirfile_key.name = filename; in dir_contents_file_exists_p()
694 dirfile_key.name = d->d_name; in dir_contents_file_exists_p()
706 df->name = savestring (d->d_name, len); in dir_contents_file_exists_p()
743 file_exists_p (char *name) in file_exists_p() argument
750 if (ar_name (name)) in file_exists_p()
751 return ar_member_date (name) != (time_t) -1; in file_exists_p()
755 dirend = strrchr (name, ']'); in file_exists_p()
757 dirend = strrchr (name, ':'); in file_exists_p()
759 return dir_file_exists_p ("[]", name); in file_exists_p()
761 dirend = strrchr (name, '/'); in file_exists_p()
765 char *bslash = strrchr(name, '\\'); in file_exists_p()
769 if (!dirend && name[0] && name[1] == ':') in file_exists_p()
770 dirend = name + 1; in file_exists_p()
775 return dir_file_exists_p (".", name); in file_exists_p()
777 return dir_file_exists_p ("", name); in file_exists_p()
782 if (dirend == name) in file_exists_p()
788 if (dirend < name + 3 && name[1] == ':' && in file_exists_p()
792 dirname = (char *) alloca (dirend - name + 1); in file_exists_p()
793 bcopy (name, dirname, dirend - name); in file_exists_p()
794 dirname[dirend - name] = '\0'; in file_exists_p()
878 new->name = xstrdup (filename); in file_impossible()
955 dirfile_key.name = filename; in file_impossible_p()
970 return find_directory (dir)->name; in dir_name()
995 printf (_("# %s: could not be stat'd.\n"), dir->name); in print_dir_data_base()
1000 dir->name, dir->contents->path_key,dir->contents->mtime); in print_dir_data_base()
1004 dir->name, dir->contents->dev, in print_dir_data_base()
1009 dir->name, (long int) dir->contents->dev, in print_dir_data_base()
1036 dir->name, dir->contents->path_key, dir->contents->mtime); in print_dir_data_base()
1040 dir->name, dir->contents->dev, in print_dir_data_base()
1045 dir->name, in print_dir_data_base()
1162 memcpy (d->d_name, df->name, len); in read_dirstream()