Import GInitable, GSocket and dependencies from gnio

This adds:
GInitable - failable object constructor interface
GAsyncInitable - async failable object constructor interface
GSocket - Platform independent lowlevel berkely socket style object
GSocketControlMessage - For passing control messages over GSocket
GUnixFDMessage - unix fd passing socket control message

Some changes were done during the import from gnio to make things
work in glib. For instance, types were moved to other headers, header
file boiler plate were updated to glib style and gio.symbols stuff
was added.
This commit is contained in:
Alexander Larsson
2009-05-14 15:26:37 +02:00
parent 33c00e5c33
commit 145cec3c93
17 changed files with 4833 additions and 1 deletions

View File

@@ -194,6 +194,12 @@ g_io_error_from_errno (gint err_no)
break;
#endif
#ifdef EADDRINUSE
case EADDRINUSE:
return G_IO_ERROR_ADDRESS_IN_USE;
break;
#endif
default:
return G_IO_ERROR_FAILED;
break;