dtrace_errno, dtrace_errmsg - libdtrace error processing
cc [ flag... ] file... -ldtrace [ library... ] #include <dtrace.h> int dtrace_errno(dtrace_hdl_t *dtp) const char *dtrace_errmsg(dtrace_hdl_t *dtp, int error)
The dtrace_errno() function returns the error number stored in the DTrace handle, dtp, provided the value of dtp is not NULL. The error number is set on failure of a libdtrace function call. If, however, the dtp argument is NULL, the dtrace_errno() function returns the value, errno.
The dtrace_errmsg() function returns a pointer to the error message string associated with a particular DTrace error number and corresponding to the error argument.
If dtp is NULL, the dtrace_errno() function returns errno. If dtp is non-NULL, the dtrace_errno() function returns the error number stored in the DTrace handle.
The dtrace_errmsg() function returns a pointer to a string indicating the error message corresponding to the error argument.
None
See the libdtrace(3LIB) man page for an example of using the dtrace_errmsg() and dtrace_errno() functions.
See attributes(7) for descriptions of the following attributes:
|