| 1480 | |
| 1481 | #if defined(HPUX) && (!defined HP11) |
| 1482 | static 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 |
no test coverage detected