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

Function get_server

src/common/isc_file.cpp:1482–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1480
1481#if defined(HPUX) && (!defined HP11)
1482static bool get_server(tstring&, tstring& node_name)
1483{
1484/**************************************
1485 *
1486 * g e t _ s e r v e r ( H P - U X )
1487 *
1488 **************************************
1489 *
1490 * Functional description
1491 * If we're running on a cnode, the file system belongs
1492 * to the server node - load node_name with the server
1493 * name and return true.
1494 *
1495 **************************************/
1496 TEXT hostname[64];
1497 const struct cct_entry* cnode = getccnam(ISC_get_host(hostname, sizeof(hostname)));
1498 if (!cnode || cnode->cnode_type == 'r')
1499 {
1500 return false;
1501 }
1502
1503 setccent();
1504 while (cnode->cnode_type != 'r')
1505 {
1506 cnode = getccent();
1507 }
1508
1509 node_name = cnode->cnode_name;
1510 return true;
1511}
1512#endif // HPUX
1513#endif // NO_NFS
1514} // anonymous namespace

Callers 1

ISC_analyze_nfsFunction · 0.85

Calls 1

ISC_get_hostFunction · 0.85

Tested by

no test coverage detected