bproc_currnode – Get the current node number
#include <sys/bproc.h> int bproc_currnode (void);
Returns the node number of the machine on which this process is
currently running. The value
BPROC_NODE_MASTER, -1, indicates that
the process is running on the master.
This function will return -1 if there is an error in processing, or if
you are on the master node. If there is the possibility of ambiguity,
errno variable should be initialized to 0 before the call and
checked for errors after the call.
BProcsystem is not available.
BProcsystem is loaded, but is not configured or active.
Insufficient kernel memory was available to return a value.