nodeupdown_last_up_time

Langue: en

Autres versions - même langue

Version: September 2007 (fedora - 01/12/10)

Section: 3 (Bibliothèques de fonctions)

NAME

nodeupdown_last_up_time - retrieve time since epoch of the last known up time for a node.

SYNOPSIS

#include <nodeupdown.h>

int nodeupdown_last_up_time(nodeupdown_t handle, const char *node, unsigned int *last_up_time);

DESCRIPTION

nodeupdown_last_up_time() returns the last known time since epoch node was up. The value is stored in last_up_time.


RETURN VALUES

On success, 0 is returned. On error, -1 is returned, and an error code is returned in handle. The error code can be retrieved via nodeupdown_errnum(3) , and a description of the error code can be retrieved via nodeupdown_strerror(3). Error codes are defined in nodeupdown.h.

ERRORS

NODEUPDOWN_ERR_NULLHANDLE
The handle parameter is NULL. The nodeupdown handle must be created with nodeupdown_handle_create(3).
NODEUPDOWN_ERR_NOTLOADED
nodeupdown_load_data(3) has not been called and no data has been retrieved.
NODEUPDOWN_ERR_NOTFOUND
The node pointed to by node is not known.
NODEUPDOWN_ERR_NOTSUPPORTED
This feature is not supported by the local nodeupdown configuration.
NODEUPDOWN_ERR_MAGIC
handle has an incorrect magic number. handle does not point to a nodeupdown handle or handle has been destroyed by nodeupdown_handle_destroy(3).

FILES

/usr/include/nodeupdown.h

SEE ALSO

libnodeupdown(3), nodeupdown_handle_create(3), nodeupdown_load_data(3), nodeupdown_errnum(3), nodeupdown_strerror(3)