Lines Matching defs:path

756  * Parse a [user@]host:[path] string.
757 * Caller must free returned user, host and path.
761 * If path was not specified then *pathp will be set to ".".
767 char *user = NULL, *host = NULL, *path = NULL;
780 /* Check for remote syntax: [user@]host:[path] */
784 /* Extract optional path */
788 path = xstrdup(tmp);
812 *pathp = path;
813 path = NULL;
820 free(path);
948 * Parse an (scp|ssh|sftp)://[user@]host[:port][/path] URI.
950 * Either user or path may be url-encoded (but not host or port).
951 * Caller must free returned user, host and path.
956 * If path was not specified then *pathp will be set to NULL.
964 char *user = NULL, *host = NULL, *path = NULL;
1020 /* Extract optional path */
1021 if ((path = urldecode(tmp)) == NULL)
1038 *pathp = path;
1039 path = NULL;
1046 free(path);
1129 const char *path = NULL, *user = NULL;
1142 path = NULL;
1146 path = NULL; /* ~/ */
1148 path = copy; /* ~/path */
1151 if ((path = strchr(copy, '/')) != NULL) {
1152 copy[path - copy] = '\0';
1153 path++;
1154 path += strspn(path, "/");
1155 if (*path == '\0') /* ~user/ */
1156 path = NULL;
1157 /* else ~user/path */
1175 slash ? "/" : "", path != NULL ? path : "")) <= 0) {
1832 unix_listener(const char *path, int backlog, int unlink_first)
1839 if (strlcpy(sunaddr.sun_path, path,
1841 error_f("path \"%s\" too long for Unix domain socket", path);
1854 if (unlink(path) != 0 && errno != ENOENT)
1855 error("unlink(%s): %.100s", path, strerror(errno));
1859 error_f("cannot bind to path %s: %s", path, strerror(errno));
1866 error_f("cannot listen on path %s: %s", path, strerror(errno));
1868 unlink(path);
2125 * Check a given path for security. This is defined as all components
2126 * of the path to the file must be owned by either the owner of
2165 /* for each component of the canonical path, walking upwards */
2186 * dirname should always complete with a "/" path,
2450 /* check if path is absolute */
2452 path_absolute(const char *path)
2454 return (*path == '/') ? 1 : 0;
2669 error("%s path is not absolute", tag);
2924 * Returns zero if the library at 'path' contains symbol 's', nonzero
2928 lib_contains_symbol(const char *path, const char *s)
2936 if ((r = nlist(path, nl)) == -1) {
2937 error_f("nlist failed for %s", path);
2941 error_f("library %s does not contain symbol %s", path, s);