PostgreSQL Source Code
git master
|
#include <ctype.h>
#include <netdb.h>
#include <pwd.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Go to the source code of this file.
Macros | |
#define | PGINVALID_SOCKET (-1) |
#define | IS_DIR_SEP(ch) ((ch) == '/') |
#define | is_absolute_path(filename) |
#define | ALL_CONNECTION_FAILURE_ERRNOS |
#define | PG_BACKEND_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n" |
#define | EXE "" |
#define | DEVNULL "/dev/null" |
#define | USE_REPL_SNPRINTF 1 |
#define | vsnprintf pg_vsnprintf |
#define | snprintf pg_snprintf |
#define | vsprintf pg_vsprintf |
#define | sprintf pg_sprintf |
#define | vfprintf pg_vfprintf |
#define | fprintf pg_fprintf |
#define | vprintf pg_vprintf |
#define | printf(...) pg_printf(__VA_ARGS__) |
#define | strerror pg_strerror |
#define | strerror_r pg_strerror_r |
#define | PG_STRERROR_R_BUFLEN 256 /* Recommended buffer size for strerror_r */ |
#define | TIMEZONE_GLOBAL timezone |
#define | TZNAME_GLOBAL tzname |
#define | closesocket close |
#define | PG_IOLBF _IOLBF |
#define | pgoff_t off_t |
#define | RTLD_NOW 1 |
#define | RTLD_GLOBAL 0 |
#define | qsort(a, b, c, d) pg_qsort(a,b,c,d) |
#define | pg_backend_random pg_strong_random |
Typedefs | |
typedef int | pgsocket |
typedef int(* | qsort_arg_comparator) (const void *a, const void *b, void *arg) |
typedef void(* | pqsigfunc) (int signo) |
Functions | |
bool | pg_set_noblock (pgsocket sock) |
bool | pg_set_block (pgsocket sock) |
bool | has_drive_prefix (const char *filename) |
char * | first_dir_separator (const char *filename) |
char * | last_dir_separator (const char *filename) |
char * | first_path_var_separator (const char *pathlist) |
void | join_path_components (char *ret_path, const char *head, const char *tail) |
void | canonicalize_path (char *path) |
void | make_native_path (char *path) |
void | cleanup_path (char *path) |
bool | path_contains_parent_reference (const char *path) |
bool | path_is_relative_and_below_cwd (const char *path) |
bool | path_is_prefix_of_path (const char *path1, const char *path2) |
char * | make_absolute_path (const char *path) |
const char * | get_progname (const char *argv0) |
void | get_share_path (const char *my_exec_path, char *ret_path) |
void | get_etc_path (const char *my_exec_path, char *ret_path) |
void | get_include_path (const char *my_exec_path, char *ret_path) |
void | get_pkginclude_path (const char *my_exec_path, char *ret_path) |
void | get_includeserver_path (const char *my_exec_path, char *ret_path) |
void | get_lib_path (const char *my_exec_path, char *ret_path) |
void | get_pkglib_path (const char *my_exec_path, char *ret_path) |
void | get_locale_path (const char *my_exec_path, char *ret_path) |
void | get_doc_path (const char *my_exec_path, char *ret_path) |
void | get_html_path (const char *my_exec_path, char *ret_path) |
void | get_man_path (const char *my_exec_path, char *ret_path) |
bool | get_home_path (char *ret_path) |
void | get_parent_directory (char *path) |
char ** | pgfnames (const char *path) |
void | pgfnames_cleanup (char **filenames) |
void | set_pglocale_pgservice (const char *argv0, const char *app) |
int | find_my_exec (const char *argv0, char *retpath) |
int | find_other_exec (const char *argv0, const char *target, const char *versionstr, char *retpath) |
char * | pipe_read_line (char *cmd, char *line, int maxsize) |
void | pg_usleep (long microsec) |
int | pg_strcasecmp (const char *s1, const char *s2) |
int | pg_strncasecmp (const char *s1, const char *s2, size_t n) |
unsigned char | pg_toupper (unsigned char ch) |
unsigned char | pg_tolower (unsigned char ch) |
unsigned char | pg_ascii_toupper (unsigned char ch) |
unsigned char | pg_ascii_tolower (unsigned char ch) |
int | pg_vsnprintf (char *str, size_t count, const char *fmt, va_list args) |
int | pg_snprintf (char *str, size_t count, const char *fmt,...) pg_attribute_printf(3 |
int int | pg_vsprintf (char *str, const char *fmt, va_list args) |
int | pg_sprintf (char *str, const char *fmt,...) pg_attribute_printf(2 |
int int | pg_vfprintf (FILE *stream, const char *fmt, va_list args) |
int | pg_fprintf (FILE *stream, const char *fmt,...) pg_attribute_printf(2 |
int int | pg_vprintf (const char *fmt, va_list args) |
int | pg_printf (const char *fmt,...) pg_attribute_printf(1 |
int | pg_strfromd (char *str, size_t count, int precision, double value) |
char * | pg_strerror (int errnum) |
char * | pg_strerror_r (int errnum, char *buf, size_t buflen) |
const char * | pg_strsignal (int signum) |
int | pclose_check (FILE *stream) |
bool | rmtree (const char *path, bool rmtopdir) |
double | pg_erand48 (unsigned short xseed[3]) |
long | pg_lrand48 (void) |
long | pg_jrand48 (unsigned short xseed[3]) |
void | pg_srand48 (long seed) |
int | fls (int mask) |
int | getpeereid (int sock, uid_t *uid, gid_t *gid) |
void | explicit_bzero (void *buf, size_t len) |
float | strtof (const char *nptr, char **endptr) |
int | link (const char *src, const char *dst) |
char * | mkdtemp (char *path) |
int | inet_aton (const char *cp, struct in_addr *addr) |
ssize_t | pg_pread (int fd, void *buf, size_t nbyte, off_t offset) |
ssize_t | pg_pwrite (int fd, const void *buf, size_t nbyte, off_t offset) |
size_t | strlcat (char *dst, const char *src, size_t siz) |
size_t | strlcpy (char *dst, const char *src, size_t siz) |
size_t | strnlen (const char *str, size_t maxlen) |
long | random (void) |
int | setenv (const char *name, const char *value, int overwrite) |
int | unsetenv (const char *name) |
void | srandom (unsigned int seed) |
void * | dlopen (const char *file, int mode) |
void * | dlsym (void *handle, const char *symbol) |
int | dlclose (void *handle) |
char * | dlerror (void) |
int | pqGetpwuid (uid_t uid, struct passwd *resultbuf, char *buffer, size_t buflen, struct passwd **result) |
int | pqGethostbyname (const char *name, struct hostent *resultbuf, char *buffer, size_t buflen, struct hostent **result, int *herrno) |
void | pg_qsort (void *base, size_t nel, size_t elsize, int(*cmp)(const void *, const void *)) |
int | pg_qsort_strcmp (const void *a, const void *b) |
void | qsort_arg (void *base, size_t nel, size_t elsize, qsort_arg_comparator cmp, void *arg) |
int | pg_get_encoding_from_locale (const char *ctype, bool write_message) |
char * | pg_inet_net_ntop (int af, const void *src, int bits, char *dst, size_t size) |
void | pg_strong_random_init (void) |
bool | pg_strong_random (void *buf, size_t len) |
int | pg_check_dir (const char *dir) |
int | pg_mkdir_p (char *path, int omode) |
pqsigfunc | pqsignal (int signo, pqsigfunc func) |
char * | escape_single_quotes_ascii (const char *src) |
char * | wait_result_to_str (int exit_status) |
bool | wait_result_is_signal (int exit_status, int signum) |
bool | wait_result_is_any_signal (int exit_status, bool include_command_not_found) |
#define ALL_CONNECTION_FAILURE_ERRNOS |
Definition at line 114 of file port.h.
Referenced by errcode_for_socket_access(), and pqReadData().
#define closesocket close |
Definition at line 331 of file port.h.
Referenced by archive_close_connection(), ident_inet(), internal_cancel(), ParallelBackupEnd(), ParallelBackupStart(), PerformRadiusTransaction(), pgstat_init(), PostmasterMarkPIDForWorkerNotify(), pqDropConnection(), readMessageFromPipe(), run_ifaddr_callback(), ShutdownWorkersHard(), StreamClose(), and StreamServerPort().
#define DEVNULL "/dev/null" |
Definition at line 146 of file port.h.
Referenced by do_init(), ensureCleanShutdown(), initialize_data_directory(), initializeInput(), regression_main(), start_postmaster(), SysLoggerMain(), and test_config_settings().
#define EXE "" |
Definition at line 140 of file port.h.
Referenced by find_other_exec(), and get_progname().
#define fprintf pg_fprintf |
Definition at line 219 of file port.h.
Referenced by _dosmaperr(), _print_horizontal_line(), _ShowOption(), advice(), appendPsqlMetaConnect(), appendShellString(), apw_dump_now(), BaseBackup(), bootstrap_template1(), change_directory(), check_for_data_type_usage(), check_for_isn_and_int8_passing_mismatch(), check_for_jsonb_9_4_usage(), check_for_reg_data_type_usage(), check_for_tables_with_oids(), check_for_user_defined_postfix_ops(), check_input(), check_loadable_libraries(), check_locale_encoding(), check_prepare_conn(), check_system_link_file(), CheckConnection(), CheckForExternalTrigger(), close_file(), ClosePager(), colorcomplement(), convert_sourcefiles_in(), create_data_directory(), create_script_for_old_cluster_deletion(), create_xlog_or_symlink(), CreateOptsFile(), createPartitions(), CustomizableCleanupPriorWALFiles(), CustomizableInitialize(), CustomizableNextWALFileReady(), defaultNoticeProcessor(), DescribeQuery(), do_field(), do_header(), do_pg_stop_backup(), dolink(), doLog(), dropDBs(), dropRoles(), dropTablespaces(), dsa_dump(), dshash_dump(), dumpDatabases(), dumpGroups(), dumpnfa(), dumpRoleMembership(), dumpRoles(), dumpTablespaces(), dumpTimestamp(), dumpUserConfig(), echo_hidden_command(), ecpg_filter_source(), ecpg_filter_stderr(), ecpg_log(), ecpg_start_test(), ECPGdump_a_simple(), enlargeStringInfo(), evalStandardFunc(), exec_command_write(), exec_prog(), ExecuteSqlCommand(), exportFile(), file_line_count(), file_size(), func_call_1(), func_call_2(), get_id(), get_opts(), get_progname(), get_su_pwd(), get_user_name_or_exit(), getopt(), getopt_long(), gseg_internal_consistent(), gseg_leaf_consistent(), gseg_penalty(), gseg_picksplit(), gseg_same(), gseg_union(), handle_args(), hash_stats(), header(), helpSQL(), helpVariables(), identify_system_timezone(), importFile(), infile(), init_htab(), initCreateFKeys(), initCreatePKeys(), initCreateTables(), initDropTables(), initGenerateDataClientSide(), initGenerateDataServerSide(), initialize_environment(), initVacuum(), isolation_init(), isolation_start_test(), listAvailableScripts(), load_resultmap(), LocalBufferAlloc(), main(), make_absolute_path(), make_directory(), MarkLocalBufferDirty(), memory_exhausted(), MemoryContextStatsDetail(), MemoryContextStatsInternal(), MemoryContextStatsPrint(), my_truncate(), new_9_0_populate_pg_largeobject_metadata(), nfanode(), old_9_6_invalidate_hash_indexes(), open_result_files(), optimize(), output_deallocate_prepare_statement(), output_get_descr(), output_get_descr_header(), output_line_number(), output_prepare_statement(), output_row(), output_set_descr(), output_set_descr_header(), output_statement(), overwrite(), packArcInfoCmp(), parse_psql_options(), parseCommandLine(), passwordFromFile(), perform_spin_delay(), pg_attribute_printf(), pg_log_generic_v(), pg_log_v(), pg_malloc_internal(), pg_realloc(), pg_regcomp(), pg_strdup(), pgwin32_is_service(), pickout(), pipe_read_line(), pnstrdup(), PostmasterMain(), PQdefaultSSLKeyPassHook_OpenSSL(), PQdisplayTuples(), pqGetc(), pqGetInt(), pqGetnchar(), pqGets_internal(), PQprint(), PQprintTuples(), pqPutc(), pqPutInt(), pqPutMsgEnd(), pqPutMsgStart(), pqPutnchar(), pqPuts(), pqSaveParameterStatus(), pqSetenvPoll(), pqSkipnchar(), print(), print2(), print_action(), print_aligned_text(), print_aligned_vertical(), print_aligned_vertical_line(), print_asciidoc_text(), print_asciidoc_vertical(), print_html_text(), print_html_vertical(), print_latex_vertical(), print_troff_ms_vertical(), print_with_linenumbers(), printHistory(), PrintNotifications(), printProgressReport(), PrintQueryStatus(), printTable(), printTableAddCell(), printTableAddHeader(), progress_report(), psql_command(), psql_start_test(), PSQLexec(), PSQLexecWatch(), pvsnprintf(), regression_main(), report_error_message(), report_multiple_error_messages(), RestoreWALFileForRecovery(), results_differ(), rstacktoodeep(), rulesub(), run_diff(), run_named_permutations(), run_permutation(), run_schedule(), run_testspec(), runInitSteps(), s_lock_stuck(), scan_available_timezones(), score_timezone(), selectColorTrigrams(), SendQuery(), set_dump_section(), setup_data_file_paths(), setup_locale_encoding(), setup_pgdata(), SetWALFileNameForCleanup(), SetWALSegSize(), slashUsage(), slice_check(), spawn_process(), sql_check(), sql_exec(), sqlprint(), status_end(), stop_postmaster(), syntax_error(), test_pattern(), test_timing(), TParserClose(), TParserCopyClose(), TParserCopyInit(), TParserGet(), TParserInit(), try_complete_step(), update_metainfo_datafile(), usage(), vacuumlo(), verror(), wait_for_tests(), warn(), warn_on_mount_point(), warning(), whenever_action(), write_version_file(), writezone(), and XidCacheRemoveRunningXids().
#define is_absolute_path | ( | filename | ) |
Definition at line 86 of file port.h.
Referenced by BeginCopyTo(), convert_and_check_filename(), create_xlog_or_symlink(), CreateTableSpace(), find_in_dynamic_libpath(), find_my_exec(), get_extension_script_directory(), is_unixsock_path(), main(), make_absolute_path(), path_is_relative_and_below_cwd(), perform_base_backup(), process_file(), setup_bin_paths(), tablespace_list_append(), and tokenize_inc_file().
#define IS_DIR_SEP | ( | ch | ) | ((ch) == '/') |
Definition at line 84 of file port.h.
Referenced by dir_strcmp(), do_pg_start_backup(), first_dir_separator(), join_path_components(), last_dir_separator(), make_relative_path(), path_is_prefix_of_path(), path_is_relative_and_below_cwd(), trim_directory(), and trim_trailing_separator().
#define pg_backend_random pg_strong_random |
#define PG_BACKEND_VERSIONSTR "postgres (PostgreSQL) " PG_VERSION "\n" |
Definition at line 134 of file port.h.
Referenced by adjust_data_dir(), do_kill(), do_start(), ensureCleanShutdown(), getInstallationPaths(), getRestoreCommand(), main(), and setup_bin_paths().
#define PG_IOLBF _IOLBF |
Definition at line 343 of file port.h.
Referenced by logfile_open(), main(), SysLogger_Start(), and update_metainfo_datafile().
#define PG_STRERROR_R_BUFLEN 256 /* Recommended buffer size for strerror_r */ |
Definition at line 233 of file port.h.
Referenced by connectFailureMessage(), connectNoDelay(), dopr(), initialize_SSL(), internal_cancel(), lo_export(), lo_import_internal(), open_client_SSL(), pg_local_sendauth(), pg_strerror(), pgtls_read(), pgtls_write(), PQconnectPoll(), pqsecure_raw_read(), pqsecure_raw_write(), pqSocketCheck(), setKeepalivesCount(), setKeepalivesIdle(), and setKeepalivesInterval().
#define PGINVALID_SOCKET (-1) |
Definition at line 33 of file port.h.
Referenced by AddWaitEventToSet(), ClosePostmasterPorts(), CloseServerPorts(), ConnCreate(), copy_read_data(), CopyStreamPoll(), ident_inet(), InitializeLatchWaitSet(), initMasks(), internal_cancel(), LogicalRepApplyLoop(), LogStreamerMain(), makeEmptyPGconn(), ModifyWaitEvent(), PerformRadiusTransaction(), pgstat_drop_database(), pgstat_init(), pgstat_initstats(), pgstat_ping(), pgstat_report_analyze(), pgstat_report_autovac(), pgstat_report_checksum_failures_in_db(), pgstat_report_deadlock(), pgstat_report_recovery_conflict(), pgstat_report_tempfile(), pgstat_report_vacuum(), pgstat_reset_counters(), pgstat_reset_replslot_counter(), pgstat_reset_shared_counters(), pgstat_reset_single_counter(), pgstat_reset_slru_counter(), pgstat_send(), pgstat_send_connstats(), pgstat_send_tabstat(), pgstat_start(), pgstat_vacuum_stat(), PgstatCollectorMain(), PostmasterMain(), PostmasterMarkPIDForWorkerNotify(), PQconnectPoll(), pqDropConnection(), PQfn(), PQgetCancel(), pqGetline2(), pqGetline3(), pqReadData(), PQrequestCancel(), pqSendSome(), PQsocket(), pqSocketCheck(), readMessageFromPipe(), run_ifaddr_callback(), sendTerminateConn(), ServerLoop(), socket_close(), StreamConnection(), StreamLog(), StreamServerPort(), SysLoggerMain(), WaitEventSetWait(), WaitLatchOrSocket(), and WalReceiverMain().
#define printf | ( | ... | ) | pg_printf(__VA_ARGS__) |
Definition at line 221 of file port.h.
Referenced by aes_cbc_decrypt(), array_in(), bootstrap_template1(), callback(), cash_in(), check_constant_qual(), check_errno(), check_ok(), check_result_of_insert(), check_return(), CleanupPriorWALFiles(), cluster_all_databases(), connection_warnings(), connectToServer(), create_data_directory(), create_xlog_or_symlink(), date_test_defmt(), date_test_fmt(), date_test_strdate(), debugStartup(), debugtup(), describe_char(), do_connect(), do_help(), do_status(), dosqlprint(), DoubleMetaphone(), dump_assert(), dump_assign(), dump_binary(), dump_block(), dump_call(), dump_case(), dump_close(), dump_commit(), dump_cursor_direction(), dump_dynexecute(), dump_dynfors(), dump_execsql(), dump_exit(), dump_expr(), dump_fetch(), dump_forc(), dump_foreach_a(), dump_fori(), dump_fors(), dump_getdiag(), dump_if(), dump_ind(), dump_loop(), dump_open(), dump_perform(), dump_raise(), dump_return(), dump_return_next(), dump_return_query(), dump_rollback(), dump_set(), dump_sqlda(), dump_stmt(), dump_while(), echo_hidden_command(), ecpg_process_output(), error(), exec_command_conninfo(), exec_command_pset(), exec_command_s(), ExecHashIncreaseNumBatches(), ExecHashIncreaseNumBuckets(), ExecHashTableCreate(), executeCommand(), executeMaintenanceCommand(), executeQuery(), executeQueryOrDie(), fa(), fb(), fc(), fd(), fe(), fmtlong(), func_call_1(), func_call_2(), generate_partitionwise_join_paths(), get_su_pwd(), handle_args(), handle_help_version_opts(), help(), initialize_data_directory(), initialize_environment(), int2int4_sum(), InteractiveBackend(), isotesterNoticeProcessor(), len_utf8(), main(), MainLoop(), output(), pg_fatal(), pg_log_v(), plpgsql_dumptree(), PostgresMain(), pprint(), preprocess_expression(), print(), print_addr(), print_double(), print_elapse(), print_expr(), print_pathkeys(), print_rmgr_list(), print_rt(), print_slot(), print_tl(), printatt(), PrintControlValues(), printGSSInfo(), printMixedStruct(), PrintNewControlValues(), printPsetInfo(), printResults(), printResultSet(), printSimpleStats(), printSSLInfo(), PrintTiming(), PrintVariables(), PSQLexec(), regression_main(), reindex_all_databases(), run_permutation(), run_reindex_command(), run_schedule(), run_single_test(), run_vacuum_command(), SendQuery(), setup_locale_encoding(), setup_text_search(), show_binary_results(), show_item(), sql_check(), sqlnotice(), test(), test_config_settings(), test_file_descriptor_sync(), test_non_sync(), test_null(), test_open_sync(), test_open_syncs(), test_sync(), test_timing(), TopoSort(), try_complete_step(), update_spins_per_delay(), usage(), vacuum_one_database(), XLogDumpDisplayRecord(), XLogDumpDisplayStats(), XLogDumpStatsRow(), and yesno_prompt().
Definition at line 503 of file port.h.
Referenced by _bt_deadblocks(), _bt_delitems_delete_check(), _bt_deltasortsplits(), _ltree_picksplit(), aclitemsort(), aclmembers(), acquire_sample_rows(), add_guc_variable(), AddEnumLabel(), AlterSubscription_refresh(), array_to_tsvector(), associate(), bottomup_sort_and_shrink(), BufferSync(), build_guc_variables(), buildIndexArray(), calc_word_similarity(), carcsort(), check_loadable_libraries(), checkcondition_str(), CheckConstraintFetch(), checkSharedDependencies(), choose_bitmap_and(), compileTheLexeme(), compute_array_stats(), compute_range_stats(), compute_scalar_stats(), compute_tsvector_stats(), create_hash_bounds(), CreateStatistics(), decide_file_actions(), dsynonym_init(), eliminate_duplicate_dependencies(), entry_dealloc(), EnumValuesCreate(), ExecInitInterpreter(), fill_in_constant_lengths(), find_inheritance_children(), findDependentObjects(), findObjectByCatalogId(), g_int_picksplit(), g_intbig_picksplit(), generate_trgm(), generate_wildcard_trgm(), get_docrep(), ghstore_picksplit(), ginGetBAEntry(), gist_box_picksplit(), gseg_picksplit(), gtrgm_picksplit(), gtsquery_picksplit(), gtsvector_compress(), gtsvector_picksplit(), heap_force_common(), hstoreUniquePairs(), IssuePendingWritebacks(), list_sort(), load_domaintype_info(), load_enum_cache_data(), lookupVariable(), ltree_picksplit(), main(), mcelem_array_contained_selec(), mergeins(), mXactCacheGetBySet(), mXactCachePut(), NIImportOOAffixes(), NISortAffixes(), NISortDictionary(), packGraph(), pg_import_system_collations(), ProcArrayApplyRecoveryInfo(), QTNSort(), range_gist_double_sorting_split(), rankSort(), read_dictionary(), readstoplist(), ready_list_sort(), rebuild_database_list(), ReorderBufferCopySnap(), select_active_windows(), selectColorTrigrams(), SerializeTransactionState(), setExtensionMembership(), setup_pct_info(), SnapBuildBuildSnapshot(), sort_object_addresses(), sort_pool(), sort_snapshot(), sortDumpableObjectsByTypeName(), sortins(), sortouts(), spg_box_quad_picksplit(), spg_kd_picksplit(), spg_quad_picksplit(), spg_text_picksplit(), spgPageIndexMultiDelete(), SyncRepGetCandidateStandbys(), SyncRepGetNthLatestSyncRecPtr(), tbm_begin_iterate(), TidListEval(), tsq_mcontains(), tsvector_delete_by_indices(), uniquePos(), uniqueWORD(), WriteDataChunks(), and writezone().
#define RTLD_GLOBAL 0 |
Definition at line 484 of file port.h.
Referenced by internal_load_library().
#define RTLD_NOW 1 |
Definition at line 476 of file port.h.
Referenced by internal_load_library().
#define snprintf pg_snprintf |
Definition at line 215 of file port.h.
Referenced by _ArchiveEntry(), _discoverArchiveFormat(), _EndBlob(), _LoadBlobs(), _PG_init(), _ShowOption(), _StartBlob(), _tarAddFile(), _tarGetHeader(), _tarPositionTo(), AddFileToBackupManifest(), addRangeTableEntryForValues(), AddToDataDirLockFile(), adjust_data_dir(), AllocSetStats(), AlterObjectOwner_internal(), AlterSystemSetConfigFile(), anybit_typmodout(), anychar_typmodout(), ApplyLauncherRegister(), ApplyWorkerMain(), apw_dump_now(), autovac_report_activity(), autovac_report_workitem(), BackendRun(), BackgroundWorkerUnblockSignals(), BaseBackup(), begin_remote_xact(), bootstrap_template1(), build_pgstattuple_type(), build_test_info_result(), build_test_match_result(), buildWorkerCommand(), buildWorkerResponse(), calculate_database_size(), calculate_relation_size(), calculate_tablespace_size(), cfopen(), changes_filename(), check_file_clone(), check_file_excluded(), check_for_isn_and_int8_passing_mismatch(), check_for_jsonb_9_4_usage(), check_for_new_tablespace_dir(), check_for_reg_data_type_usage(), check_for_tables_with_oids(), check_for_user_defined_postfix_ops(), check_foreign_key(), check_hard_link(), check_loadable_libraries(), check_log_duration(), check_primary_key(), check_single_dir(), checkControlFile(), CheckPointLogicalRewriteHeap(), CheckPointSnapBuild(), choose_dsm_implementation(), ChooseConstraintName(), ChooseExtendedStatisticName(), ChooseRelationName(), cidout(), cleanup(), CleanupBackgroundWorker(), CleanupBackupHistory(), CleanupPriorWALFiles(), close_cursor(), compile_pltcl_function(), ComputePartitionAttrs(), connectOptions2(), convert_sourcefiles_in(), convertTSFunction(), copy_subdir_files(), copydir(), CopyFromErrorCallback(), crashDumpHandler(), create_new_objects(), create_target_dir(), create_target_symlink(), create_toast_table(), createBackupLabel(), CreateLockFile(), CreateReplicationSlot(), CreateSocketLockFile(), CreateSubscription(), CreateTrigger(), CustomizableCleanupPriorWALFiles(), CustomizableInitialize(), db_dir_size(), deallocate_query(), DeleteAllExportedSnapshotFiles(), describeDumpableObject(), dir_close(), dir_existsfile(), dir_get_file_size(), dir_open_for_write(), disable_old_cluster(), do_compile(), do_edit(), do_init(), do_kill(), do_lo_list(), do_logrotate(), do_pg_start_backup(), do_promote(), do_setval(), do_start(), do_watch(), DropSubscription(), dsm_cleanup_for_mmap(), dsm_impl_mmap(), dsm_impl_op(), dsm_impl_pin_segment(), dsm_impl_sysv(), dsm_impl_unpin_segment(), dumpSequence(), ean2isn(), ean2string(), ecpg_build_params(), ecpg_log(), ecpg_raise(), ecpg_raise_backend(), ecpg_start_test(), ECPGget_desc(), ECPGset_desc(), ECPGset_var(), EndCommand(), ensureCleanShutdown(), exec_prog(), ExecBuildAuxRowMark(), ExecGrant_Largeobject(), ExecParallelHashJoinSetUpBatches(), ExecQueryUsingCursor(), expand_inherited_rtentry(), ExplainPropertyInteger(), ExplainPropertyUInteger(), ExportSnapshot(), fetch_more_data(), find_other_exec(), FindStreamingStart(), finish_heap_swap(), float4_numeric(), float8_numeric(), footers_with_default(), format_operator_extended(), format_procedure_extended(), formatPGVersionNumber(), generate_old_dump(), GenerationStats(), get_alternative_expectfile(), get_bin_version(), get_config_unit_name(), get_control_data(), get_controlfile(), get_db_infos(), get_dbstat_filename(), get_errno_symbol(), get_extension_aux_control_filename(), get_extension_control_directory(), get_extension_control_filename(), get_extension_script_directory(), get_extension_script_filename(), get_home_path(), get_major_server_version(), get_prompt(), get_rel_infos(), get_sock_dir(), get_str_from_var_sci(), get_tablespace_paths(), get_tsearch_config_filename(), GetConfigOption(), GetConfigOptionByNum(), GetConfigOptionResetString(), getnameinfo(), getRestoreCommand(), getVariable(), heap_xlog_logical_rewrite(), ident_inet(), identify_system_timezone(), identify_target_directory(), IdentifySystem(), ImportSnapshot(), incompatible_module_error(), init_params(), init_ps_display(), initialize_data_directory(), initialize_environment(), initialize_SSL(), InitTempTableNamespace(), int44out(), int_to_roman(), intervaltypmodout(), isolation_start_test(), join_path_components(), jsonb_agg_transfn(), jsonb_object_agg_transfn(), KeepFileRestoredFromArchive(), KillExistingArchiveStatus(), KillExistingXLOG(), LaunchParallelWorkers(), libpqrcv_readtimelinehistoryfile(), llvm_create_types(), load_module(), load_relcache_init_file(), load_relmap_file(), load_resultmap(), local_fetch_file_range(), log_line_prefix(), logfile_getname(), logical_rewrite_log_mapping(), logicalrep_worker_launch(), macaddr8_out(), macaddr_out(), main(), make_new_heap(), make_text_key(), mark_file_as_archived(), nameconcatoid(), network_out(), network_show(), new_9_0_populate_pg_largeobject_metadata(), nextval_internal(), nfalsepos_for_missing_strings(), numerictypmodout(), oidout(), old_11_check_for_sql_identifier_data_type_usage(), old_9_3_check_for_line_data_type_usage(), old_9_6_check_for_unknown_data_type_usage(), open_file_in_directory(), open_result_files(), open_target_file(), open_walfile(), OpenTemporaryFileInTablespace(), page_header(), parseServiceInfo(), ParseTzFile(), perform_base_backup(), pg_getnameinfo_all(), pg_GSS_load_servicename(), pg_lock_status(), pg_ls_dir_files(), pg_lsn_mi(), pg_lsn_mii(), pg_lsn_out(), pg_lsn_pli(), pg_rusage_show(), pg_signal_thread(), pg_size_pretty(), pg_stat_get_wal(), pg_stat_statements_internal(), pg_strerror_r(), pg_tablespace_location(), pg_tzenumerate_next(), pg_tzset_offset(), pgarch_ArchiverCopyLoop(), pgarch_archiveXlog(), pgarch_readyXlog(), pgfdw_subxact_callback(), pgrowlocks(), pgstat_reset_remove_files(), pgtypes_fmt_replace(), PGTYPESdate_fmt_asc(), pgwin32_create_signal_listener(), pid_lock_file_exists(), plperl_spi_prepare(), plpgsql_param_ref(), pltcl_init_interp(), pltcl_SPI_prepare(), PLy_procedure_compile(), PLy_procedure_create(), PLy_procedure_munge_source(), populate_with_dummy_strings(), postgresAcquireSampleRowsFunc(), postgresReScanForeignScan(), PQconnectPoll(), pqGetHomeDirectory(), PQsslAttribute(), prepare_foreign_modify(), preprocess_targetlist(), pretty_wal_size(), printProgressReport(), PrintQueryStatus(), proc_exit(), process_psqlrc(), progress_report(), provider_init(), psql_command(), psql_start_test(), read_client_final_message(), ReadControlFile(), ReceiveBackupManifest(), ReceiveTarAndUnpackCopyChunk(), ReceiveTarFile(), ReceiveXlogStream(), recurse_dir(), regclassout(), regcollationout(), regconfigout(), regdictionaryout(), regnamespaceout(), regoperout(), regprocout(), regression_main(), regroleout(), regtypeout(), RelationCacheInitFilePreInvalidate(), RelationCacheInitFileRemove(), RelationCacheInitFileRemoveInDir(), ReleaseExternalFD(), remove_new_subdir(), remove_target_dir(), remove_target_file(), remove_target_symlink(), RemoveAttributeById(), RemovePgTempFiles(), RemovePgTempFilesInDir(), RemovePgTempRelationFiles(), RemovePgTempRelationFilesInDbspace(), RemoveTempXlogFiles(), RemoveXlogFile(), ReorderBufferCleanupSerializedTXNs(), ReorderBufferSerializedPath(), replace_variables(), report_fork_failure_to_client(), report_unmatched_relation(), ResetUnloggedRelations(), ResetUnloggedRelationsInDbspaceDir(), ResetUnloggedRelationsInTablespaceDir(), RestoreArchive(), RestoreArchivedFile(), results_differ(), RI_Initial_Check(), RI_PartitionRemove_Check(), rmtree(), sanitize_char(), scan_available_timezones(), scan_directory(), select_default_timezone(), send_message_to_frontend(), SendBaseBackup(), sendDir(), sendTablespace(), SendXlogRecPtrResult(), set_info_version(), setup_background_workers(), setup_config(), SharedFilePath(), SharedFileSetPath(), SharedSegmentName(), show_data_directory_mode(), show_eval_params(), show_log_file_mode(), show_tcp_keepalives_count(), show_tcp_keepalives_idle(), show_tcp_keepalives_interval(), show_tcp_user_timeout(), show_trgm(), show_unix_socket_permissions(), SimpleXLogPageRead(), SlabStats(), slurpFile(), sql_exec_dumpalldbs(), sql_exec_dumpalltables(), sql_exec_dumpalltbspc(), SSLerrmessage(), start_postmaster(), StartChildProcess(), StartLogStreamer(), StartReplication(), StartupReplicationSlots(), StartupXLOG(), stop_postmaster(), StreamServerPort(), sts_filename(), subxact_filename(), SyncVariables(), SysLogger_Start(), tar_open_for_write(), TempTablespacePath(), test_config_settings(), threadRun(), tidout(), timeofday(), timestamptz_to_str(), transfer_relfile(), transformRowExpr(), transformSetOperationTree(), truncate_target_file(), try_complete_step(), update_checkpoint_display(), update_controlfile(), uuid_generate_internal(), uuid_generate_v1mc(), vacuumlo(), validate_exec(), ValidatePgVersion(), ValidateXLOGDirectoryStructure(), VXIDGetDatum(), wait_result_to_str(), walkdir(), WALOpenSegmentInit(), WalRcvWaitForStartPosition(), WalReceiverMain(), worker_spi_launch(), write_relcache_init_file(), write_relmap_file(), WriteRecoveryConfig(), writeTimeLineHistory(), writeTimeLineHistoryFile(), xid8out(), xidout(), XLogArchiveIsBusy(), XLogFileCopy(), XLogFileInit(), XLogFileRead(), XLogSendPhysical(), XLOGShmemSize(), XLogWalRcvFlush(), and yesno_prompt().
#define sprintf pg_sprintf |
Definition at line 217 of file port.h.
Referenced by _ArchiveEntry(), _conv(), _PG_init(), _StartBlob(), _StartBlobs(), aclitemout(), AddISO8601IntPart(), AddPostgresIntPart(), AddVerboseIntPart(), AppendSeconds(), ApplyLogicalMappingFile(), array_dims(), array_out(), assign_pgstat_temp_directory(), BackendRun(), bootstrap_template1(), bt_page_print_tuples(), build_subplan(), build_tuplestore_recursively(), CheckPointReplicationSlots(), ChooseIndexColumnNames(), CreateFakeRelcacheEntry(), CreateNewPortal(), CreateSlotOnDisk(), CreateWalTarMethod(), DCH_to_char(), deallocate_one(), deparse_lquery(), do_kill(), do_lo_import(), doabbr(), ecpg_auto_prepare(), ecpg_build_native_sqlda(), ecpg_build_params(), ecpg_is_type_an_array(), ecpg_store_input(), ECPGdump_a_simple(), ECPGdump_a_struct(), EncodeDateOnly(), EncodeDateTime(), EncodeInterval(), encodingid_to_string(), find_in_dynamic_libpath(), fmtfloat(), fmtptr(), generate_normalized_query(), get_comma_elts(), get_str_from_var(), getNextFlagFromString(), gtsvectorout(), hashline_number(), infix(), initialize_environment(), initialize_worker_spi(), InitializeGUCOptionsFromEnvironment(), InternalIpcMemoryCreate(), LaunchParallelWorkers(), main(), make_absolute_path(), make_colname_unique(), mdunlinkfork(), MergeAffix(), NIAddAffix(), NUM_processor(), num_word(), oidvectorout(), optionListToArray(), parseQuery(), pg_get_userbyid(), pg_regerror(), pg_strfromd(), pg_wcsformat(), PGTYPESnumeric_from_double(), pgwin32_setenv(), pgwin32_unsetenv(), plperl_create_sub(), pqInternalNotice(), PQprintTuples(), PQsetClientEncoding(), pqSetenvPoll(), preparedStatementName(), print_double(), print_wchar_str(), prs_process_call(), ReceiveXlogStream(), regoperout(), regression_main(), ReorderBufferCleanupSerializedTXNs(), ReplicationSlotDropPtr(), ReplicationSlotSave(), report_invalid_encoding(), report_untranslatable_char(), restore(), RestoreSlotFromDisk(), ri_Check_Pk_Match(), RI_FKey_cascade_del(), RI_FKey_cascade_upd(), RI_FKey_check(), ri_restrict(), ri_set(), rstacktoodeep(), SaveSlotToPath(), scram_build_secret(), seg_out(), SelectConfigFiles(), send_int8_string(), set_debug_options(), set_ps_display(), set_rtable_names(), setenv(), SetOutput(), setup_background_workers(), setup_config(), setup_formatted_log_time(), SnapBuildRestore(), SnapBuildSerialize(), SPI_result_code_string(), sprintf_double_value(), sprintf_float_value(), sql_check(), sql_exec_searchtables(), stringoffset(), stringrule(), SyncRepWaitForLSN(), tarOpen(), transformRelOptions(), ts_process_call(), tsvectorout(), tt_process_call(), ttdummy(), unsetenv(), winsock_strerror(), worker_spi_launch(), and WriteToc().
#define strerror pg_strerror |
Definition at line 228 of file port.h.
Referenced by _tarReadRaw(), adjust_data_dir(), auth_peer(), cfgetc(), cfread(), change_directory(), check_bin_dir(), check_errno(), check_file_clone(), check_for_data_type_usage(), check_for_isn_and_int8_passing_mismatch(), check_for_jsonb_9_4_usage(), check_for_reg_data_type_usage(), check_for_tables_with_oids(), check_for_user_defined_postfix_ops(), check_hard_link(), check_loadable_libraries(), check_ok(), check_single_dir(), checkControlFile(), CheckForExternalTrigger(), cloneFile(), close_file(), convert_sourcefiles_in(), copyFile(), create_script_for_old_cluster_deletion(), CustomizableCleanupPriorWALFiles(), dir_getlasterror(), do_edit(), do_kill(), do_logrotate(), do_promote(), do_reload(), do_restart(), do_stop(), dolink(), exec_command_cd(), file_line_count(), file_size(), func_call_1(), func_call_2(), get_bin_version(), get_cfp_error(), get_control_data(), get_pgpid(), get_sock_dir(), get_tablespace_paths(), get_user_name(), gnuish_strerror_r(), infile(), initialize_environment(), linkFile(), load_resultmap(), main(), make_absolute_path(), make_directory(), memcheck(), mkdirs(), new_9_0_populate_pg_largeobject_metadata(), old_9_6_invalidate_hash_indexes(), open_result_files(), parallel_exec_prog(), parallel_transfer_all_new_dbs(), pid_lock_file_exists(), PostmasterMain(), PostmasterMarkPIDForWorkerNotify(), pvsnprintf(), reap_child(), regression_main(), report_fork_failure_to_client(), results_differ(), rewriteVisibilityMap(), run_schedule(), scan_available_timezones(), SelectConfigFiles(), SetWALSegSize(), spawn_process(), start_postmaster(), stop_postmaster(), tablespace_list_append(), tar_getlasterror(), tokenize_file(), tokenize_inc_file(), transfer_relfile(), trap_sigint_during_startup(), try_complete_step(), validate_exec(), wait_for_tests(), write_syslogger_file(), and writezone().
#define strerror_r pg_strerror_r |
Definition at line 232 of file port.h.
Referenced by dopr(), gnuish_strerror_r(), initialize_SSL(), lo_export(), lo_import_internal(), pg_fe_getauthname(), pg_local_sendauth(), and PQconnectPoll().
#define TIMEZONE_GLOBAL timezone |
Definition at line 245 of file port.h.
Referenced by abstime2tm(), get_timezone_offset(), and timestamp2tm().
#define TZNAME_GLOBAL tzname |
Definition at line 246 of file port.h.
Referenced by abstime2tm(), and timestamp2tm().
#define vfprintf pg_vfprintf |
Definition at line 218 of file port.h.
Referenced by ecpg_log(), pg_log_generic_v(), print_lo_result(), status(), verror(), and write_stderr().
#define vprintf pg_vprintf |
#define vsnprintf pg_vsnprintf |
Definition at line 214 of file port.h.
Referenced by appendPQExpBufferVA(), dblink_res_error(), do_serialize(), exec_prog(), executeQueryOrDie(), header(), parallel_exec_prog(), pg_log_generic_v(), pg_log_v(), PLy_exception_set(), PLy_exception_set_plural(), pqInternalNotice(), prep_status(), psql_command(), pvsnprintf(), px_debug(), report_invalid_record(), report_status(), and write_stderr().
#define vsprintf pg_vsprintf |
typedef int(* qsort_arg_comparator) (const void *a, const void *b, void *arg) |
void canonicalize_path | ( | char * | path | ) |
Definition at line 254 of file path.c.
References skip_drive, trim_directory(), and trim_trailing_separator().
Referenced by adjust_data_dir(), check_canonical_path(), check_required_directory(), convert_and_check_filename(), create_script_for_old_cluster_deletion(), create_xlog_or_symlink(), CreateTableSpace(), do_copy(), exec_command_edit(), exec_command_write(), find_in_dynamic_libpath(), find_my_exec(), find_other_exec(), get_tablespace_mapping(), main(), make_absolute_path(), make_relative_path(), parseCommandLine(), process_file(), resolve_symlinks(), setup(), setup_bin_paths(), setup_pgdata(), SplitDirectoriesString(), tablespace_list_append(), and tokenize_inc_file().
void cleanup_path | ( | char * | path | ) |
int dlclose | ( | void * | handle | ) |
Referenced by internal_load_library(), and internal_unload_library().
char* dlerror | ( | void | ) |
Referenced by internal_load_library().
void* dlopen | ( | const char * | file, |
int | mode | ||
) |
Referenced by internal_load_library().
void* dlsym | ( | void * | handle, |
const char * | symbol | ||
) |
Referenced by internal_load_library(), internal_unload_library(), load_external_function(), and lookup_external_function().
char* escape_single_quotes_ascii | ( | const char * | src | ) |
Definition at line 33 of file quotes.c.
References i, malloc, and SQL_STR_DOUBLE.
Referenced by escape_quotes(), and write_auto_conf_file().
void explicit_bzero | ( | void * | buf, |
size_t | len | ||
) |
Definition at line 50 of file explicit_bzero.c.
References bzero_p.
Referenced by freePGconn(), passwordFromFile(), pg_cryptohash_create(), pg_cryptohash_free(), and run_ssl_passphrase_command().
int find_my_exec | ( | const char * | argv0, |
char * | retpath | ||
) |
Definition at line 128 of file exec.c.
References _, canonicalize_path(), errcode(), errcode_for_file_access(), first_dir_separator(), first_path_var_separator(), is_absolute_path, join_path_components(), log_error, MAXPGPATH, Min, resolve_symlinks(), strlcpy(), and validate_exec().
Referenced by do_kill(), ensureCleanShutdown(), find_other_exec(), find_other_exec_or_die(), getInstallationPaths(), getRestoreCommand(), InitStandaloneProcess(), main(), process_psqlrc(), set_pglocale_pgservice(), setup(), and setup_bin_paths().
int find_other_exec | ( | const char * | argv0, |
const char * | target, | ||
const char * | versionstr, | ||
char * | retpath | ||
) |
Definition at line 323 of file exec.c.
References canonicalize_path(), EXE, find_my_exec(), last_dir_separator(), MAXPGPATH, pipe_read_line(), snprintf, and validate_exec().
Referenced by do_kill(), ensureCleanShutdown(), find_other_exec_or_die(), getInstallationPaths(), getRestoreCommand(), isolation_start_test(), main(), and setup_bin_paths().
char* first_dir_separator | ( | const char * | filename | ) |
Definition at line 103 of file path.c.
References 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_dynamic_libpath(), find_my_exec(), load_libraries(), and substitute_libpath_macro().
char* first_path_var_separator | ( | const char * | pathlist | ) |
Definition at line 120 of file path.c.
References IS_PATH_VAR_SEP, and unconstify.
Referenced by find_in_dynamic_libpath(), and find_my_exec().
int fls | ( | int | mask | ) |
Definition at line 55 of file fls.c.
References bit().
Referenced by _hash_get_oldblock_from_newbucket(), add_paths_to_append_rel(), and generate_union_paths().
void get_doc_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 776 of file path.c.
References make_relative_path().
Referenced by get_configdata().
void get_etc_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 713 of file path.c.
References make_relative_path().
Referenced by get_configdata(), process_psqlrc(), and set_pglocale_pgservice().
bool get_home_path | ( | char * | ret_path | ) |
Definition at line 807 of file path.c.
References MAXPGPATH, pqGetpwuid(), snprintf, and strlcpy().
Referenced by expand_tilde(), initializeInput(), and process_psqlrc().
void get_html_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 785 of file path.c.
References make_relative_path().
Referenced by get_configdata().
void get_include_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 722 of file path.c.
References make_relative_path().
Referenced by get_configdata(), and main().
void get_includeserver_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 740 of file path.c.
References make_relative_path().
Referenced by get_configdata().
void get_lib_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 749 of file path.c.
References make_relative_path().
Referenced by get_configdata().
void get_locale_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 767 of file path.c.
References make_relative_path().
Referenced by get_configdata(), pg_bindtextdomain(), and set_pglocale_pgservice().
void get_man_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 794 of file path.c.
References make_relative_path().
Referenced by get_configdata().
void get_parent_directory | ( | char * | path | ) |
Definition at line 854 of file path.c.
References trim_directory().
Referenced by destroy_tablespace_directories(), fsync_parent_path(), main(), process_file(), TablespaceCreateDbspace(), and tokenize_inc_file().
void get_pkginclude_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 731 of file path.c.
References make_relative_path().
Referenced by get_configdata(), and main().
void get_pkglib_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 758 of file path.c.
References make_relative_path().
Referenced by get_configdata(), getInstallationPaths(), and InitStandaloneProcess().
const char* get_progname | ( | const char * | argv0 | ) |
Definition at line 453 of file path.c.
References EXE, fprintf, last_dir_separator(), pg_strcasecmp(), progname, and skip_drive.
Referenced by get_opts(), handle_help_version_opts(), main(), parseCommandLine(), pg_logging_init(), and regression_main().
void get_share_path | ( | const char * | my_exec_path, |
char * | ret_path | ||
) |
Definition at line 704 of file path.c.
References make_relative_path().
Referenced by get_configdata(), get_extension_control_directory(), get_extension_control_filename(), get_extension_script_directory(), get_tsearch_config_filename(), ParseTzFile(), pg_TZDIR(), and setup_bin_paths().
bool has_drive_prefix | ( | const char * | filename | ) |
int inet_aton | ( | const char * | cp, |
struct in_addr * | addr | ||
) |
Definition at line 56 of file inet_aton.c.
References pg_hton32, and val.
Referenced by getaddrinfo().
void join_path_components | ( | char * | ret_path, |
const char * | head, | ||
const char * | tail | ||
) |
Definition at line 218 of file path.c.
References IS_DIR_SEP, MAXPGPATH, skip_drive, snprintf, and strlcpy().
Referenced by find_my_exec(), main(), make_relative_path(), process_file(), resolve_symlinks(), and tokenize_inc_file().
char* last_dir_separator | ( | const char * | filename | ) |
Definition at line 138 of file path.c.
References IS_DIR_SEP, skip_drive, and unconstify.
Referenced by check_file_excluded(), ECPGconnect(), find_other_exec(), get_progname(), main(), resolve_symlinks(), sendDir(), sendFile(), setup(), and setup_bin_paths().
int link | ( | const char * | src, |
const char * | dst | ||
) |
Referenced by check_hard_link(), durable_rename_excl(), and linkFile().
char* make_absolute_path | ( | const char * | path | ) |
Definition at line 608 of file path.c.
References _, buf, canonicalize_path(), elog, ereport, errcode(), errmsg(), ERROR, fprintf, free, is_absolute_path, malloc, MAXPGPATH, sprintf, and strerror.
Referenced by do_kill(), regression_main(), SelectConfigFiles(), and SetDataDir().
void make_native_path | ( | char * | path | ) |
Definition at line 166 of file path.c.
Referenced by BuildRestoreCommand(), do_kill(), and pgarch_archiveXlog().
char* mkdtemp | ( | char * | path | ) |
Definition at line 286 of file mkdtemp.c.
References _DIAGASSERT, and GETTEMP().
Referenced by stop_postmaster().
bool path_contains_parent_reference | ( | const char * | path | ) |
Definition at line 376 of file path.c.
References skip_drive.
Referenced by convert_and_check_filename(), and path_is_relative_and_below_cwd().
bool path_is_prefix_of_path | ( | const char * | path1, |
const char * | path2 | ||
) |
Definition at line 438 of file path.c.
References IS_DIR_SEP.
Referenced by convert_and_check_filename(), create_script_for_old_cluster_deletion(), CreateTableSpace(), and parseCommandLine().
bool path_is_relative_and_below_cwd | ( | const char * | path | ) |
Definition at line 405 of file path.c.
References is_absolute_path, IS_DIR_SEP, and path_contains_parent_reference().
Referenced by convert_and_check_filename().
int pclose_check | ( | FILE * | stream | ) |
Definition at line 396 of file exec.c.
References _, errcode(), log_error, pfree(), and wait_result_to_str().
Referenced by pipe_read_line().
unsigned char pg_ascii_tolower | ( | unsigned char | ch | ) |
Definition at line 146 of file pgstrcasecmp.c.
Referenced by asc_initcap(), asc_tolower(), pg_wc_tolower(), SB_lower_char(), and seq_search_ascii().
unsigned char pg_ascii_toupper | ( | unsigned char | ch | ) |
Definition at line 135 of file pgstrcasecmp.c.
Referenced by asc_initcap(), asc_toupper(), filter_list_to_array(), and pg_wc_toupper().
int pg_check_dir | ( | const char * | dir | ) |
Definition at line 31 of file pgcheckdir.c.
References closedir(), dirent::d_name, opendir(), and readdir().
Referenced by create_data_directory(), create_xlog_or_symlink(), main(), and verify_dir_is_empty_or_create().
double pg_erand48 | ( | unsigned short | xseed[3] | ) |
Definition at line 88 of file erand48.c.
References _dorand48().
Referenced by computeIterativeZipfian(), doLog(), drandom(), geqo_rand(), getExponentialRand(), getGaussianRand(), getPoissonRand(), getrand(), and sampler_random_fract().
int pg_fprintf | ( | FILE * | stream, |
const char * | fmt, | ||
... | |||
) |
int pg_get_encoding_from_locale | ( | const char * | ctype, |
bool | write_message | ||
) |
Definition at line 452 of file chklocale.c.
References PG_SQL_ASCII.
Referenced by cache_locale_time(), check_encoding_locale_matches(), check_locale_encoding(), connectOptions2(), pg_import_system_collations(), PGLC_localeconv(), PQsetClientEncoding(), SetMessageEncoding(), and setup_locale_encoding().
char* pg_inet_net_ntop | ( | int | af, |
const void * | src, | ||
int | bits, | ||
char * | dst, | ||
size_t | size | ||
) |
Definition at line 77 of file inet_net_ntop.c.
References EAFNOSUPPORT, inet_net_ntop_ipv4(), inet_net_ntop_ipv6(), PGSQL_AF_INET, and PGSQL_AF_INET6.
Referenced by getHostaddr(), getnameinfo(), inet_abbrev(), network_host(), network_out(), and network_show().
long pg_jrand48 | ( | unsigned short | xseed[3] | ) |
Definition at line 112 of file erand48.c.
References _dorand48().
Referenced by initRandomState(), and main().
long pg_lrand48 | ( | void | ) |
Definition at line 100 of file erand48.c.
References _dorand48(), and _rand48_seed.
Referenced by random(), test_huge_distances(), and test_pattern().
int pg_mkdir_p | ( | char * | path, |
int | omode | ||
) |
Definition at line 57 of file pgmkdirp.c.
References mkdir, S_IRWXG, S_IRWXO, S_IRWXU, S_ISDIR, S_IWUSR, S_IXUSR, stat::st_mode, and stat.
Referenced by create_data_directory(), create_xlog_or_symlink(), StartLogStreamer(), and verify_dir_is_empty_or_create().
ssize_t pg_pread | ( | int | fd, |
void * | buf, | ||
size_t | nbyte, | ||
off_t | offset | ||
) |
Definition at line 27 of file pread.c.
References _dosmaperr(), and read.
Referenced by basebackup_read_file(), FileRead(), pg_preadv(), SlruPhysicalReadPage(), WALRead(), and XLogPageRead().
int pg_printf | ( | const char * | fmt, |
... | |||
) |
ssize_t pg_pwrite | ( | int | fd, |
const void * | buf, | ||
size_t | nbyte, | ||
off_t | offset | ||
) |
Definition at line 27 of file pwrite.c.
References _dosmaperr(), and write.
Referenced by AddToDataDirLockFile(), FileWrite(), heap_xlog_logical_rewrite(), pg_pwritev(), qtext_store(), SlruPhysicalWritePage(), XLogFileInit(), XLogWalRcvWrite(), and XLogWrite().
void pg_qsort | ( | void * | base, |
size_t | nel, | ||
size_t | elsize, | ||
int(*)(const void *, const void *) | cmp | ||
) |
Definition at line 113 of file qsort.c.
References cmp(), med3(), Min, swap, SWAPINIT, and vecswap.
Referenced by apw_load_buffers(), build_distinct_groups(), DropRelFileNodesAllBuffers(), FlushRelationsAllBuffers(), and InitCatalogCache().
int pg_qsort_strcmp | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 232 of file qsort.c.
Referenced by readstoplist(), and searchstoplist().
Definition at line 25 of file noblock.c.
Referenced by pgstat_init(), pq_init(), PQconnectPoll(), and report_fork_failure_to_client().
int pg_snprintf | ( | char * | str, |
size_t | count, | ||
const char * | fmt, | ||
... | |||
) |
int pg_sprintf | ( | char * | str, |
const char * | fmt, | ||
... | |||
) |
void pg_srand48 | ( | long | seed | ) |
Definition at line 131 of file erand48.c.
References _rand48_seed, and RAND48_SEED_0.
Referenced by srandom().
int pg_strcasecmp | ( | const char * | s1, |
const char * | s2 | ||
) |
Definition at line 36 of file pgstrcasecmp.c.
References IS_HIGHBIT_SET.
Referenced by AlterType(), array_out(), ATExecSetStorage(), build_startup_packet(), cache_locale_time(), check_datestyle(), check_ident_usermap(), check_log_destination(), check_usermap(), check_wal_consistency_checking(), CheckSCRAMAuth(), comp_keyword_case_hook(), config_enum_lookup_by_name(), convert_any_priv_string(), convert_priv_string(), defGetBoolean(), defGetTypeLength(), DefineAggregate(), DefineCollation(), DefineType(), do_kill(), do_pset(), echo_hidden_hook(), echo_hook(), equivalent_locale(), evaluateSleep(), exec_command(), find_matching_ts_config(), get_collation_actual_version(), get_progname(), GetCommandTagEnum(), getMetaCommand(), helpSQL(), histcontrol_hook(), hostname_match(), locate_stem_module(), lookup_prop_name(), main(), makeVariableValue(), on_error_rollback_hook(), parse_basebackup_options(), parse_hstore(), parse_one_reloption(), parse_slash_copy(), parseArchiveFormat(), parseNameAndArgTypes(), ParseVariableBool(), pg_checksum_parse_type(), pg_fe_sendauth(), pg_find_encoding(), pg_size_bytes(), pg_stat_get_progress_info(), pgp_get_cipher_code(), pgp_get_digest_code(), PGTYPEStimestamp_defmt_scan(), plperl_trigger_handler(), plpgsql_extra_checks_check_hook(), PLy_exec_trigger(), pq_verify_peer_name_matches_certificate_name(), pqPacketSend(), pqSetenvPoll(), process_backslash_command(), prsd_headline(), px_find_digest(), px_gen_salt(), px_resolve_alias(), ReadArrayStr(), SetMessageEncoding(), show_context_hook(), splitTzLine(), ssl_protocol_version_to_openssl(), sslVerifyProtocolRange(), sslVerifyProtocolVersion(), SyncRepGetStandbyPriority(), transformPartitionSpec(), unicode_norm_form_from_string(), validate_exec(), variable_is_guc_list_quote(), verbosity_hook(), verify_heapam(), wildcard_certificate_match(), and xmlpi().
char* pg_strerror | ( | int | errnum | ) |
char* pg_strerror_r | ( | int | errnum, |
char * | buf, | ||
size_t | buflen | ||
) |
Definition at line 46 of file strerror.c.
References _, buf, get_errno_symbol(), gnuish_strerror_r(), snprintf, and generate_unaccent_rules::str.
Referenced by pg_strerror().
int pg_strfromd | ( | char * | str, |
size_t | count, | ||
int | precision, | ||
double | value | ||
) |
Definition at line 1263 of file snprintf.c.
References Assert, PrintfTarget::bufend, PrintfTarget::bufptr, PrintfTarget::bufstart, convert(), dopr_outch(), dostr(), PrintfTarget::failed, PrintfTarget::nchars, sprintf, generate_unaccent_rules::str, PrintfTarget::stream, and value.
Referenced by float4out(), and float8out_internal().
int pg_strncasecmp | ( | const char * | s1, |
const char * | s2, | ||
size_t | n | ||
) |
Definition at line 69 of file pgstrcasecmp.c.
References IS_HIGHBIT_SET.
Referenced by check_datestyle(), check_special_value(), check_timezone(), command_no_begin(), do_pset(), equivalent_locale(), float4in(), float8in_internal_opt_error(), helpSQL(), is_select_command(), MainLoop(), makeVariableValue(), map_sql_identifier_to_xml_name(), multirange_in(), numeric_in(), parse_bool_with_len(), parse_jsonb_index_flags(), parse_or_operator(), ParseTzFile(), ParseVariableBool(), pqPacketSend(), range_parse(), scan_directory_ci(), set_unicode_line_style(), set_var_from_str(), and SpecialTags().
bool pg_strong_random | ( | void * | buf, |
size_t | len | ||
) |
Definition at line 153 of file pg_strong_random.c.
References buf, close, EINTR, and read.
Referenced by build_client_first_message(), build_server_first_message(), CheckMD5Auth(), drandom(), gen_random_uuid(), init_sess_key(), InitControlFile(), InitProcessGlobals(), mp_px_rand(), pad_eme_pkcs1_v15(), PerformRadiusTransaction(), pg_be_scram_build_secret(), pg_fe_scram_build_secret(), pg_random_bytes(), pgp_s2k_fill(), px_gen_salt(), RandomCancelKey(), set_random_seed(), and write_prefix().
void pg_strong_random_init | ( | void | ) |
Definition at line 147 of file pg_strong_random.c.
Referenced by fork_process().
const char* pg_strsignal | ( | int | signum | ) |
Definition at line 42 of file pgstrsignal.c.
Referenced by log_child_failure(), LogChildExit(), pgarch_archiveXlog(), and wait_result_to_str().
unsigned char pg_tolower | ( | unsigned char | ch | ) |
Definition at line 122 of file pgstrcasecmp.c.
References IS_HIGHBIT_SET.
Referenced by dir_strcmp(), ParseDateTime(), PGTYPESdate_defmt_asc(), PQfnumber(), processSQLNamePattern(), SB_lower_char(), str_initcap(), str_tolower(), and validateTzEntry().
unsigned char pg_toupper | ( | unsigned char | ch | ) |
Definition at line 105 of file pgstrcasecmp.c.
References IS_HIGHBIT_SET.
Referenced by cash_words(), DetermineTimeZoneAbbrevOffsetInternal(), pg_timezone_abbrevs(), pg_tzset(), str_initcap(), and str_toupper().
void pg_usleep | ( | long | microsec | ) |
Definition at line 53 of file signal.c.
References Assert, EINTR, pgwin32_dispatch_queued_signals(), pgwin32_signal_event, and select.
Referenced by auth_delay_checks(), AutoVacLauncherMain(), AutoVacWorkerMain(), backend_read_statsfile(), BackendInitialize(), BackgroundWriterMain(), CheckpointerMain(), CheckpointWriteDelay(), ConditionalXactLockTableWait(), CountOtherDBBackends(), CreateCheckPoint(), CustomizableNextWALFileReady(), do_pg_stop_backup(), do_promote(), do_restart(), do_stop(), do_watch(), exec_prog(), FileRead(), FileWrite(), GetMultiXactIdMembers(), InitPostgres(), lazy_truncate_heap(), main(), perform_spin_delay(), pgarch_ArchiverCopyLoop(), pgwin32_recv(), read_local_xlog_page(), recoveryPausesHere(), RecoveryRequiresIntParameter(), RegisterSyncRequest(), regression_main(), RequestCheckpoint(), ResolveRecoveryConflictWithDatabase(), ResolveRecoveryConflictWithVirtualXIDs(), RestoreWALFileForRecovery(), ServerLoop(), ShutdownWalRcv(), StartBackgroundWorker(), StartupXLOG(), StreamConnection(), threadRun(), vacuum_delay_point(), wait_for_postmaster(), wait_pid(), WaitExceedsMaxStandbyDelay(), WALDumpOpenSegment(), WalSndWaitStopping(), WalWriterMain(), XactLockTableWait(), and XLogFlush().
int int pg_vfprintf | ( | FILE * | stream, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 242 of file snprintf.c.
References PrintfTarget::bufend, PrintfTarget::bufptr, PrintfTarget::bufstart, dopr(), PrintfTarget::failed, flushbuffer(), PrintfTarget::nchars, and PrintfTarget::stream.
Referenced by pg_fprintf(), pg_printf(), and pg_vprintf().
int int pg_vprintf | ( | const char * | fmt, |
va_list | args | ||
) |
Definition at line 276 of file snprintf.c.
References pg_vfprintf(), and generate_unaccent_rules::stdout.
int pg_vsnprintf | ( | char * | str, |
size_t | count, | ||
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 174 of file snprintf.c.
References PrintfTarget::bufend, PrintfTarget::bufptr, PrintfTarget::bufstart, dopr(), PrintfTarget::failed, PrintfTarget::nchars, generate_unaccent_rules::str, and PrintfTarget::stream.
Referenced by pg_snprintf().
int int pg_vsprintf | ( | char * | str, |
const char * | fmt, | ||
va_list | args | ||
) |
Definition at line 214 of file snprintf.c.
References PrintfTarget::bufend, PrintfTarget::bufptr, PrintfTarget::bufstart, dopr(), PrintfTarget::failed, PrintfTarget::nchars, generate_unaccent_rules::str, and PrintfTarget::stream.
Referenced by pg_sprintf().
char** pgfnames | ( | const char * | path | ) |
Definition at line 37 of file pgfnames.c.
References closedir(), dirent::d_name, opendir(), palloc(), pg_log_warning, pstrdup(), readdir(), and repalloc().
Referenced by convert_sourcefiles_in(), rmtree(), and scan_available_timezones().
void pgfnames_cleanup | ( | char ** | filenames | ) |
Definition at line 86 of file pgfnames.c.
Referenced by convert_sourcefiles_in(), rmtree(), and scan_available_timezones().
char* pipe_read_line | ( | char * | cmd, |
char * | line, | ||
int | maxsize | ||
) |
Definition at line 359 of file exec.c.
References fprintf, pclose_check(), and generate_unaccent_rules::stdout.
Referenced by find_other_exec(), and getRestoreCommand().
int pqGethostbyname | ( | const char * | name, |
struct hostent * | resultbuf, | ||
char * | buffer, | ||
size_t | buflen, | ||
struct hostent ** | result, | ||
int * | herrno | ||
) |
int pqGetpwuid | ( | uid_t | uid, |
struct passwd * | resultbuf, | ||
char * | buffer, | ||
size_t | buflen, | ||
struct passwd ** | result | ||
) |
Definition at line 65 of file thread.c.
Referenced by get_home_path(), pg_fe_getauthname(), PQconnectPoll(), and pqGetHomeDirectory().
Definition at line 170 of file signal.c.
References pg_signal_array, PG_SIGNAL_COUNT, SIG_ERR, SIGALRM, and SIGCHLD.
Referenced by ApplyLauncherMain(), ApplyWorkerMain(), autoprewarm_database_main(), autoprewarm_main(), AutoVacLauncherMain(), AutoVacWorkerMain(), BackendInitialize(), BackgroundWriterMain(), bootstrap_signals(), CheckpointerMain(), disable_sigpipe_trap(), do_start(), initialize_worker_spi(), InitializeTimeouts(), InitPostmasterChild(), main(), OpenPipeStream(), ParallelBackupStart(), ParallelWorkerMain(), pg_crc32c_armv8_available(), PgArchiverMain(), PgstatCollectorMain(), plperl_init_interp(), PostgresMain(), PostmasterDeathSignalInit(), PQprint(), pqsignal_pm(), restore_sigpipe_trap(), setalarm(), setup_cancel_handler(), setup_signals(), sigquit_handler(), sigTermHandler(), StartBackgroundWorker(), StartupProcessMain(), stop_postmaster(), SysLoggerMain(), test_shm_mq_main(), trap_sigint_during_startup(), trapsig(), WalReceiverMain(), WalSndSignals(), and WalWriterMain().
void qsort_arg | ( | void * | base, |
size_t | nel, | ||
size_t | elsize, | ||
qsort_arg_comparator | cmp, | ||
void * | arg | ||
) |
Definition at line 113 of file qsort_arg.c.
References cmp(), med3(), Min, swap, SWAPINIT, and vecswap.
Referenced by _bt_sort_array_elements(), build_column_frequencies(), build_sorted_items(), compute_range_stats(), compute_scalar_stats(), create_list_bounds(), create_range_bounds(), gbt_num_picksplit(), gbt_var_picksplit(), ginExtractEntries(), isort(), mcelem_array_selec(), multirange_canonicalize(), ndistinct_for_combination(), range_gist_double_sorting_split(), range_gist_single_sorting_split(), SortAndUniqItems(), spg_range_quad_picksplit(), startScanKey(), statext_mcv_serialize(), tbm_prepare_shared_iterate(), tsvectorrecv(), uniqueentry(), and uniqueifyJsonbObject().
long random | ( | void | ) |
Definition at line 22 of file random.c.
References pg_lrand48().
Referenced by _bt_findinsertloc(), acquire_sample_rows(), anl_init_selection_state(), anl_random_fract(), bt_check_every_level(), check_log_duration(), choose_dsm_implementation(), create_and_test_bloom(), dsm_create(), dsm_postmaster_startup(), ExecInitSampleScan(), explain_ExecutorStart(), get_normal_pair(), get_random_uint64(), GetPermutation(), gistchoose(), make_main_region_dsm_handle(), perform_spin_delay(), prepare_buf(), reservoir_init_selection_state(), SetTempTablespaces(), spgdoinsert(), StartTransaction(), and testdelete().
Definition at line 42 of file rmtree.c.
References filename, lstat, MAXPGPATH, pg_log_warning, pgfnames(), pgfnames_cleanup(), rmtree(), S_ISDIR, snprintf, and stat::st_mode.
Referenced by cleanup_directories_atexit(), convert_sourcefiles_in(), create_tablespace_directories(), CreateSlotOnDisk(), dbase_redo(), movedb(), movedb_failure_callback(), regression_main(), remove_dbtablespaces(), remove_new_subdir(), ReplicationSlotDropPtr(), RestoreSlotFromDisk(), rmtree(), and StartupReplicationSlots().
void set_pglocale_pgservice | ( | const char * | argv0, |
const char * | app | ||
) |
Definition at line 434 of file exec.c.
References _, AddUserToTokenDacl(), cleanup(), errcode(), find_my_exec(), get_etc_path(), get_locale_path(), i, log_error, MAXPGPATH, my_exec_path, PG_TEXTDOMAIN, setenv, and setlocale.
Referenced by main(), and regression_main().
int setenv | ( | const char * | name, |
const char * | value, | ||
int | overwrite | ||
) |
void srandom | ( | unsigned int | seed | ) |
Definition at line 22 of file srandom.c.
References pg_srand48().
Referenced by choose_dsm_implementation(), InitProcessGlobals(), and update_spins_per_delay().
size_t strlcat | ( | char * | dst, |
const char * | src, | ||
size_t | siz | ||
) |
Definition at line 33 of file strlcat.c.
Referenced by _PrepParallelRestore(), CreateLockFile(), get_configdata(), get_prompt(), and validate_exec().
size_t strlcpy | ( | char * | dst, |
const char * | src, | ||
size_t | siz | ||
) |
Definition at line 45 of file strlcpy.c.
Referenced by _tarGetHeader(), abstime2tm(), AuxiliaryProcessMain(), BaseBackup(), be_tls_get_peer_issuer_name(), be_tls_get_peer_serial(), be_tls_get_peer_subject_name(), ChooseConstraintName(), ChooseExtendedStatisticName(), ChooseExtendedStatisticNameAddition(), ChooseForeignKeyConstraintNameAddition(), ChooseIndexNameAddition(), ChooseRelationName(), CleanupPriorWALFiles(), ConvertTimeZoneAbbrevs(), create_script_for_old_cluster_deletion(), createNewConnection(), DCH_cache_getnew(), DefineRelation(), descriptor_variable(), DetermineTimeZoneAbbrevOffsetInternal(), ensureCleanShutdown(), ExecuteRecoveryCommand(), expand_tilde(), fetch_fp_info(), find_in_dynamic_libpath(), find_my_exec(), find_other_exec_or_die(), from_char_parse_int_len(), fsync_parent_path(), get_configdata(), get_control_data(), get_home_path(), get_prompt(), get_tablespace_mapping(), getRestoreCommand(), gnuish_strerror_r(), hash_create(), identify_system_timezone(), initialize_SSL(), InitPostgres(), internal_cancel(), isolation_init(), join_path_components(), KeepFileRestoredFromArchive(), logfile_getname(), main(), make_oper_cache_key(), make_relative_path(), makeUniqueTypeName(), mdsyncfiletag(), mdunlinkfiletag(), NUM_cache_getnew(), ParseAbortRecord(), parseCommandLine(), ParseCommitRecord(), ParseLongOption(), parseServiceInfo(), pg_getnameinfo_all(), pg_GSS_error_int(), pg_open_tzfile(), pg_perm_setlocale(), pg_stat_get_wal_receiver(), pg_timezone_abbrevs(), pg_TZDIR(), pg_tzenumerate_next(), pgarch_archiveXlog(), pgstat_bestart(), pgstat_replslot_index(), pgstat_report_replslot(), pgstat_report_replslot_drop(), pgstat_reset_replslot_counter(), pgstat_send_archiver(), PostmasterMarkPIDForWorkerNotify(), postprocess_sql_command(), PQcancel(), pqGetErrorNotice3(), pqGetHomeDirectory(), pqParseInput2(), pqParseInput3(), PQrequestCancel(), process_file(), process_postgres_switches(), px_crypt_des(), ReceiveAndUnpackTarFile(), recoveryStopsAfter(), RequestNamedLWLockTranche(), RequestXLogStreaming(), resolve_symlinks(), results_differ(), rot13_passphrase(), scan_available_timezones(), scan_directory(), scan_directory_ci(), SerializeLibraryState(), set_ps_display(), setup_bin_paths(), SetWALFileNameForCleanup(), SimpleLruInit(), SSLerrmessage(), tar_close(), tarCreateHeader(), timestamptz_to_str(), uuid_generate_internal(), validate_exec(), WalReceiverMain(), and XLogRestorePoint().
size_t strnlen | ( | const char * | str, |
size_t | maxlen | ||
) |
Definition at line 26 of file strnlen.c.
References generate_unaccent_rules::str.
Referenced by fmtstr(), pnstrdup(), and xml_is_document().
float strtof | ( | const char * | nptr, |
char ** | endptr | ||
) |
int unsetenv | ( | const char * | name | ) |
Definition at line 111 of file wait_error.c.
References WEXITSTATUS, WIFEXITED, and WIFSIGNALED.
Referenced by ExecuteRecoveryCommand(), pgarch_archiveXlog(), and RestoreArchivedFile().
bool wait_result_is_signal | ( | int | exit_status, |
int | signum | ||
) |
Definition at line 92 of file wait_error.c.
References WEXITSTATUS, WIFEXITED, WIFSIGNALED, and WTERMSIG.
Referenced by ClosePipeFromProgram(), and RestoreArchivedFile().
char* wait_result_to_str | ( | int | exit_status | ) |
Definition at line 32 of file wait_error.c.
References _, pg_strsignal(), pstrdup(), snprintf, generate_unaccent_rules::str, WEXITSTATUS, WIFEXITED, WIFSIGNALED, and WTERMSIG.
Referenced by BaseBackup(), ClosePipeFromProgram(), ClosePipeToProgram(), do_copy(), ExecuteRecoveryCommand(), pclose_check(), RestoreArchivedFile(), and run_ssl_passphrase_command().