gioerror: map some more values to G_IO_ERROR_NOT_SUPPORTED
authorDan Winship <danw@gnome.org>
Fri, 21 Mar 2014 20:54:04 +0000 (16:54 -0400)
committerDan Winship <danw@gnome.org>
Sun, 30 Mar 2014 15:06:35 +0000 (11:06 -0400)
commit9fc35dbfb6b804c0ead5dd3dba1bbf14773a2f8f
tree30ac6b4001ba1213efd71237de6301921492c501
parent0afd6d22ebb9ecb5e2b426904a91cac7a445cfe6
gioerror: map some more values to G_IO_ERROR_NOT_SUPPORTED

Map EPROTONOSUPPORT, ESOCKTNOSUPPORT, EPFNOSUPPORT and EAFNOSUPPORT to
G_IO_ERROR_NOT_SUPPORTED in g_io_error_from_errno(). (GSocket's
socket_io_error_from_errno() already did this with the corresponding
Winsock errors.)

Also map EOPNOTSUPP, which on Linux is the same as ENOTSUP, but may
not be on other platforms.

Also, rewrite the EAGAIN/EWOULDBLOCK section to use the simpler idiom
used by EEXIST/ENOTEMPTY and (now) ENOTSUP/EOPNOTSUPP.
gio/gioenums.h
gio/gioerror.c