1NODEUPDOWN_LAST_UP_TIME(3) LIBNODEUPDOWN NODEUPDOWN_LAST_UP_TIME(3)
2
3
4
6 nodeupdown_last_up_time - retrieve time since epoch of the last known
7 up time for a node.
8
10 #include <nodeupdown.h>
11
12 int nodeupdown_last_up_time(nodeupdown_t handle, const char *node,
13 unsigned int *last_up_time);
14
16 nodeupdown_last_up_time() returns the last known time since epoch node
17 was up. The value is stored in last_up_time.
18
19
21 On success, 0 is returned. On error, -1 is returned, and an error code
22 is returned in handle. The error code can be retrieved via nodeup‐
23 down_errnum(3) , and a description of the error code can be retrieved
24 via nodeupdown_strerror(3). Error codes are defined in nodeupdown.h.
25
27 NODEUPDOWN_ERR_NULLHANDLE
28 The handle parameter is NULL. The nodeupdown handle must be
29 created with nodeupdown_handle_create(3).
30
31 NODEUPDOWN_ERR_NOTLOADED
32 nodeupdown_load_data(3) has not been called and no data has been
33 retrieved.
34
35 NODEUPDOWN_ERR_NOTFOUND
36 The node pointed to by node is not known.
37
38 NODEUPDOWN_ERR_NOTSUPPORTED
39 This feature is not supported by the local nodeupdown configura‐
40 tion.
41
42 NODEUPDOWN_ERR_MAGIC
43 handle has an incorrect magic number. handle does not point to
44 a nodeupdown handle or handle has been destroyed by nodeup‐
45 down_handle_destroy(3).
46
48 /usr/include/nodeupdown.h
49
51 libnodeupdown(3), nodeupdown_handle_create(3), nodeupdown_load_data(3),
52 nodeupdown_errnum(3), nodeupdown_strerror(3)
53
54
55
56LLNL September 2007 NODEUPDOWN_LAST_UP_TIME(3)