sg_set_error man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

sg_set_error(3)						       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

SYNOPSIS
       #include <statgrab.h>

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

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

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

       void sg_clear_error (void);

DESCRIPTION
       sg_set_error() sets the occurred error condition together with an argu‐
       ment. 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  to‐
       gether  with  an	 argument  and an error value of a system library call
       which doesn't set the errno value (eg. the pthread_* calls). The	 argu‐
       ment  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
       ⟨http://www.i-scream.org/libstatgrab/⟩

i-scream			  2013-06-07		       sg_set_error(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net