gensio_err(3)

NAME
gensio_err - 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:

    E_NOERR No error
    E_NOMEM Out of memory
    E_NOTSUP Operation not supported
    E_INVAL Invalid data to parameter
    E_NOTFOUND Value or file not found
    E_EXISTS Value already exists
    E_OUTOFRANGE Value out of range
    E_INCONSISTENT Parameters inconsistent in call
    E_NODATA No data was available for the function
    E_OSERR OS error, see logs
    E_INUSE Object was already in use
    E_INPROGRESS Operation is in progress
    E_NOTREADY Object was not ready for operation
    E_TOOBIG Value was too large for data
    E_TIMEDOUT Operation timed out
    E_RETRY Retry operation later
    E_KEYNOTFOUND Unable to find the given key
    E_CERTREVOKED Key was revoked
    E_CERTEXPIRED Key was expired
    E_KEYINVALID Key is not valid
    E_NOCERT Certificate not provided
    E_CERTINVALID Certificate is not valid
    E_PROTOERR Protocol error
    E_COMMERR Communication error
    E_IOERR Internal I/O error
    E_REMCLOSE Remote end closed connection
    E_HOSTDOWN Host could not be reached
    E_CONNREFUSE Connection refused
    E_DATAMISSING Data was missing
    E_CERTNOTFOUND Unable to find given certificate
    E_AUTHREJECT Authentication tokens rejected
    E_ADDRINUSE Address already in use
    E_INTERRUPTED Operation was interrupted by a signal

gensio_err_to_str converts an integer error value to the given string.

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