Added G_IO_ERROR_BROKEN_PIPE

This commit is contained in:
Juan Pablo Ugarte 2012-11-29 16:12:25 -03:00
parent 52c608dd0d
commit ccd1fb6820
2 changed files with 9 additions and 1 deletions

View File

@ -444,6 +444,7 @@ typedef enum {
* @G_IO_ERROR_PROXY_NEED_AUTH: Proxy server needs authentication. Since 2.26 * @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. * @G_IO_ERROR_PROXY_NOT_ALLOWED: Proxy connection is not allowed by ruleset.
* Since 2.26 * Since 2.26
* @G_IO_ERROR_BROKEN_PIPE: Broken pipe. Since 2.36
* *
* Error codes returned by GIO functions. * Error codes returned by GIO functions.
* *
@ -492,7 +493,8 @@ typedef enum {
G_IO_ERROR_PROXY_FAILED, G_IO_ERROR_PROXY_FAILED,
G_IO_ERROR_PROXY_AUTH_FAILED, G_IO_ERROR_PROXY_AUTH_FAILED,
G_IO_ERROR_PROXY_NEED_AUTH, G_IO_ERROR_PROXY_NEED_AUTH,
G_IO_ERROR_PROXY_NOT_ALLOWED G_IO_ERROR_PROXY_NOT_ALLOWED,
G_IO_ERROR_BROKEN_PIPE
} GIOErrorEnum; } GIOErrorEnum;

View File

@ -213,6 +213,12 @@ g_io_error_from_errno (gint err_no)
break; break;
#endif #endif
#ifdef EPIPE
case EPIPE:
return G_IO_ERROR_BROKEN_PIPE;
break;
#endif
default: default:
return G_IO_ERROR_FAILED; return G_IO_ERROR_FAILED;
break; break;