|
|
static int | hex2num (char *hex) |
| |
|
static int | hexdigit (int c) |
| |
| static int | parse_server_name_for_port (TDSLOGIN *connection, TDSLOGIN *login) |
| | Check the server name to find port info first Warning: connection-> & login-> are all modified when needed. More...
|
| |
| static int | search_interface_file (TDSLOGIN *login, const char *dir, const char *file, const char *host) |
| | Open and read the file 'file' searching for a logical server by the name of 'host'. More...
|
| |
|
int | tds_config_boolean (const char *option, const char *value, TDSLOGIN *login) |
| |
|
static void | tds_config_encryption (const char *value, TDSLOGIN *login) |
| |
|
static int | tds_config_env_tdsdump (TDSLOGIN *login) |
| |
|
static int | tds_config_env_tdshost (TDSLOGIN *login) |
| |
|
static void | tds_config_env_tdsport (TDSLOGIN *login) |
| |
|
static void | tds_config_env_tdsver (TDSLOGIN *login) |
| |
|
static int | tds_config_login (TDSLOGIN *connection, TDSLOGIN *login) |
| |
| TDS_USMALLINT * | tds_config_verstr (const char *tdsver, TDSLOGIN *login) |
| | Set TDS version from given string. More...
|
| |
|
static void * | tds_find (const void *key, const void *base, size_t nelem, size_t width, int(*compar)(const void *, const void *)) |
| |
| void | tds_fix_login (TDSLOGIN *login) |
| | Fix configuration after reading it. More...
|
| |
|
const TDS_COMPILETIME_SETTINGS * | tds_get_compiletime_settings (void) |
| | Return a structure capturing the compile-time settings provided to the configure script.
|
| |
| static char * | tds_get_home_file (const char *file) |
| | Return filename from HOME directory. More...
|
| |
| struct addrinfo * | tds_lookup_host (const char *servername) |
| | Get the IP address for a hostname. More...
|
| |
|
TDSRET | tds_lookup_host_set (const char *servername, struct addrinfo **addr) |
| |
| static int | tds_lookup_port (const char *portname) |
| | Given a portname lookup the port. More...
|
| |
|
void | tds_parse_conf_section (const char *option, const char *value, void *param) |
| |
| int | tds_read_conf_file (TDSLOGIN *login, const char *server) |
| | Read configuration info for given server return 0 on error. More...
|
| |
| int | tds_read_conf_section (FILE *in, const char *section, TDSCONFPARSE tds_conf_parse, void *param) |
| | Read a section of configuration file (INI style file) More...
|
| |
|
static int | tds_read_conf_sections (FILE *in, const char *server, TDSLOGIN *login) |
| |
| TDSLOGIN * | tds_read_config_info (TDSSOCKET *tds, TDSLOGIN *login, TDSLOCALE *locale) |
| | tds_read_config_info() will fill the tds connection structure based on configuration information gathered in the following order: 1) Program specified in TDSLOGIN structure 2) The environment variables TDSVER, TDSDUMP, TDSPORT, TDSQUERY, TDSHOST 3) A config file with the following search order: a) a readable file specified by environment variable FREETDSCONF b) a readable file in ~/.freetds.conf c) a readable file in $prefix/etc/freetds.conf 3) ~/.interfaces if exists 4) $SYBASE/interfaces if exists 5) TDS_DEF_* default values More...
|
| |
| static int | tds_read_interfaces (const char *server, TDSLOGIN *login) |
| | Try to find the IP number and port for a (possibly) logical server name. More...
|
| |
| TDSRET | tds_set_interfaces_file_loc (const char *interf) |
| | Set the full name of interface file. More...
|
| |
|
static int | tds_try_conf_file (const char *path, const char *how, const char *server, TDSLOGIN *login) |
| |
|
static int | tds_vernanme_cmp (const void *key, const void *pelem) |
| |
Handle reading of configuration.