Lines Matching defs:path
27 * return the full path of the current program in path
41 prog(const char* command, char* path, size_t size)
55 if ((n = readlink(_PROC_PROG, path, size)) > 0)
58 path[n] = 0;
67 strcpy(path, s);
76 t = path;
77 e = path + size - 1;
93 return (t - path) + n;
99 memcpy(path, command, n);
106 pathprog(const char* command, char* path, size_t size)
111 if ((n = prog(command, path, size)) > 0 && n <= size && *path != '/')
113 if (!pathpath(buf, path, NiL, PATH_REGULAR|PATH_EXECUTE))
116 memcpy(path, buf, n);