PostgreSQL Source Code
git master
|
#include "postgres_fe.h"
#include "common/logging.h"
#include "common/string.h"
#include "fe_utils/option_utils.h"
Go to the source code of this file.
Functions | |
void | handle_help_version_opts (int argc, char *argv[], const char *fixed_progname, help_handler hlp) |
bool | option_parse_int (const char *optarg, const char *optname, int min_range, int max_range, int *result) |
bool | parse_sync_method (const char *optarg, DataDirSyncMethod *sync_method) |
void handle_help_version_opts | ( | int | argc, |
char * | argv[], | ||
const char * | fixed_progname, | ||
help_handler | hlp | ||
) |
Definition at line 24 of file option_utils.c.
References exit(), get_progname(), and printf.
Referenced by main().
bool option_parse_int | ( | const char * | optarg, |
const char * | optname, | ||
int | min_range, | ||
int | max_range, | ||
int * | result | ||
) |
Definition at line 50 of file option_utils.c.
References optarg, pg_log_error, strtoint(), and val.
Referenced by main().
bool parse_sync_method | ( | const char * | optarg, |
DataDirSyncMethod * | sync_method | ||
) |
Definition at line 90 of file option_utils.c.
References DATA_DIR_SYNC_METHOD_FSYNC, DATA_DIR_SYNC_METHOD_SYNCFS, optarg, pg_log_error, and sync_method.
Referenced by main(), and parseCommandLine().