|
dpkg 1.22.7-3-g89f48
|
#include <config.h>#include <compat.h>#include <stdlib.h>#include <dpkg/dpkg.h>#include <dpkg/string.h>#include <dpkg/path.h>#include <dpkg/fsys.h>Functions | |
| const char * | dpkg_fsys_set_dir (const char *dir) |
| Set current on-disk filesystem root directory. | |
| const char * | dpkg_fsys_get_dir (void) |
| Get current on-disk filesystem root directory. | |
| char * | dpkg_fsys_get_path (const char *pathpart) |
| Get a pathname to the current on-disk filesystem root directory. | |
| const char * dpkg_fsys_get_dir | ( | void | ) |
Get current on-disk filesystem root directory.
This function will take care of initializing the directory if it has not been initialized before.
Referenced by archivefiles(), conffderef(), dpkg_fsys_get_path(), and main().
| char * dpkg_fsys_get_path | ( | const char * | pathpart | ) |
Get a pathname to the current on-disk filesystem root directory.
This function returns an allocated string, which should be freed with free(2).
| pathpart | The pathpart to append to the new pathname. |
References dpkg_fsys_get_dir(), path_skip_slash_dotslash(), and str_fmt().
Referenced by set_root().
| const char * dpkg_fsys_set_dir | ( | const char * | dir | ) |
Set current on-disk filesystem root directory.
This function can be used to set the directory to a new value, or to reset it to a default value if dir is NULL.
| dir | The new filesystem root directory, or NULL to set to default. |
References m_strdup(), and path_trim_slash_slashdot().
Referenced by set_instdir(), and set_root().