Lines Matching defs:aliases
135 * makealiaslist() Builds a list of aliases from the list of
138 * devices aliases
214 char **aliases; /* List of constraining devices */
215 char **returnlist; /* List of ptrs to aliases to return */
225 /* Make sure the exclude/include list is all aliases */
226 aliases = makealiaslist(devices);
227 if (devices && !aliases)
247 if (entry = oktoaddtolist(entry, devices, aliases, options)) {
265 freealiaslist(aliases);
271 * char *oktoaddtolist(devtabentry, devices, aliases, options)
274 * char **aliases
285 * aliases The aliases of the devices specified by the caller
294 char **aliases, /* List of alias of those devices */
302 if (devices && aliases) {
306 while (!found && *aliases) {
307 if (strcmp(devtabentry, *aliases) == 0) found = TRUE;
310 aliases++;
651 * char **devices List of aliases
653 * Builds a list of aliases of the devices in the "devices"
657 * will be a one-to-one correspondence of devices to aliases
661 * devices The list of devices to derive aliases from
664 * The address of the list of addresses of aliases. The list
665 * and aliases will be allocated using the malloc() function.
674 char **aliases; /* List being returned */
689 if (aliases = malloc(n*sizeof (char *))) {
692 qq = aliases;
703 for (qq = aliases; *qq; qq++) free(*qq);
704 free(aliases);
705 aliases = NULL;
716 aliases = NULL; /* No constraint list */
719 return (aliases);
732 * aliases that is to be freed