|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <ctype.h>#include <sys/stat.h>#include <pwd.h>#include <unistd.h>#include "mb/pg_wchar.h"#include "pg_config_paths.h"
Go to the source code of this file.
Macros | |
| #define | IS_PATH_VAR_SEP(ch) ((ch) == ':') |
| #define | skip_drive(path) (path) |
Enumerations | |
| enum | canonicalize_state { ABSOLUTE_PATH_INIT , ABSOLUTE_WITH_N_DEPTH , RELATIVE_PATH_INIT , RELATIVE_WITH_N_DEPTH , RELATIVE_WITH_PARENT_REF } |
| Enumerator | |
|---|---|
| ABSOLUTE_PATH_INIT | |
| ABSOLUTE_WITH_N_DEPTH | |
| RELATIVE_PATH_INIT | |
| RELATIVE_WITH_N_DEPTH | |
| RELATIVE_WITH_PARENT_REF | |
Definition at line 309 of file path.c.
Definition at line 1139 of file path.c.
Referenced by canonicalize_path_enc().
Definition at line 337 of file path.c.
References canonicalize_path_enc(), and PG_SQL_ASCII.
Referenced by AbsoluteConfigLocation(), add_tablespace_mapping(), adjust_data_dir(), check_canonical_path(), check_required_directory(), convert_and_check_filename(), create_script_for_old_cluster_deletion(), create_xlog_or_symlink(), CreateTableSpace(), find_in_path(), find_in_paths(), find_my_exec(), find_other_exec(), get_extension_control_directories(), get_tablespace_mapping(), GetConfFilesInDir(), main(), main(), make_absolute_path(), make_relative_path(), member_verify_header(), normalize_exec_path(), parseCommandLine(), scan_for_existing_tablespaces(), setup(), setup_bin_paths(), setup_pgdata(), SplitDirectoriesString(), tablespace_list_append(), and test_canonicalize_path().
Definition at line 344 of file path.c.
References ABSOLUTE_PATH_INIT, ABSOLUTE_WITH_N_DEPTH, append_subdir_to_path(), Assert, encoding, fb(), RELATIVE_PATH_INIT, RELATIVE_WITH_N_DEPTH, RELATIVE_WITH_PARENT_REF, skip_drive, trim_directory(), and trim_trailing_separator().
Referenced by canonicalize_path(), do_copy(), exec_command_edit(), exec_command_write(), and process_file().
Definition at line 258 of file path.c.
References fb(), MAXPGPATH, and PG_SQL_ASCII.
Referenced by get_configdata().
Definition at line 690 of file path.c.
References fb(), IS_DIR_SEP, pg_tolower(), s1, and s2.
Referenced by make_relative_path().
Definition at line 110 of file path.c.
References fb(), filename, IS_DIR_SEP, skip_drive, and unconstify.
Referenced by check_restricted_library_name(), check_valid_extension_name(), check_valid_version_name(), expand_dynamic_library_name(), find_in_path(), find_my_exec(), load_external_function(), load_libraries(), and substitute_path_macro().
Definition at line 127 of file path.c.
References fb(), IS_PATH_VAR_SEP, and unconstify.
Referenced by find_in_path(), find_my_exec(), and get_extension_control_directories().
Definition at line 974 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata().
Definition at line 911 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata(), process_psqlrc(), and set_pglocale_pgservice().
Definition at line 1005 of file path.c.
References buf, fb(), MAXPGPATH, snprintf, and strlcpy().
Referenced by expand_tilde(), initializeInput(), and process_psqlrc().
Definition at line 983 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata().
Definition at line 920 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata(), and main().
Definition at line 938 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata().
Definition at line 947 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata().
Definition at line 965 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata(), pg_bindtextdomain(), and set_pglocale_pgservice().
Definition at line 992 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata().
Definition at line 1068 of file path.c.
References trim_directory().
Referenced by AbsoluteConfigLocation(), dbase_redo(), destroy_tablespace_directories(), fsync_parent_path(), main(), and process_file().
Definition at line 929 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata(), and main().
Definition at line 956 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata(), getInstallationPaths(), and InitStandaloneProcess().
Definition at line 652 of file path.c.
References argv0, EXE, fb(), fprintf, last_dir_separator(), pg_strcasecmp(), progname, and skip_drive.
Referenced by get_opts(), handle_help_version_opts(), main(), main(), main(), parseCommandLine(), pg_logging_init(), and regression_main().
Definition at line 902 of file path.c.
References fb(), make_relative_path(), and my_exec_path.
Referenced by get_configdata(), get_extension_control_directories(), get_tsearch_config_filename(), ParseTzFile(), pg_TZDIR(), and setup_bin_paths().
Definition at line 286 of file path.c.
References fb(), MAXPGPATH, skip_drive, snprintf, and strlcpy().
Referenced by AbsoluteConfigLocation(), find_my_exec(), GetConfFilesInDir(), main(), make_relative_path(), and process_file().
Definition at line 145 of file path.c.
References fb(), filename, IS_DIR_SEP, skip_drive, and unconstify.
Referenced by check_file_excluded(), decide_file_action(), ECPGconnect(), find_other_exec(), get_progname(), main(), pg_get_loaded_modules(), sendDir(), setup(), setup_bin_paths(), and should_allow_existing_directory().
Definition at line 807 of file path.c.
References _, buf, canonicalize_path(), elog, ereport, errcode(), errmsg(), ERROR, fb(), fprintf, free, is_absolute_path, malloc, MAXPGPATH, and sprintf.
Referenced by regression_main(), SelectConfigFiles(), and SetDataDir().
Definition at line 236 of file path.c.
References filename.
Referenced by BuildRestoreCommand(), main(), and shell_archive_file().
|
static |
Definition at line 738 of file path.c.
References bin_path, canonicalize_path(), dir_strcmp(), fb(), i, IS_DIR_SEP, join_path_components(), MAXPGPATH, my_exec_path, strlcpy(), trim_directory(), and trim_trailing_separator().
Referenced by get_doc_path(), get_etc_path(), get_html_path(), get_include_path(), get_includeserver_path(), get_lib_path(), get_locale_path(), get_man_path(), get_pkginclude_path(), get_pkglib_path(), and get_share_path().
Definition at line 577 of file path.c.
References skip_drive.
Referenced by path_is_relative_and_below_cwd().
Definition at line 637 of file path.c.
References fb(), and IS_DIR_SEP.
Referenced by convert_and_check_filename(), create_script_for_old_cluster_deletion(), CreateTableSpace(), and parseCommandLine().
Definition at line 604 of file path.c.
References fb(), is_absolute_path, IS_DIR_SEP, and path_contains_parent_reference().
Referenced by convert_and_check_filename().
Definition at line 1085 of file path.c.
References fb(), IS_DIR_SEP, and skip_drive.
Referenced by canonicalize_path_enc(), get_parent_directory(), and make_relative_path().
Definition at line 1117 of file path.c.
References fb(), IS_DIR_SEP, and skip_drive.
Referenced by canonicalize_path_enc(), and make_relative_path().