glib/glib
Tor Lillqvist 605682521b Rework the g_poll() implementation on Windows to match poll() semantics
2008-08-21  Tor Lillqvist  <tml@novell.com>

	* glib/gmain.c: Rework the g_poll() implementation on Windows to
	match poll() semantics more closely. This makes the test program
	in bug #468910 behave better and doesn't seem to break anything
	else.

	If polling several GPollFDs, i.e. messages and/or waitable
	handles, first check if one or several of them are in the
	signalled state right away, and return indication for all that are
	in that case.

	If not, then poll with timeout and indicate only the single one
	that the Win32 wait function tells us as before.

	Remove unnecessary ifdefs, as we always have G_MAIN_POLL_DEBUG
	defined on Windows.

	Initialise g_main_poll_debug in g_main_context_new() so we have it
	before testing it in one case.

	Don't add several copies of a handle in the array of handles to
	wait for. The documentation says this is not allowed, although it
	did seem to work fine in practise. But do as the documentations
	says anyway.


svn path=/trunk/; revision=7375
2008-08-21 02:27:13 +00:00
..
glib-mirroring-tab removed all .cvsignore files. SVN doesn't need them. 2007-01-03 11:22:36 +00:00
gnulib Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
libcharset Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
pcre Set a sane default recursion limit of 8192 instead of 1000000. Patch by 2008-07-06 04:25:18 +00:00
tests added new sample test to prepare for extended range random tests. 2008-07-25 13:49:00 +00:00
update-pcre initialize automake variables EXTRA_DIST and TEST_PROGS for unconditional 2007-11-21 20:09:46 +00:00
abicheck.sh Make it work regardless of --enable-debug 2007-08-08 22:06:47 +00:00
galloca.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
garray.c honour g_mem_gc_friendly settings when freeing slices, make sure 2006-01-25 15:51:43 +00:00
garray.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gasyncqueue.c Documentation updates 2008-02-23 05:06:18 +00:00
gasyncqueue.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gatomic.c #include "config.h" before using G_ATOMIC_ARM. 2008-05-14 12:05:24 +00:00
gatomic.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gbacktrace.c Assume string.h is available 2006-09-10 05:50:50 +00:00
gbacktrace.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gbase64.c Don't refuse to encode a single byte. (Milan Crha) 2007-11-23 17:58:00 +00:00
gbase64.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gbookmarkfile.c Do not set the timestamp value using time(), as it will be overwritten 2008-07-21 13:05:24 +00:00
gbookmarkfile.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gbsearcharray.h inserted casts for C++. 2003-09-07 22:36:58 +00:00
gcache.c prepared deprecation of GMemChunk and GAllocator. added g_slice_*() API to 2005-11-01 18:10:31 +00:00
gcache.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gchecksum.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 15:10:51 +00:00
gchecksum.h Add docs 2008-06-15 00:03:54 +00:00
gcompletion.c Make passing NULL for new_prefix work as documented. (#338845, Yevgen 2006-04-18 02:21:43 +00:00
gcompletion.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gconvert.c glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c 2008-07-27 17:15:16 +00:00
gconvert.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gdataset.c Accept NULL and return GQuark value of zero. (#446859) 2007-06-17 07:43:34 +00:00
gdataset.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gdatasetprivate.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gdate.c Require gtk-doc 1.8. 2007-11-25 06:05:06 +00:00
gdate.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gdebug.h Move the compiler-dependency in the G_GNUC_INTERNAL definition from 2007-05-17 16:36:53 +00:00
gdir.c glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c 2008-07-27 17:15:16 +00:00
gdir.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gen-script-table.pl Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gen-unicode-tables.pl Apply a patch from Behdad Esfahbod to use a faster lookup table for 2005-11-04 22:27:04 +00:00
gerror.c Add a since 2008-08-01 18:30:37 +00:00
gerror.h Add g_set_error_literal. Bug #535947. 2008-06-16 16:41:01 +00:00
gfileutils.c glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c 2008-07-27 17:15:16 +00:00
gfileutils.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
ghash.c Bug 536158 – also bump GHashTable version when a node is removed via 2008-06-10 17:03:15 +00:00
ghash.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
ghook.c Check for NULL finalizer. (#476849, Areg Beketovski) 2007-09-19 20:36:53 +00:00
ghook.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gi18n-lib.h Hint about having to include config.h 2008-08-12 19:01:46 +00:00
gi18n.h Bug 536996 – Missing noop i18n macro equivalent to C_ 2008-07-18 18:14:04 +00:00
giochannel.c Use g_set_error_literal where appropriate. Patch from bug #535947. 2008-06-16 16:53:58 +00:00
giochannel.h Fix problems on 64-bit Windows. Avoid warnings, some of which indicated 2008-07-28 00:24:14 +00:00
giounix.c Use g_set_error_literal where appropriate. Patch from bug #535947. 2008-06-16 16:53:58 +00:00
giowin32.c Bug 500246 - Bug fixes for giowin32 2008-08-20 01:30:31 +00:00
gkeyfile.c Use g_set_error_literal where appropriate. Patch from bug #535947. 2008-06-16 16:53:58 +00:00
gkeyfile.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
glib-object.h Include gtypes.h not gobject/gtype.h 2001-11-18 00:38:48 +00:00
glib.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
glib.rc.in Don't use autoconf variables for the resource object files on Win32 any 2005-07-08 23:04:06 +00:00
glib.symbols Add g_markup_context_get_user_data 2008-07-28 16:52:15 +00:00
glibintl.h Bug 503071 - Application direction changes to right to left even if theres 2008-05-20 13:03:15 +00:00
glist.c Tiny doc fix 2008-06-12 03:55:32 +00:00
glist.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gmacros.h Bug 531900 – Use __builtin_offsetof for G_STRUCT_OFFSET if building 2008-06-11 07:37:45 +00:00
gmain.c Rework the g_poll() implementation on Windows to match poll() semantics 2008-08-21 02:27:13 +00:00
gmain.h Fix problems on 64-bit Windows. Avoid warnings, some of which indicated 2008-07-28 00:24:14 +00:00
gmappedfile.c Fix typos 2007-08-20 23:34:35 +00:00
gmappedfile.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gmarkup.c Bug 546876 -- also update documentation for escape_text 2008-08-08 16:53:26 +00:00
gmarkup.h Add g_markup_context_get_user_data 2008-07-28 16:52:15 +00:00
gmem.c use %G_GSIZE_FORMAT instead of %lu since sizes have changed from gulong to 2008-01-31 11:44:51 +00:00
gmem.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gmessages.c http://mail.gnome.org/archives/gtk-devel-list/2007-October/msg00089.html 2007-12-10 14:07:42 +00:00
gmessages.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gmirroringtable.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gnode.c Move docs inline. (#316260, Philippe Blain) 2008-01-28 04:50:12 +00:00
gnode.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
goption.c changed return value to const gchar* to fix warning. 2008-06-16 09:25:57 +00:00
goption.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gpattern.c applied significant recursion complexity optimization, based on a patch 2005-09-20 11:20:23 +00:00
gpattern.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gprimes.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-14 04:26:57 +00:00
gprimes.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gprintf.c Update fix for #469051 2007-08-22 19:31:27 +00:00
gprintf.h make it possible to disable single-file includes by defining 2008-03-14 19:30:38 +00:00
gprintfint.h Fix #147651, reported by Oliver Guntermann: 2004-07-21 17:51:28 +00:00
gqsort.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-14 04:26:57 +00:00
gqsort.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gquark.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gqueue.c Add G_QUEUE_INIT, g_queue_init(), and g_queue_clear() to better support 2007-03-06 18:43:10 +00:00
gqueue.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
grand.c Renamed to glib/gthreadprivate.h and moved system thread identifier 2006-05-10 00:44:50 +00:00
grand.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gregex.c Use g_set_error_literal where appropriate. Patch from bug #535947. 2008-06-16 16:53:58 +00:00
gregex.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
grel.c Fix problems on 64-bit Windows. Avoid warnings, some of which indicated 2008-07-28 00:24:14 +00:00
grel.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gscanner.c reverted premature commit which broke GScanner ABI and API, #415323. 2007-03-16 10:28:13 +00:00
gscanner.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gscripttable.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gsequence.c /bin/ksh can't handle a for-loop with no arguments, so add a "." for when 2008-02-10 04:41:25 +00:00
gsequence.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gshell.c Use g_set_error_literal where appropriate. Patch from bug #535947. 2008-06-16 16:53:58 +00:00
gshell.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gslice.c Use G_GSIZE_FORMAT instead of the C99 "zu". 2008-07-24 00:50:08 +00:00
gslice.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gslist.c Fix a typo 2008-03-10 16:50:13 +00:00
gslist.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gspawn-win32-helper.c glib/giowin32.c glib/gmain.c glib/gspawn-win32.c Change gssize casts 2008-08-04 18:46:59 +00:00
gspawn-win32.c glib/giowin32.c glib/gmain.c glib/gspawn-win32.c Change gssize casts 2008-08-04 18:46:59 +00:00
gspawn.c glib/gmain.c Clarify what a "child pid" is in the doc comments. 2008-06-11 06:57:22 +00:00
gspawn.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gstdio.c Bug 545485 - Implicit declaration of utime() 2008-07-30 15:35:01 +00:00
gstdio.h glib/gstdio.h Add g_utime(). No need to include <sys/utime.h> in gstdio.h, 2008-05-29 18:05:26 +00:00
gstrfuncs.c Bug 536996 – Missing noop i18n macro equivalent to C_ 2008-07-18 18:14:04 +00:00
gstrfuncs.h Bug 536996 – Missing noop i18n macro equivalent to C_ 2008-07-18 18:14:04 +00:00
gstring.c Fixed some minor typos in the documentation. 2008-01-18 09:41:46 +00:00
gstring.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gtester-report commented class definitions. moved HTML character escaping out of 2007-12-20 15:35:21 +00:00
gtester.c Bug 526619 – make test-report crash 2008-04-08 02:22:37 +00:00
gtestutils.c changed assertion messages, so older emacsen can also detect failing 2008-08-15 10:44:57 +00:00
gtestutils.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gthread.c Fix warnings from sparse. (#487491, Kjartan Maraas) 2007-10-21 17:01:29 +00:00
gthread.h Bug 316221 - G_LOCK warns about breaking strict-aliasing rules 2008-06-20 11:29:25 +00:00
gthreadpool.c Don't use "wait" as parameter name. (#379207, Christian Biere) 2006-12-17 20:27:02 +00:00
gthreadpool.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gthreadprivate.h Move the compiler-dependency in the G_GNUC_INTERNAL definition from 2007-05-17 16:36:53 +00:00
gtimer.c Fix problems on 64-bit Windows. Avoid warnings, some of which indicated 2008-07-28 00:24:14 +00:00
gtimer.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gtree.c honour g_mem_gc_friendly settings when freeing slices, make sure 2006-01-25 15:51:43 +00:00
gtree.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gtypes.h Cosmetics. 2008-08-04 18:48:01 +00:00
gunibreak.c Make PLT-reduction work with gcc4, and don't include everything in 2005-03-14 04:26:57 +00:00
gunibreak.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gunichartables.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gunicode.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gunicodeprivate.h Make g_unichar_combining_class() public. (#453998) 2007-07-19 13:46:05 +00:00
gunicollate.c Handle strfxrm returning -1 a little better. Problem pointed out by Takao 2008-06-11 19:38:35 +00:00
gunicomp.h Update to final Unicode Character Database 5.0.0. (#336281) 2006-07-19 22:35:17 +00:00
gunidecomp.c Fix a doc issue 2008-08-05 01:23:16 +00:00
gunidecomp.h Update to final Unicode Character Database 5.0.0. (#336281) 2006-07-19 22:35:17 +00:00
guniprop.c Bug 541507 – Ambiguous description of assigned characters in the Glib 2008-07-04 18:05:13 +00:00
gurifuncs.c Fix markup in comment. 2008-06-22 16:32:18 +00:00
gurifuncs.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gutf8.c Bug 547200 – g_utf8_find_next_char() issues 2008-08-11 19:03:04 +00:00
gutils.c glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c 2008-07-27 17:15:16 +00:00
gutils.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
gwin32.c glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c 2008-07-27 17:15:16 +00:00
gwin32.h #define __GLIB_H_INSIDE__ around including everything. 2008-05-05 15:02:15 +00:00
Makefile.am Fix problems on 64-bit Windows. Avoid warnings, some of which indicated 2008-07-28 00:24:14 +00:00
makefile.msc.in to get the default translation target on win32 use g_win32_get_locale() 2008-06-13 08:05:33 +00:00
makegalias.pl glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c 2008-07-27 17:15:16 +00:00
pltcheck.sh Skip g_bit_*(). Inline functions may end up with a local plt if the 2008-02-06 17:35:25 +00:00
win_iconv.c Bug 525972 - UCS-4 not in the new win_iconv implementation 2008-04-03 14:59:39 +00:00