1dlpi_strerror(3DLDPaIt)a Link Provider Interface Library Functidolnpsi_strerror(3DLPI)
2
3
4

NAME

6       dlpi_strerror - get DLPI error message
7

SYNOPSIS

9       cc [ flag... ] file... -ldlpi [ library... ]
10       #include <libdlpi.h>
11
12       const char *dlpi_strerror(int err);
13
14

DESCRIPTION

16       The  dlpi_strerror()  function maps the error code in err into an error
17       message string and returns a pointer to that string.
18
19
20       If err is DL_SYSERR, a string that describes the current value of errno
21       is  returned.  Otherwise, if err corresponds to an error code listed in
22       <libdlpi.h> or <sys/dlpi.h>, a string which  describes  that  error  is
23       returned.
24
25
26       The  string  is  not dynamically allocated and must not be freed by the
27       caller.
28

RETURN VALUES

30       Upon success, the function returns  a  pointer  to  the  error  message
31       string.  If  the error code is unknown, the string "Unknown DLPI error"
32       is returned.
33

ATTRIBUTES

35       See attributes(5) for description of the following attributes:
36
37
38
39
40       ┌─────────────────────────────┬─────────────────────────────┐
41       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
42       ├─────────────────────────────┼─────────────────────────────┤
43       │Interface Stability          │Committed                    │
44       ├─────────────────────────────┼─────────────────────────────┤
45       │MT-Level                     │Safe                         │
46       └─────────────────────────────┴─────────────────────────────┘
47

SEE ALSO

49       libdlpi(3LIB), attributes(5)
50
51
52
53SunOS 5.11                        22 Aug 2007             dlpi_strerror(3DLPI)
Impressum