1NODEUPDOWN_ERRNUM(3) LIBNODEUPDOWN NODEUPDOWN_ERRNUM(3)
2
3
4
6 nodeupdown_errnum, nodeupdown_strerror, nodeupdown_errormsg, nodeupâ
7 down_perror - nodeupdown error routines
8
10 #include <nodeupdown.h>
11
12 int nodeupdown_errnum(nodeupdown_t handle);
13
14 char *nodeupdown_strerror(int errnum);
15
16 char *nodeupdown_errormsg(nodeupdown_t handle);
17
18 void nodeupdown_perror(nodeupdown_t handle, const char *msg);
19
21 nodeupdown_errnum() returns the error code stored in handle.
22
23 nodeupdown_strerror() returns a pointer to a string describing the
24 error code errnum.
25
26 Generally, an error code is retrieved by nodeupdown_errnum() and then
27 passed to nodeupdown_strerror().
28
29 nodeupdown_errormsg() returns a pointer to a string describing the
30 error stored in handle. It is logically equivalent to:
31
32 char *nodeupdown_strerror(nodeupdown_errnum(nodeupdown_t handle));
33
34 nodeupdown_perror() is similar to perror(3). It produces a message on
35 standard error output, describing the error stored in handle. If msg
36 is not NULL, the string pointed to by msg, a colon, and a blank are
37 printed before the error message.
38
39
41 /usr/include/nodeupdown.h
42
43
44
45LLNL August 2003 NODEUPDOWN_ERRNUM(3)