Lines Matching defs:path
110 char path[NG_PATHSIZ];
116 * We expect a node path, one or more spaces, a command, one or more
121 if (len >= sizeof path) {
122 log_Printf(LogWARN, "%s: %.*s: Node path too long\n",
126 memcpy(path, data, len);
127 path[len] = '\0';
154 if (NgSendAsciiMsg(dev->cs, path, fmt, data) < 0) {
156 dev->dev.name, path, fmt, data, strerror(errno));
172 char path[NG_PATHSIZ];
197 if (NgRecvAsciiMsg(dev->cs, rep, sizeof msgbuf, path)) {
470 char path[NG_PATHSIZ];
495 *lasthook = *path = '\0';
564 snprintf(path, sizeof path, "%s:", nodename);
582 if (NgSendMsg(dev->cs, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS,
585 p->link.name, path, strerror(errno));
601 path, ninfo->id);
614 p->link.name, nlink->ourhook, path);
636 p->link.name, path, mkp.ourhook, mkp.peerhook, nodetype);
638 if (NgSendMsg(dev->cs, path, NGM_GENERIC_COOKIE,
641 path, nodetype, strerror(errno));
645 len = strlen(path);
646 snprintf(path + len, sizeof path - len, "%s%s",
647 path[len - 1] == ':' ? "" : ".", lasthook);
651 if (NgSendMsg(dev->cs, path, NGM_GENERIC_COOKIE, NGM_LISTHOOKS,
654 p->link.name, path, strerror(errno));
671 NgNameNode(dev->cs, path, "%s", nodename) < 0) {
673 p->link.name, path, strerror(errno));
694 snprintf(ngc.path, sizeof ngc.path, "%s", path);
699 ngc.ourhook, ngc.path, ngc.peerhook);
703 "nodes: %s\n", path, strerror(errno));