Lines Matching defs:path
45 static inline int nfs_pathsegment(const char **path, char *buffer,
48 const char *src = *path;
57 /* Get the next byte from the path */
65 /* This logic just supports "//" sequences in the path name */
69 /* NULL terminate the parsed path segment */
73 /* Return next path and the terminating character */
76 *path = src;
84 nfs_debug_error("File name segment is too long: %d\n", *path);
236 * Given a directory file handle, and the path to file in the directory,
237 * return the file handle of the path and attributes of both the file and
241 * call message is variable length, depending upon the size of the path
358 * Given a path to something that may or may not be in the file system,
371 const char *path = relpath;
382 /* If no path was provided, then the root directory must be exactly what
386 if (*path == '\0' || strlen(path) == 0)
404 * to the path is found.
409 /* Extract the next path segment name. */
411 error = nfs_pathsegment(&path, buffer, &terminator);
421 /* Look-up this path segment */
431 /* If the terminator character in the path was the end of the string
433 * the path.
446 * the way to the final path target. In this case, make sure
456 buffer, path);
466 * Given a path to something that may or may not be in the file system,
479 const char *path = relpath;
484 /* Verify that a path was provided */
486 if (*path == '\0' || strlen(path) == 0)
499 /* Loop until the directory entry containing the path is found. */
503 /* Extract the next path segment name. */
505 error = nfs_pathsegment(&path, filename, &terminator);
515 /* If the terminator character in the path was the end of the string
529 /* Look-up the next path segment */
547 filename, path);