GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SG_SET_ERROR (3)

NAME

sg_set_error, sg_set_error_with_errno, sg_set_error_with_errno_code, sg_clear_error - sets the error condition

CONTENTS

Synopsis
Description
Website

SYNOPSIS

#include <statgrab.h>

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

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

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

void sg_clear_error \kx (void);

DESCRIPTION

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

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

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

sg_clear_error() clears the current error condition.

SEE ALSO

statgrab(3)

WEBSITE

\(lahttp://www.i-scream.org/libstatgrab/\(ra
Search for    or go to Top of page |  Section 3 |  Main Index


i-scream SG_SET_ERROR (3) 2013-06-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.