SYNOPSIS

\*(T<#include <statgrab.h>\*(T>

\*(T<sg_error sg_set_error\*(T> \kx \*(T<(sg_error code, const char *arg);\*(T>

\*(T<sg_error sg_set_error_with_errno\*(T> \kx \*(T<(sg_error code, const char *arg);\*(T>

\*(T<sg_error sg_set_error_with_errno_code\*(T> \kx \*(T<(sg_error code, const char *arg, int errno_value);\*(T>

\*(T<void sg_clear_error\*(T> \kx \*(T<(void);\*(T>

DESCRIPTION

\*(T<sg_set_error\*(T>() sets the occurred error condition together with an argument. The argument is usually descriptive, eg. the file name which failed to open.

\*(T<sg_set_error_with_errno\*(T>() sets the occurred error condition together with an argument and the value of the system libraries \*(T<errno\*(T> value. The argument is usually descriptive, eg. the name of the failed \*(T<sysctl\*(T>() call.

\*(T<sg_set_error_with_errno_code\*(T>() sets the occurred error condition together with an argument and an error value of a system library call which doesn't set the \*(T<errno\*(T> value (eg. the pthread_* calls). The argument is usually descriptive, eg. the name of the mutex failed to get locked.

\*(T<sg_clear_error\*(T>() clears the current error condition.

RELATED TO sg_clear_error…

statgrab(3)

WEBSITE

\(lahttp://www.i-scream.org/libstatgrab/\(ra