Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cnodes(2) — HP-UX 6.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cnodeid(2)

cnodes(1)

getccent(3C)

CNODES(2)  —  HP-UX

Series 300 Diskless Only

NAME

cnodes − get a list of active nodes in cluster

SYNOPSIS

#include <sys/types.h>
#include <sys/param.h>

int cnodes (buf)
cnode_t *buf;

DESCRIPTION

Cnodes returns in buf the current number of active cnodes in the cluster.  If buf is not a null pointer, it should be a pointer to an array of at least MAX_CNODE cnode IDs.  This array will be filled with the cnode IDs of nodes currently in the cluster; the list of cnode IDs is terminated by the cnode ID 0. 

RETURN VALUE

Upon successful completion, cnodes returns the current number of active cnodes.  If the value 0 is returned, the machine is not a member of a cluster.  In case of an error, a value of −1 is returned and errno is set to indicate the error. 

ERRORS

Cnodes may fail if:

[EFAULT] Buf is not a null pointer and points to an illegal address.  Reliable detection of this error is not guaranteed. 

SEE ALSO

cnodeid(2), cnodes(1), getccent(3C). 

AUTHOR

Cnodes was developed by HP. 

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026