Lines Matching defs:directory
357 * If the path we have so far is a directory,
358 * look for a format.dat file in that directory,
1307 char *directory = "/dev/rdsk";
1312 * Change directory to the device directory. This
1313 * gives us the most efficient access to that directory.
1317 err_print("Cannot get current directory - %s\n",
1321 if (chdir(directory) == -1) {
1322 err_print("Cannot set directory to %s - %s\n",
1323 directory, strerror(errno));
1357 * Open the device directory
1361 directory, strerror(errno));
1383 (void) strcpy(path, directory);
1404 (void) strcpy(path, directory);
1412 * Close the directory
1415 err_print("Cannot close directory %s - %s\n",
1416 directory, strerror(errno));
1428 err_print("Cannot set directory to %s - %s\n",
1492 * reference, and open that file in the device directory.
1501 * device directory.
1507 char *directory = "/dev/rdsk/";
1519 (void) strcpy(path, directory);
1525 * directory on 5.0. Here, we only accept the
1535 * directory itself.
1537 (void) strcpy(path, directory);
2321 * directory on 5.0. Here, we only accept the
2783 * Get the current directory, and
2813 * Break up the pathname into the directory
2815 * chdir()'ing to the directory allows us to
2958 char *directory = "/dev/rdsk/";
2966 len = strlen(directory);
2969 if (strncmp(directory, *disklist, len) == 0) {