iPXE
|
Network File System protocol URI handling functions. More...
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <libgen.h>
#include <ipxe/nfs_uri.h>
Go to the source code of this file.
Functions | |
int | nfs_uri_init (struct nfs_uri *nfs_uri, const struct uri *uri) |
char * | nfs_uri_mountpoint (const struct nfs_uri *uri) |
int | nfs_uri_next_mountpoint (struct nfs_uri *uri) |
int | nfs_uri_symlink (struct nfs_uri *uri, const char *symlink) |
char * | nfs_uri_next_path_component (struct nfs_uri *uri) |
void | nfs_uri_free (struct nfs_uri *uri) |
Network File System protocol URI handling functions.
Definition in file nfs_uri.c.
Definition at line 32 of file nfs_uri.c.
References basename(), dirname(), EINVAL, ENOMEM, nfs_uri::filename, free, nfs_uri::lookup_pos, nfs_uri::mountpoint, NULL, nfs_uri::path, uri::path, strchr(), and strdup().
Referenced by nfs_parse_uri().
char* nfs_uri_mountpoint | ( | const struct nfs_uri * | uri | ) |
Definition at line 54 of file nfs_uri.c.
Referenced by nfs_mount_deliver(), nfs_mount_step(), and nfs_parse_uri().
int nfs_uri_next_mountpoint | ( | struct nfs_uri * | uri | ) |
int nfs_uri_symlink | ( | struct nfs_uri * | uri, |
const char * | symlink | ||
) |
char* nfs_uri_next_path_component | ( | struct nfs_uri * | uri | ) |
Definition at line 121 of file nfs_uri.c.
References nfs_uri_next_path_component(), NULL, uri::path, and start.
Referenced by nfs_step(), and nfs_uri_next_path_component().
void nfs_uri_free | ( | struct nfs_uri * | uri | ) |
Definition at line 143 of file nfs_uri.c.
References free, NULL, and uri::path.
Referenced by nfs_free(), nfs_open(), and nfs_parse_uri().