mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Added G_IO_ERROR_BROKEN_PIPE
This commit is contained in:
parent
52c608dd0d
commit
ccd1fb6820
@ -444,6 +444,7 @@ typedef enum {
|
||||
* @G_IO_ERROR_PROXY_NEED_AUTH: Proxy server needs authentication. Since 2.26
|
||||
* @G_IO_ERROR_PROXY_NOT_ALLOWED: Proxy connection is not allowed by ruleset.
|
||||
* Since 2.26
|
||||
* @G_IO_ERROR_BROKEN_PIPE: Broken pipe. Since 2.36
|
||||
*
|
||||
* Error codes returned by GIO functions.
|
||||
*
|
||||
@ -492,7 +493,8 @@ typedef enum {
|
||||
G_IO_ERROR_PROXY_FAILED,
|
||||
G_IO_ERROR_PROXY_AUTH_FAILED,
|
||||
G_IO_ERROR_PROXY_NEED_AUTH,
|
||||
G_IO_ERROR_PROXY_NOT_ALLOWED
|
||||
G_IO_ERROR_PROXY_NOT_ALLOWED,
|
||||
G_IO_ERROR_BROKEN_PIPE
|
||||
} GIOErrorEnum;
|
||||
|
||||
|
||||
|
@ -213,6 +213,12 @@ g_io_error_from_errno (gint err_no)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef EPIPE
|
||||
case EPIPE:
|
||||
return G_IO_ERROR_BROKEN_PIPE;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return G_IO_ERROR_FAILED;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user