From ccd1fb682050f4ccd9e0b5d1024d02199b7c862b Mon Sep 17 00:00:00 2001 From: Juan Pablo Ugarte Date: Thu, 29 Nov 2012 16:12:25 -0300 Subject: [PATCH] Added G_IO_ERROR_BROKEN_PIPE --- gio/gioenums.h | 4 +++- gio/gioerror.c | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gio/gioenums.h b/gio/gioenums.h index b37062372..39c43c06d 100644 --- a/gio/gioenums.h +++ b/gio/gioenums.h @@ -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; diff --git a/gio/gioerror.c b/gio/gioerror.c index 7b98929bb..3a7785fd7 100644 --- a/gio/gioerror.c +++ b/gio/gioerror.c @@ -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;