NCBI C++ ToolKit
Macros | Functions
threadsafe.c File Reference
#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <freetds/time.h>
#include <freetds/sysdep_private.h>
#include <freetds/utils.h>
#include <freetds/thread.h>
#include <freetds/replacements.h>
+ Include dependency graph for threadsafe.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define NETDB_REENTRANT   1
 

Functions

struct tm * tds_localtime_r (const time_t *timep, struct tm *result)
 
char * tds_timestamp_str (char *str, int maxlen)
 
int tds_getservice (const char *name)
 Return service port given the name. More...
 
char * tds_get_homedir (void)
 Get user home directory. More...
 

Macro Definition Documentation

◆ NETDB_REENTRANT

#define NETDB_REENTRANT   1

Definition at line 150 of file threadsafe.c.

Function Documentation

◆ tds_get_homedir()

char* tds_get_homedir ( void  )

Get user home directory.

Returns
home directory or NULL if error. Should be freed with free

Definition at line 257 of file threadsafe.c.

References buf, FAILED, NULL, and strdup.

◆ tds_getservice()

int tds_getservice ( const char *  name)

Return service port given the name.

Definition at line 189 of file threadsafe.c.

References addrinfo, buffer, data, freeaddrinfo, getaddrinfo, NULL, and result.

◆ tds_localtime_r()

struct tm* tds_localtime_r ( const time_t *  timep,
struct tm *  result 
)

Definition at line 79 of file threadsafe.c.

References NULL, and result.

◆ tds_timestamp_str()

char* tds_timestamp_str ( char *  str,
int  maxlen 
)

Definition at line 102 of file threadsafe.c.

References NULL, str(), strcat, t, and tds_localtime_r().

Modified on Sat Jun 22 10:40:52 2024 by modify_doxy.py rev. 669887