User Tools

Site Tools


solaris:dtrace_errno.3dtrace

dtrace_errno


NAME

dtrace_errno, dtrace_errmsg - libdtrace error processing

SYNOPSIS

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)

DESCRIPTION

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.

RETURN VALUES

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.

ERRORS

None

EXAMPLES

See the libdtrace(3LIB) man page for an example of using the dtrace_errmsg() and dtrace_errno() functions.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

libdtrace(3LIB)


solaris/dtrace_errno.3dtrace.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in