MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / ISC_get_host

Function ISC_get_host

src/common/isc.cpp:235–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233
234#if defined(SOLARIS)
235TEXT* ISC_get_host(TEXT* string, USHORT length)
236{
237/**************************************
238 *
239 * I S C _ g e t _ h o s t ( S O L A R I S )
240 *
241 **************************************
242 *
243 * Functional description
244 * Get host name.
245 *
246 **************************************/
247 struct utsname name;
248
249 if (uname(&name) >= 0)
250 fb_utils::copy_terminate(string, name.nodename, length);
251 else
252 strcpy(string, "local");
253
254 return string;
255}
256
257#elif defined(WIN_NT)
258

Callers 12

reattach_databaseFunction · 0.85
INET_analyzeFunction · 0.85
XNET_analyzeFunction · 0.85
alloc_portFunction · 0.85
get_keyFunction · 0.85
INF_database_infoFunction · 0.85
LogWriterMethod · 0.85
make_object_nameFunction · 0.85
get_serverFunction · 0.85
prepareCommitMethod · 0.85
API_ROUTINE gds__logFunction · 0.85
gds__print_poolFunction · 0.85

Calls 2

copy_terminateFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected