1. 11 Oct, 2011 1 commit
  2. 04 Oct, 2011 1 commit
  3. 20 Sep, 2011 1 commit
  4. 01 Feb, 2011 1 commit
  5. 22 Nov, 2010 1 commit
  6. 09 Nov, 2010 2 commits
  7. 03 Nov, 2010 2 commits
    • Allison Karlitskaya's avatar
      Clean up g_usleep() · 38e7aa98
      Allison Karlitskaya authored
      Remove some code that was written in 2000 to support OSes that do not
      have nanosleep().  nanosleep() has been specified (in POSIX-1.2001) for
      almost a decade now, so assume we have it (except on Windows).
      
      Remove the checks for nanosleep and nsleep from configure.ac.
      
      We're removing this code because we honestly believe that nobody will be
      affected.  If this change negatively impacts you, please file a bug.
      38e7aa98
    • Allison Karlitskaya's avatar
      GTimer: switch to monotonic time · a48faa0a
      Allison Karlitskaya authored
      and remove docs notes about threads having to be initialised.
      a48faa0a
  8. 06 Sep, 2010 1 commit
  9. 04 Sep, 2010 2 commits
  10. 26 Aug, 2010 1 commit
  11. 07 Jul, 2010 1 commit
  12. 31 Jan, 2010 2 commits
  13. 02 Dec, 2009 1 commit
  14. 01 Sep, 2009 1 commit
  15. 08 Apr, 2009 1 commit
    • Peter Kjellerstedt's avatar
      Fix parsing of timezones · efc2cdbf
      Peter Kjellerstedt authored
      Make g_time_val_from_iso8601 handle timezones with minutes correctly;
      also accept comma as a fraction separator.  (#578369)
      efc2cdbf
  16. 31 Jan, 2009 1 commit
  17. 15 Sep, 2008 1 commit
    • Tor Lillqvist's avatar
      time_t is 64 bits in all the newer Microsoft C libraries, not just 64-bit · 6af6a8da
      Tor Lillqvist authored
      2008-09-16  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits in all
      	the newer Microsoft C libraries, not just 64-bit ones. So to avoid
      	crash if compiled with newer MSVSes, use a separate time_t
      	variable in all cases on Windows.
      
      
      svn path=/trunk/; revision=7496
      6af6a8da
  18. 28 Jul, 2008 1 commit
    • Tor Lillqvist's avatar
      Fix problems on 64-bit Windows. Avoid warnings, some of which indicated · a3fa7485
      Tor Lillqvist authored
      2008-07-28  Tor Lillqvist  <tml@novell.com>
      
      	Fix problems on 64-bit Windows. Avoid warnings, some of which
      	indicated actual problems, some which were just annoyances. 
      
      	Where casts to an integer type are needed for pointers, use
      	gssize. Technically intptr_t would be the more proper type, but we
      	still want to be compilable with MSVS6 and 7 which don't have
      	intptr_t. MSVS8 and 9 do have intptr_t, but in <crtdefs.h>, not
      	<stdint.h>.
      
      	Use %p to print out handles. Use gssize casts when assigning
      	GPollFD::fd fields.
      
      	Use G_GSIZE_FORMAT when printing size_t values.
      	
      	* configure.in: Define automake conditional G_OS_WIN32_X64 which
      	is true on Win64.
      
      	* glib/giochannel.h: Use slightly different prototype for
      	g_io_channel_win32_new_messages() on Win64 with gsize instead of
      	guint.
      
      	* glib/giowin32.c
      	* glib/gmain.c
      	* glib/gspawn-win32.c
      	* tests/testglib.c: Generic changes as described above.
      
      	* glib/gmain.h: Don't bother mentioning GIMP in comment.
      
      	* glib/grel.c (tuple_hash_2): Use all bits of pointer.
      
      	* glib/gspawn-win32.c
      	* glib/gspawn-win32-helper.c: Use gssize types in the
      	communication between parent and helper process, so that we can
      	pass process handles, which are pointers, also on Win64.
      
      	* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits on
      	Win64 so we can't pass the address of a GTimeVal::tv_sec which is
      	a long directly to gmtime(). On the other hand, changing
      	GTimeVal::tv_sec to be a gint64 on Win64 is not really feasible
      	either, as that would then require changes in much code that uses
      	GTimeVals.
      
      	* glib/gspawn-win32.c
      	* glib/Makefile.am: Call the helper programs
      	gspawn-win64-helper.exe and gspawn-win64-helper-console.exe on
      	Win64, to avoid potential risk of running a 32-bit version of the
      	helper.
      
      
      svn path=/trunk/; revision=7260
      a3fa7485
  19. 21 Jul, 2008 2 commits
    • Emmanuele Bassi's avatar
      Use the right format string to get leading zeros when converting to ISO · bb123b85
      Emmanuele Bassi authored
      2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* glib/gtimer.c (g_time_val_to_iso8601): Use the right format
      	string to get leading zeros when converting to ISO 8601. (Sven
      	Herzberg)
      
      svn path=/trunk/; revision=7232
      bb123b85
    • Emmanuele Bassi's avatar
      Do not set the timestamp value using time(), as it will be overwritten · bcdc09e6
      Emmanuele Bassi authored
      2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* glib/gbookmarkfile.c:
      	(bookmark_app_info_new): Do not set the timestamp value
      	using time(), as it will be overwritten anyway. (#535223,
      	Michael Meeks)
      
      	(parse_application_element),
      	(bookmark_app_info_dump): Support the "modified" attribute,
      	which takes an ISO-formatted string instead of a Unix time
      	stamp, to keep the number of g_strdup_printf() calls to a
      	minimum.
      
      	* glib/gtimer.c:
      	(g_time_val_to_iso8601): Do not use strftime(): we know
      	the format and contents of the ISO 8601 date format we
      	use.
      
      	* tests/bookmarks/valid-03.xbel: Add a test file for the
      	modified attribute.
      
      svn path=/trunk/; revision=7231
      bcdc09e6
  20. 19 Jun, 2008 1 commit
    • Matthias Clasen's avatar
      set tv_usec to 0 rather than 1 when a fraction of a second is not · d780a41c
      Matthias Clasen authored
              * glib/gtimer.c (g_time_val_from_iso8601): set tv_usec to 0 rather
              than 1 when a fraction of a second is not specified
              (g_time_val_from_iso8601): calculate a fraction of a second
              correctly even in case it does not happen to consist of exactly
              six digits; do not allow random data after the ISO 8601 string,
              only whitespace
              (make g_time_val_to_iso8601): support fractions of a second
              Patch by Peter Kjellerstedt
      
              * tests/testglib.c: Update to match
      
      
      svn path=/trunk/; revision=7057
      d780a41c
  21. 27 May, 2008 1 commit
  22. 18 May, 2008 1 commit
  23. 28 Jan, 2008 1 commit
  24. 19 Dec, 2007 1 commit
    • Emmanuele Bassi's avatar
      Fix the date validation check. (#503029) · a979c0d5
      Emmanuele Bassi authored
      2007-12-19  Emmanuele Bassi  <ebassi@gnome.org>
      
      	* glib/gtimer.c (g_time_val_from_iso8601): Fix the date validation
      	check. (#503029)
      
      	* tests/testglib.c (various_string_tests): Add an invalid date
      	for testing the above fix.
      
      svn path=/trunk/; revision=6160
      a979c0d5
  25. 13 Dec, 2007 1 commit
  26. 16 Jan, 2007 1 commit
    • Matthias Clasen's avatar
      Revert an accidental ABI break by moving gettime out of the · 4bbde507
      Matthias Clasen authored
      2007-01-16  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gthread.h:
              * glib/gthread.c:
              * glib/glib.symbols: Revert an accidental ABI break by
              moving gettime out of the GThreadFunctions struct and making
              it a separate variable.  (#397139, Joe Marcus Clarke)
      
              * gthread/*.c: Adapt.
      
      
      
      svn path=/trunk/; revision=5279
      4bbde507
  27. 12 Jan, 2007 1 commit
  28. 08 Jan, 2007 1 commit
    • Matthias Clasen's avatar
      Don't link glib against libpthread. (#393812) · 541462ab
      Matthias Clasen authored
      2007-01-07  Matthias Clasen  <mclasen@redhat.com>
      
      	Don't link glib against libpthread.  (#393812)
      	
      	* configure.in: Link gthread against librt, not glib itself.
      
      	* glib/gthread.h:
      	* glib/gthread.c: Add a new thread function, gettime.
      
      	* glib/gtimer.c: Use gettime instead of directly working with
      	the various system interfaces.
      
      	* gthread/gthread-impl.c:
      	* gthread/gthread-posix.c:
      	* gthread/gthread-win32.c: Implement gettime.
      	
      
      svn path=/trunk/; revision=5227
      541462ab
  29. 01 Oct, 2006 1 commit
  30. 03 Sep, 2006 1 commit
  31. 01 Sep, 2006 1 commit
  32. 28 Aug, 2006 1 commit
  33. 20 Jun, 2006 1 commit
  34. 23 Mar, 2006 2 commits
    • Matthias Clasen's avatar
      Adjust docs · b6d9f42a
      Matthias Clasen authored
      b6d9f42a
    • Emmanuele Bassi's avatar
      Check for timegm. · 6db9ec40
      Emmanuele Bassi authored
      2006-03-23  Emmanuele Bassi  <ebassi@cvs.gnome.org>
      
      	* configure.in: Check for timegm.
      
      	* glib/gtimer.h:
      	* glib/gtimer.c:
      	* glib/glib.symbols:
      	* docs/reference/glib/glib-sections.txt: Added g_time_val_to_iso8601
      	and g_time_val_from_iso8601, to convert a GTimeVal to and from an
      	ISO 8601 encoded date.
      
      	* tests/testglib.c: Added test cases for g_time_val_to_iso8601()
      	and g_time_val_from_iso8601() functions.
      6db9ec40