Lines Matching defs:path
23 "Usage: %s [ <options> ] [ <path> ]\n"
25 "when no arguments are given. When <path> is specified, the architecture\n"
26 "associated with that path is printed. The options allow to print the\n"
50 // get the system installation location path
66 BPath path;
68 B_FIND_PATH_BIN_DIRECTORY, NULL, 0, path) != B_OK
69 || !binDirectories.Add(path.Path())) {
75 // bin path we encounter implies the architecture.
82 // normalize the path, but skip a relative one
83 BPath path;
85 || path.SetTo(paths.StringAt(i), NULL, true) != B_OK) {
89 int32 index = binDirectories.IndexOf(path.Path());
138 // The remaining argument is the optional path.
139 const char* path = optind < argc ? argv[optind++] : NULL;
143 // only one of path, printPrimary, printSecondary may be specified
144 if (int(path != NULL) + int(printPrimary) + int(printSecondary) > 1)
147 if (path != NULL) {
148 // architecture for given path
149 printf("%s\n", guess_architecture_for_path(path));