Lines Matching defs:path

103 	{ "list       [-l] [-v] [<path> [<connection>]]", "list", cmd_list },
104 { "online <path> <port>", "online", cmd_online },
105 { "offline [-f] [-q] <path> <port>", "offline", cmd_offline },
106 { "enable <path> <connector>", "enable", cmd_enable },
107 { "disable [-f] [-q] <path> <connector>", "disable", cmd_disable },
108 { "poweron <path> <connector>", "poweron", cmd_poweron },
109 { "poweroff [-f] [-q] <path> <connector>", "poweroff", cmd_poweroff },
110 { "get -o <options> <path> <connector>", "get", cmd_getpriv },
111 { "set -o <options> <path> <connector>", "set", cmd_setpriv }
115 { "changestate [-f] [-q] -s <state> <path> <connection>",
129 { "list-path", no_argument, 0, 'l' },
157 #define EXIT_ENOENT 2 /* path or connection doesn't exist */
246 char *path = NULL;
267 parse_target(argc, argv, &path, &connection, usage_str);
269 /* Default path is "/" */
270 if (path == NULL)
271 path = "/";
274 if ((root = hp_init(path, connection, flags)) == NULL) {
298 char *path = NULL;
304 parse_target(argc, argv, &path, &connection, usage_str);
307 if ((path == NULL) || (connection == NULL)) {
314 if ((root = hp_init(path, connection, 0)) == NULL) {
358 char *path = NULL;
366 parse_target(argc, argv, &path, &connection, usage_str);
369 if ((path == NULL) || (connection == NULL)) {
376 if ((root = hp_init(path, connection, 0)) == NULL) {
415 char *path = NULL;
421 parse_target(argc, argv, &path, &connection, usage_str);
424 if ((path == NULL) || (connection == NULL)) {
431 if ((root = hp_init(path, connection, 0)) == NULL) {
470 char *path = NULL;
478 parse_target(argc, argv, &path, &connection, usage_str);
481 if ((path == NULL) || (connection == NULL)) {
488 if ((root = hp_init(path, connection, 0)) == NULL) {
536 char *path = NULL;
542 parse_target(argc, argv, &path, &connection, usage_str);
545 if ((path == NULL) || (connection == NULL)) {
552 if ((root = hp_init(path, connection, 0)) == NULL) {
600 char *path = NULL;
608 parse_target(argc, argv, &path, &connection, usage_str);
611 if ((path == NULL) || (connection == NULL)) {
618 if ((root = hp_init(path, connection, 0)) == NULL) {
656 char *path = NULL;
665 parse_target(argc, argv, &path, &connection, usage_str);
667 /* Options, path, and connection are all required */
668 if ((options == NULL) || (path == NULL) || (connection == NULL)) {
675 if ((root = hp_init(path, connection, 0)) == NULL) {
720 char *path = NULL;
729 parse_target(argc, argv, &path, &connection, usage_str);
731 /* Options, path, and connection are all required */
732 if ((options == NULL) || (path == NULL) || (connection == NULL)) {
739 if ((root = hp_init(path, connection, 0)) == NULL) {
787 char *path = NULL;
815 parse_target(argc, argv, &path, &connection, usage_str);
817 /* State, path, and connection are all required */
818 if ((state == -1) || (path == NULL) || (connection == NULL)) {
832 if ((root = hp_init(path, connection, 0)) == NULL) {
946 * Parse the target path and connection name from the command line.
1074 char path[MAXPATHLEN];
1078 if (hp_path(node, path, connection) != 0)
1080 (void) printf("%s", path);
1116 static char path[MAXPATHLEN];
1121 if (hp_path(node, path, connection) == 0)
1122 (void) printf("%s:\n", path);
1215 gettext("ERROR: no such path or connection.\n"));