Bug 505361 - gunixinputstream.c assumes poll() available
authorDan Winship <danw@src.gnome.org>
Fri, 26 Sep 2008 16:19:35 +0000 (16:19 +0000)
committerDan Winship <danw@src.gnome.org>
Fri, 26 Sep 2008 16:19:35 +0000 (16:19 +0000)
commit7f4864e58d4ee438a83cbf15f76e7d7aa171016c
treeea94c2bec6ef967491f73a211345d785fc27e784
parentea0970e9ca2e875d47a5bb8982bcd42bcc4f76f6
Bug 505361 - gunixinputstream.c assumes poll() available
Bug 509446 - portable blocking gio cancellation

* gcancellable.c (g_cancellable_make_pollfd): New method to make a
GPollFD for a cancellable (which is slightly more complicated on
Windows than Unix).

* gunixinputstream.c (g_unix_input_stream_read):
* gunixoutputstream.c (g_unix_output_stream_write): Use
g_cancellable_make_pollfd() and g_poll() rather than using poll()
directly.

* tests/unix-streams.c: test of GUnixInputStream,
GUnixOutputStream, and GCancellable.

svn path=/trunk/; revision=7553
docs/reference/gio/gio-sections.txt
gio/ChangeLog
gio/gcancellable.c
gio/gcancellable.h
gio/gio.symbols
gio/gunixinputstream.c
gio/gunixoutputstream.c
gio/pltcheck.sh
gio/tests/Makefile.am
gio/tests/unix-streams.c [new file with mode: 0644]