PostgreSQL Source Code
git master
|
#include <signal.h>
Go to the source code of this file.
Data Structures | |
struct | PromptInterruptContext |
Typedefs | |
typedef struct PromptInterruptContext | PromptInterruptContext |
Functions | |
bool | pg_str_endswith (const char *str, const char *end) |
int | strtoint (const char *pg_restrict str, char **pg_restrict endptr, int base) |
char * | pg_clean_ascii (const char *str, int alloc_flags) |
int | pg_strip_crlf (char *str) |
bool | pg_is_ascii (const char *str) |
char * | pg_get_line (FILE *stream, PromptInterruptContext *prompt_ctx) |
bool | pg_get_line_buf (FILE *stream, struct StringInfoData *buf) |
bool | pg_get_line_append (FILE *stream, struct StringInfoData *buf, PromptInterruptContext *prompt_ctx) |
char * | simple_prompt (const char *prompt, bool echo) |
char * | simple_prompt_extended (const char *prompt, bool echo, PromptInterruptContext *prompt_ctx) |
typedef struct PromptInterruptContext PromptInterruptContext |
char* pg_clean_ascii | ( | const char * | str, |
int | alloc_flags | ||
) |
Definition at line 85 of file string.c.
References Assert, i, malloc, palloc_extended(), snprintf, and str.
Referenced by check_application_name(), check_cluster_name(), prepare_cert_name(), and ProcessStartupPacket().
char* pg_get_line | ( | FILE * | stream, |
PromptInterruptContext * | prompt_ctx | ||
) |
Definition at line 59 of file pg_get_line.c.
References buf, initStringInfo(), pfree(), and pg_get_line_append().
Referenced by get_su_pwd(), pipe_read_line(), and simple_prompt_extended().
bool pg_get_line_append | ( | FILE * | stream, |
struct StringInfoData * | buf, | ||
PromptInterruptContext * | prompt_ctx | ||
) |
bool pg_get_line_buf | ( | FILE * | stream, |
struct StringInfoData * | buf | ||
) |
bool pg_is_ascii | ( | const char * | str | ) |
Definition at line 132 of file string.c.
References IS_HIGHBIT_SET, and str.
Referenced by check_locale(), check_locale_name(), parse_key_value_arrays(), pg_import_system_collations(), and pg_saslprep().
bool pg_str_endswith | ( | const char * | str, |
const char * | end | ||
) |
Definition at line 31 of file string.c.
References str.
Referenced by decide_file_action(), and StartupReplicationSlots().
int pg_strip_crlf | ( | char * | str | ) |
Definition at line 154 of file string.c.
Referenced by adjust_data_dir(), check_exec(), CheckDataVersion(), get_control_data(), get_prompt(), get_sock_dir(), get_su_pwd(), getRestoreCommand(), passwordFromFile(), run_ssl_passphrase_command(), simple_prompt_extended(), and tokenize_auth_file().
char* simple_prompt | ( | const char * | prompt, |
bool | echo | ||
) |
Definition at line 38 of file sprompt.c.
References simple_prompt_extended().
Referenced by ConnectDatabase(), connectDatabase(), doConnect(), get_su_pwd(), GetConnection(), main(), sql_conn(), vacuumlo(), and yesno_prompt().
char* simple_prompt_extended | ( | const char * | prompt, |
bool | echo, | ||
PromptInterruptContext * | prompt_ctx | ||
) |
Definition at line 53 of file sprompt.c.
References _, PromptInterruptContext::canceled, fflush(), pg_get_line(), pg_strdup(), and pg_strip_crlf().
Referenced by exec_command_password(), exec_command_prompt(), prompt_for_password(), and simple_prompt().
int strtoint | ( | const char *pg_restrict | str, |
char **pg_restrict | endptr, | ||
int | base | ||
) |
Definition at line 50 of file string.c.
Referenced by buildDefItem(), DecodeDateTime(), DecodeInterval(), DecodeNumber(), DecodeNumberField(), DecodeTime(), DecodeTimeCommon(), DecodeTimeOnly(), DecodeTimezone(), exec_command_watch(), get_path_all(), jsonb_get_element(), nodeTokenType(), option_parse_int(), push_path(), and setPathArray().