|
libxdg-basedir-1.2.0 1.2.0
|
Filesystem functions related to the XDG Base Directory specification. More...


Go to the source code of this file.
Functions | |
Filesystem-related XDG Base Directory Queries | |
| char * | xdgDataFind (const char *relativePath, xdgHandle *handle) |
| Find all existing data files corresponding to relativePath. | |
| char * | xdgConfigFind (const char *relativePath, xdgHandle *handle) |
| Find all existing config files corresponding to relativePath. | |
| FILE * | xdgDataOpen (const char *relativePath, const char *mode, xdgHandle *handle) |
| Open first possible data file corresponding to relativePath. | |
| FILE * | xdgConfigOpen (const char *relativePath, const char *mode, xdgHandle *handle) |
| Open first possible config file corresponding to relativePath. | |
| int | xdgMakePath (const char *path, mode_t mode) |
| Create path by recursively creating directories. | |
Filesystem functions related to the XDG Base Directory specification.
Definition in file basedir_fs.h.
| char * xdgConfigFind | ( | const char * | relativePath, |
| xdgHandle * | handle ) |
Find all existing config files corresponding to relativePath.
Consider as performing
on every possible filename and returning the successful filenames.
| relativePath | Path to scan for. |
| handle | Handle to data cache, initialized with xdgInitHandle(). |
| FILE * xdgConfigOpen | ( | const char * | relativePath, |
| const char * | mode, | ||
| xdgHandle * | handle ) |
Open first possible config file corresponding to relativePath.
Consider as performing
on every possible filename and returning the first successful filename or NULL.
| relativePath | Path to scan for. |
| mode | Mode with which to attempt to open files (see fopen modes). |
| handle | Handle to data cache, initialized with xdgInitHandle(). |
NULL. Client must use fclose to close file. | char * xdgDataFind | ( | const char * | relativePath, |
| xdgHandle * | handle ) |
Find all existing data files corresponding to relativePath.
Consider as performing
on every possible filename and returning the successful filenames.
| relativePath | Path to scan for. |
| handle | Handle to data cache, initialized with xdgInitHandle(). |
| FILE * xdgDataOpen | ( | const char * | relativePath, |
| const char * | mode, | ||
| xdgHandle * | handle ) |
Open first possible data file corresponding to relativePath.
Consider as performing
on every possible filename and returning the first successful filename or NULL.
| relativePath | Path to scan for. |
| mode | Mode with which to attempt to open files (see fopen modes). |
| handle | Handle to data cache, initialized with xdgInitHandle(). |
NULL. Client must use fclose to close file. | int xdgMakePath | ( | const char * | path, |
| mode_t | mode ) |
Create path by recursively creating directories.
This utility function is not part of the XDG specification, but nevertheless useful in context of directory manipulation.
| path | The path to be created. |
| mode | The permissions to use for created directories. This parameter is modified by the process's umask. For details, see mkdir(2)'s mode parameter. |