Lines Matching defs:supplied
92 static int vol_lookup(char *supplied, char *found);
95 static int lookup_device(char *supplied, char *found);
1309 * and takes the user supplied name and stores it inside the node.
1420 * Builds an open()able device path from a user supplied node which can be
1426 lookup_device(char *supplied, char *found)
1436 if ((stat(supplied, &statbuf) == 0) && S_ISCHR(statbuf.st_mode) &&
1437 ((fd = open(supplied, O_RDONLY|O_NDELAY)) >= 0)) {
1439 (void) strlcpy(found, supplied, PATH_MAX);
1448 if (strncmp(supplied, "/dev/rdsk/", 10) == 0)
1449 return (vol_lookup(supplied, found));
1450 if (strncmp(supplied, "/dev/dsk/", 9) == 0) {
1452 (char *)strrchr(supplied, '/'));
1456 (void) strlcpy(found, supplied, PATH_MAX);
1464 if ((strncmp(supplied, "cdrom", 5) != 0) &&
1465 (strlen(supplied) < 32)) {
1467 supplied);
1479 return (vol_name_to_dev_node(supplied, found));
1594 * supplied pathname which is of the form of /dev/rdsk/cxtxdxsx
1597 vol_lookup(char *supplied, char *found)
1602 (void) strlcpy(tmpstr, supplied, PATH_MAX);