Lines Matching defs:path
97 check(const char *path)
104 if ((pathd = strdup(path)) == NULL)
110 warnx("%s: empty pathname", path);
114 warnx("%s: contains a component starting with '-'", path);
134 warnx("%s: %s: component too long (limit %ld)", path,
140 warn("%s: %.*s", path, (int)(strlen(pathd) -
147 "character", path, p);
168 pathmax = pathconf(path, _PC_PATH_MAX);
173 if (pathmax != -1 && strlen(path) >= (size_t)pathmax) {
174 warnx("%s: path too long (limit %ld)", path, pathmax - 1);
186 * Check whether a path component contains only portable characters.
189 portable(const char *path)
197 s = strspn(path, charset);
198 if (path[s] != '\0')