Lines Matching full:names

37   size_t nnames;	/* Number of names.  */
38 char const **names; /* Sorted names of files in dir, followed by 0. */ member
39 char *data; /* Allocated storage for file names. */
42 /* Whether file names in directories should be compared with
53 /* Read a directory and get its vector of names. */
62 char const **names; in dir_read() local
71 dirdata->names = 0; in dir_read()
131 /* Create the `names' table from the `data' table. */ in dir_read()
132 if (PTRDIFF_MAX / sizeof *names - 1 <= nnames) in dir_read()
134 dirdata->names = names = xmalloc ((nnames + 1) * sizeof *names); in dir_read()
138 names[i] = data; in dir_read()
141 names[nnames] = 0; in dir_read()
145 /* Compare file names, returning a value compatible with strcmp. */
160 error (0, errno, _("cannot compare file names `%s' and `%s'"), in compare_names()
191 These names are relative to the original working directory.
226 char const **volatile names[2]; in diff_dirs() local
227 names[0] = dirdata[0].names; in diff_dirs()
228 names[1] = dirdata[1].names; in diff_dirs()
237 qsort (names[i], dirdata[i].nnames, sizeof *dirdata[i].names, in diff_dirs()
241 ignore all file names less than the specified starting name. */ in diff_dirs()
245 while (*names[0] && compare_names (*names[0], starting_file) < 0) in diff_dirs()
246 names[0]++; in diff_dirs()
247 while (*names[1] && compare_names (*names[1], starting_file) < 0) in diff_dirs()
248 names[1]++; in diff_dirs()
252 while (*names[0] || *names[1]) in diff_dirs()
257 int nameorder = (!*names[0] ? 1 : !*names[1] ? -1 in diff_dirs()
258 : compare_names (*names[0], *names[1])); in diff_dirs()
260 0 < nameorder ? 0 : *names[0]++, in diff_dirs()
261 nameorder < 0 ? 0 : *names[1]++); in diff_dirs()
269 if (dirdata[i].names) in diff_dirs()
270 free (dirdata[i].names); in diff_dirs()