Sponsor:

Your company here, and a link to your site. Click to find out more.

gensio_err - Man Page

Error reporting values for gensio functions

Synopsis

#include <gensio/gensio_err.h>
const char *gensio_err_to_str(int err)

Description

The return values for gensio functions that return errors and the reported values in callbacks from the gensio library are all gensio errors.  Possible values are:

GE_NOERR                 No error
GE_NOMEM                 Out of memory
GE_NOTSUP                Operation not supported
GE_INVAL                 Invalid data to parameter
GE_NOTFOUND              Value or file not found
GE_EXISTS                Value already exists
GE_OUTOFRANGE            Value out of range
GE_INCONSISTENT          Parameters inconsistent in call
GE_NODATA                No data was available for the function
GE_OSERR                 OS error, see logs
GE_INUSE                 Object was already in use
GE_INPROGRESS            Operation is in progress
GE_NOTREADY              Object was not ready for operation
GE_TOOBIG                Value was too large for data
GE_TIMEDOUT              Operation timed out
GE_RETRY                 Retry operation later
GE_KEYNOTFOUND           Unable to find the given key
GE_CERTREVOKED           Key was revoked
GE_CERTEXPIRED           Key was expired
GE_KEYINVALID            Key is not valid
GE_NOCERT                Certificate not provided
GE_CERTINVALID           Certificate is not valid
GE_PROTOERR              Protocol error
GE_COMMERR               Communication error
GE_IOERR                 Internal I/O error
GE_REMCLOSE              Remote end closed connection
GE_HOSTDOWN              Host could not be reached
GE_CONNREFUSE            Connection refused
GE_DATAMISSING           Data was missing
GE_CERTNOTFOUND          Unable to find given certificate
GE_AUTHREJECT            Authentication tokens rejected
GE_ADDRINUSE             Address already in use
GE_INTERRUPTED           Operation was interrupted by a signal
GE_SHUTDOWN              Operation on shutdown file descriptor
GE_LOCALCLOSED           Local side closed connection
GE_PERM                  Permission denied
GE_APPERR                Application error
GE_UNKNOWN_NAME_ERROR    Unknown name server lookup failure
GE_NAME_ERROR            Unable to find a valid name on the name server
GE_NAME_SERVER_FAILURE   Serious name server failure
GE_NAME_INVALID          Invalid name server information
GE_NAME_NET_NOT_UP       Network address for the given name is not available

gensio_err_to_str converts an integer error value to the given string.

See Also

gensio(5), gensio_err(3), gensio_log(3)

Referenced By

gensio_acc_accept_s(3), gensio_acc_control(3), gensio_accepter_event(3), gensio_acc_get_type(3), gensio_acc_set_accept_callback_enable(3), gensio_acc_shutdown(3), gensio_acc_startup(3), gensio_add_default(3), gensio_alloc_channel(3), gensio_close(3), gensio_control(3), gensio_event(3), gensio_get_type(3), gensio_glib_funcs_alloc(3), gensio_mdns(3), gensio_open(3), gensio_os_funcs(3), gensio_set_read_callback_enable(3), gensio_set_sync(3), gensio_tcl_funcs_alloc(3), gensio_write(3), sergensio_event(3), str_to_gensio(3), str_to_gensio_accepter(3).

The man page gensio_err_to_str(3) is an alias of gensio_err(3).

24 Feb 2019