CI Project
  Overview
  License
  Download
  CVS
  Contributed Code
  Mailing Lists
  Goals
  Project List
  Features
  CLMS Features
  ICS Features
  Current Status
  Kernel Hooks
  Limitations / Enhancements
   
CI Documentation
  Kernel Patch
  Cluster Tools
   
Printer-friendly version
Manpage of LIBCLUSTER

LIBCLUSTER

Section: OpenSSI Prog Manual (3ssi)
Updated: 25 November 2003

 

NAME

clusternode_get_ip - returns address of a node  

SYNOPSIS

#include <sys/cluster.h>

int clusternode_get_ip(clusternode_t node, struct sockaddr * addr
    , int * size)

cc [flag ...] file -lcluster [library ...]
 

DESCRIPTION

clusternode_get_ip returns the address of the node given by node in addr. The size of addr is returned in the size parameter. The ip address is obtained by reading /etc/clustertab.

 

RETURN VALUE

clusternode_get_ip() returns 0 on success, and -1 on error(errno is set appropriately).  

ERRORS

EINVAL
If node is invalid (If node not found in /etc/clustertab).
ENOENT
Error opening /etc/clustertab

 

FILES

/etc/clustertab

 

SEE ALSO

clusternode_info(3ssi), clusternode_num(3ssi)


This document was created by man2html, using the manual pages.
Time: 21:59:39 GMT, May 19, 2004

SourceForge Logo

Opensource.hp.com

HP Linux solutions

The Linux Clustering Information Center

This file last updated on Wednesday, 19-May-2004 22:54:02 UTC
privacy and legal statement