Lines Matching defs:path
92 * This function extracts the next part of the given path contained and puts it
93 * in token. It returns a pointer to the remainder of the path.
95 static const char *next(const char *path, char *token)
100 while (*path == '/') {
101 ++path;
105 cursor = path;
106 if (*path != '\0') {
255 * This function returns a channel given a path.
259 chan_t *path_to_channel(const char *path, int mode)
266 if (path == NULL) {
270 switch (path[0]) {
273 path_next = path;
276 path_next = next(path + 1, elem);
474 * the given path.
476 int open(const char *path, int mode)
480 if (path == NULL) {
488 channel = path_to_channel(path, mode);
559 * directory of the file in path.
562 int stat(const char *path, dir_t *dir)
569 if ((path == NULL) || (dir == NULL)) {
573 len = strlen(path);
578 memcpy(dirname, path, len);
597 r = devtab[channel->index]->stat(channel, path, dir);
722 * This function registers the channel associated to the path new as a mount
767 * This function registers the path new as a mount point for the path old.
787 * This function calls the mount function of the driver associated to the path
789 * It mounts the path srv on the path where.