[glib] Added G_IO_ERROR_BROKEN_PIPE
- From: Juan Pablo Ugarte <jpu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Added G_IO_ERROR_BROKEN_PIPE
- Date: Thu, 29 Nov 2012 19:31:27 +0000 (UTC)
commit ccd1fb682050f4ccd9e0b5d1024d02199b7c862b
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date: Thu Nov 29 16:12:25 2012 -0300
Added G_IO_ERROR_BROKEN_PIPE
gio/gioenums.h | 4 +++-
gio/gioerror.c | 6 ++++++
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/gio/gioenums.h b/gio/gioenums.h
index b370623..39c43c0 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 7b98929..3a7785f 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]