from_errno


Description:

public static unowned IOError from_errno (int err_no)

Converts errno.

h error codes into GIO error codes. The fallback value g_io_error_failed is returned for error codes not currently handled (but note that future GLib releases may return a more specific value instead).

Parameters:

err_no

Error number as defined in errno.h.

Returns:

IOError value for the given errno.h error number.