Lines Matching defs:path

67 static int cleanup_dotdot_path(char *path);
661 scsi_release(char *path)
668 P_DPRINTF(" scsi_release: Release: Path %s\n", path);
669 if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1)
688 scsi_reserve(char *path)
695 P_DPRINTF(" scsi_reserve: Reserve: Path %s\n", path);
696 if ((fd = open(path, O_NDELAY | O_RDONLY)) == -1)
746 print_inq_data(char *arg_path, char *path, L_inquiry inq, uchar_t *serial,
840 * arg_path is the path sent to luxadm by the user. if arg_path
841 * is a /devices path, then we do not need to print out physical
842 * path info
844 if (strcmp(arg_path, path) != 0 &&
849 (void) fprintf(stdout, "\n %s\n", path);
1118 cleanup_dotdot_path(char *path)
1125 dotdot = strstr(path, "/../");
1138 if (dotdot == path) {
1139 strcpy(holder, &path[3]); /* strip "/.." */
1140 strcpy(path, holder);
1151 previous_slash = strrchr(path, '/');
1154 * hmm, somethings wrong. path looks something
1160 * Now truncate the path just after the previous '/'
1164 (void) strcat(path, dotdot+4);
1175 * NOTE: If the path is relative, it will be forced into
1176 * an absolute path by pre-pending the pwd to it.
1189 /* return NULL if path is NULL */
1198 * First make sure the path is absolute. If not, make it.
1199 * If it's already an absolute path, we have no need
1222 * Clean up any "../"s that are in the path
1228 * source is now an absolute path to the link we're
1234 * the lstat. If lstat succeeds, return the path
1236 * Note: osDevName input with /devices path from
1333 O_DPRINTF("Internal error... corrupt path.\n");
1336 /* Now strip off just the directory path */
1400 * at least twice. The first time will get the path count
1402 * time will get the path_info for each path.
1405 * code is running. If the path count increases between the
1413 /* free physical path */
1447 * Allocate space for path properties returned by driver
1484 /* then a new path was added */
1512 get_mode_page(char *path, uchar_t **pg_buf)
1518 if ((fd = open(path, O_NDELAY | O_RDWR)) == -1)