1PMIERRSTR(3) Library Functions Manual PMIERRSTR(3)
2
3
4
6 pmiErrStr - convert a LOGIMPORT error code into a string
7
9 #include <pcp/pmapi.h>
10 #include <pcp/import.h>
11
12 const char *pmiErrStr(int code);
13 char *pmiErrStr_r(int code, char buf, int buflen);
14
15 cc ... -lpcp_import -lpcp
16
18 use PCP::LogImport;
19
20 pmiErrStr($code);
21
23 As part of the Performance Co-Pilot Log Import API (see LOGIMPORT(3)),
24 pmiErrStr translates error codes returned from the other routines in
25 the Log Import library into printable error messages.
26
27 code would normally have a negative value. As a special case, if code
28 is -1 then the error code returned from the last routine called in the
29 LOGIMPORT library for this context will be used.
30
31 The pmiErrStr_r function does the same, but stores the result in a
32 user-supplied buffer buf of length buflen, which should have room for
33 at least PMI_MAXERRMSGLEN bytes.
34
35 The set of possible error codes and messages is all those defined by
36 pmErrStr(3) and PCPIntro(3), plus the additonal ones defined in
37 <pcp/import.h> with error code names of the form PMI_ERR_....
38
40 None.
41
43 LOGIMPORT(3), PCPIntro(3) and pmErrStr(3).
44
45
46
47Performance Co-Pilot PCP PMIERRSTR(3)