Lines Matching refs:names
36 size_t nnames; /* Number of names. */
37 char const **names; /* Sorted names of files in dir, followed by 0. */
38 char *data; /* Allocated storage for file names. */
41 /* Whether file names in directories should be compared with strcoll. */
51 /* Read a directory and get its vector of names. */
60 char const **names;
69 dirdata->names = 0;
129 /* Create the `names' table from the `data' table. */
130 if (PTRDIFF_MAX / sizeof *names - 1 <= nnames)
132 dirdata->names = names = xmalloc ((nnames + 1) * sizeof *names);
136 names[i] = data;
139 names[nnames] = 0;
143 /* Compare file names, returning a value compatible with strcmp. */
162 error (0, errno, _("cannot compare file names `%s' and `%s'"),
193 These names are relative to the original working directory.
228 char const **volatile names[2];
229 names[0] = dirdata[0].names;
230 names[1] = dirdata[1].names;
239 qsort (names[i], dirdata[i].nnames, sizeof *dirdata[i].names,
243 ignore all file names less than the specified starting name. */
247 while (*names[0] && compare_names (*names[0], starting_file) < 0)
248 names[0]++;
249 while (*names[1] && compare_names (*names[1], starting_file) < 0)
250 names[1]++;
254 while (*names[0] || *names[1])
259 int nameorder = (!*names[0] ? 1 : !*names[1] ? -1
260 : compare_names (*names[0], *names[1]));
262 0 < nameorder ? 0 : *names[0]++,
263 nameorder < 0 ? 0 : *names[1]++);
271 if (dirdata[i].names)
272 free (dirdata[i].names);