1. 23 Feb, 2005 1 commit
  2. 21 Feb, 2005 1 commit
  3. 16 Sep, 2004 1 commit
  4. 22 Jan, 2004 1 commit
  5. 11 Dec, 2002 1 commit
    • Tor Lillqvist's avatar
      Fix off-by-one error. (#100853) · 12bc3d82
      Tor Lillqvist authored
      2002-12-11  Tor Lillqvist  <tml@iki.fi>
      	* glib/gtimer.c (g_timer_elapsed): Fix off-by-one error. (#100853)
      	* glib/gfileutils.c (g_file_test): Bypass extra test for root on
      	* glib/glib.def: Add g_{get,set}_application_name.
  6. 05 Dec, 2002 1 commit
    • Owen Taylor's avatar
      Start of fixes for cross-compilation. Based on patches from Dimi Shahbaz, · 901377bc
      Owen Taylor authored
      Thu Dec  5 15:24:14 2002  Owen Taylor  <otaylor@redhat.com>
              Start of fixes for cross-compilation. Based on
              patches from Dimi Shahbaz, Dan Kegel, Johannes Stenzenbach,
              Amy Lin. (#58786)
              * configure.in: Don't run the Digital-Unix 4 -std1 check
              when cross_compiling.
              * configure.in: Use AC_TRY_COMPILE() rather than
              AC_TRY_RUN() for inline checks. (Daniel Egger)
              * configure.in: use AC_CHECK_SIZEOF rather than
              GLIB_SIZEOF for size_t. Remove unused checks for
              size of ptrdiff_t/intmax_t.
              * acglib.m4: Resync GLIB_SIZEOF of to the current
              AC_CHECK_SIZEOF, which handles cross-compilation.
              * acglib.m4: Remove no longer needed GLIB_SYSDEFS(),
              add GLIB_CHECK_VALUE() as a wrapper around the
              amazing _AC_COMPUTE_INT() autoconf 2.5x internal.
              * configure.in: Redo the POLL* value checks in a
              cross-compilation friendly way.
      Thu Dec  5 15:28:37 2002  Owen Taylor  <otaylor@redhat.com>
              * glib/gtimer.c: Include glibconfig.h early so
              that we include <windows.h> when needed.
              * glib/gstrfuncs.c: Fix typo.
  7. 04 Dec, 2002 1 commit
  8. 28 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Adjust to changed parameter names. · 97489993
      Matthias Clasen authored
      	* glib/gtimer.c (g_time_val_add): Adjust to changed parameter names.
      	* glib/gutils.c (g_get_application_name): Mark as 2.2. addition.
      	* glib/gstrfuncs.c (g_ascii_strtoull): Mark as 2.0.7 addition.
      	* glib/tmpl/main.sgml: Write something about GSourceDummyMarshal.
      	* glib/tmpl/date.sgml:
      	* glib/tmpl/string_utils.sgml: Remove redundant docs.
      	* glib/glib-sections.txt: Add g_ascii_strtoull and
  9. 19 Sep, 2001 1 commit
  10. 07 Jun, 2001 1 commit
    • Sebastian Wilhelmi's avatar
      Look for nanosleep function. · 632943f3
      Sebastian Wilhelmi authored
      2001-06-07  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      	* configure.in: Look for nanosleep function.
      	* gtimer.c: Use nanosleep for g_usleep, when found.
      	* gtimer.c, gtimer.h: Add g_time_val_add function. Closes #54271.
      	* gasyncqueue.c: Documentation updates.
      	* gthreadpool.c: Use g_time_val_add now that we have it.
      	* glib/glib-sections.txt, glib/tmpl/date.sgml: Add g_time_val_add.
      	* glib/tmpl/threads.sgml: Updated.
  11. 09 Mar, 2001 1 commit
    • Tor Lillqvist's avatar
      Cygwin support contributed by Stefan Ondrejicka <ondrej@idata.sk>. · 754d8dda
      Tor Lillqvist authored
      2001-02-21  Tor Lillqvist  <tml@iki.fi>
      	Cygwin support contributed by Stefan Ondrejicka
      	<ondrej@idata.sk>. Hopefully I got it all in while simultaneously
      	adding support for auto*/libtool for mingw.
      	* Makefile.am: Changes for auto* support on Cygwin and Win32. Do
      	still distribute the hand-written makefiles and *.win32.in files,
      	though. Use GIO, GSPAWN and PLATFORMDEP macros set by configure.
      	Use -no-undefined. Pass -export-symbols glib.def to libtool.
      	* configure.in: Define G_PLATFORM_WIN32 on both pure Win32 (mingw)
      	and Cygwin. Add AC_CYGWIN, AC_EXEEXT and AC_LIBTOOL_WIN32_DLL
      	calls for Cygwin and mingw support.  Check for %I64u guint64
      	format (in MS C library). Set G_MODULE_IMPL on mingw and
      	Cygwin. Use ac_object and ac_exeext.  Set GIO, GSPAWN, PLATFORMDEP
      	and G_LIBS_EXTRA. Compile timeloop only on Unix. Define OS_WIN32
      	automake conditional on Win32.
      	* glib.h: Include gwin32.h also on Cygwin.
      	* gfileutils.c (get_contents_posix): Use O_BINARY (defined as 0 on
      	Unix) for Cygwin's sake.
      	* gtimer.c (GETTIME): Reduce #ifdefs, use a macro GETTIME().
      	* gconvert.c
      	* gthread.c
      	* gutf8.c
      	* gutils.c: For code needed both on Cygwin and native Win32,
      	test for G_PLATFORM_WIN32.
      	* gmarkup.h: Use G_BEGIN_DECLS and G_END_DECLS.
      	* gtypes.h: Refine GLIB_VAR definition. Also check for DLL_EXPORT
      	in case compiling a static library on Win32 or Cygwin.
      	* gwin32.c: No <direct.h> on Cygwin. No need for ftruncate() or
      	dirent emulation on Cygwin.
      	(get_package_directory_from_module) Convert return value from
      	GetModuleFileName() to POSIX path on Cygwin.
      	* tests/Makefile.am (progs_LDADD): Link with libglib, libgthread
      	and libgmodule as appropriate. Use -no-undefined.
      	* gbacktrace.c: Move #ifdefs around a bit on Win32.
      	* gshell.c (unquote_string_inplace): Make static.
      	* testglib.c: Make some vars static. Add Cygwin path tests.
  12. 06 Sep, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      s/G_MICROSEC/G_USEC_PER_SEC/ · ef2dcd62
      Sebastian Wilhelmi authored
      2000-09-06  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      	* glib.h, gtimer.c, tests/thread-test.c:
      	* gthread/gthread-posix.c, gthread/gthread-solaris.c:
  13. 26 Jul, 2000 1 commit
  14. 23 Mar, 2000 1 commit
    • Sebastian Wilhelmi's avatar
      After finding the right thread library (containing e.g. pthread_create) we · ac4abbba
      Sebastian Wilhelmi authored
      2000-03-23  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      	* configure.in: After finding the right thread library (containing
      	e.g. pthread_create) we now search for the right realtime library
      	(containing e.g. sched_get_priority_max). Makes the output of the
      	thread related libraries correct.
      	* gtimer.c (g_usleep): The current implementation of g_usleep
      	(simply calling select) doesn't work reliable for multi-threaded
      	programs on some platforms (bad omen for the main loop....), so I
      	changed the implementation for thread-using programs to wait for a
      	GCond for the specified amount of time (NB: sleep and usleep are
      	not MT-safe in general, because they often use signals).
  15. 01 Mar, 2000 1 commit
    • Tim Janik's avatar
      minor optimization. · db8baf69
      Tim Janik authored
      Wed Mar  1 10:39:39 2000  Tim Janik  <timj@gtk.org>
              * gslist.c (g_slist_reverse): minor optimization.
              * testglib.c (g_node_test): added a couple of tests for
              * glib.h:
              * gnode.c (g_node_copy): new function to copy subtrees,
              supplied by dbsears@ix.netcom.com.
              changed iterator to walk the children list backwards, so
              we get down from O(n^2) to O(n).
              * gnode.c (g_node_first_sibling): applied patch from
              dbsears@ix.netcom.com to optimize access if node->parent
              is present.
              * gutils.c (g_get_any_init): backed out HAVE_PW_GECOS check around
              assignment of g_real_name, sicne HAVE_PW_GECOS is never defined and
              thus breaks the original code.
              * merged changes from 1.2.7.
      Sat Feb 19 19:43:29 2000  Tim Janik  <timj@gtk.org>
              * testgmodule.c (main): added test to check that not yet bound symbols
              in shared libraries of the main module are retrievable, from David Gero.
      Fri Jan 28 11:37:41 2000  Owen Taylor  <otaylor@redhat.com>
              Bug #4156 - Changes vaguely modelled after Scott Gifford's patch
              * gtimer.c (g_timer_elapsed): Never report negative times -
              clip times to 0.
              * gmain.c (g_timeout_prepare): Guard against unexpected
              clock shifts by never setting a timeout of more than
              data->interval msecs.
  16. 04 Oct, 1999 1 commit
  17. 20 Jun, 1999 1 commit
    • Tor Lillqvist's avatar
      Update the pthreads snapshot version we want. Advice how to hand-expand · be80f9a1
      Tor Lillqvist authored
      	* README.win32: Update the pthreads snapshot version we want.
      	Advice how to hand-expand the makefile.*.in files.
      	* config.h.win32.in: Define values needed by Sebastian Wilhelmi's
      	new thread stuff.
      	* glib.def: Add new functions.
      	* glibconfig.h.win32.in: Update the pthreads snapshot version.
      	Fix typo.
      	* gthread.c: Include config.h, guard inclusion of unistd.h.  When
       	using gcc on Win32, g_thread_functions_for_glib_use must be marked
       	for export here, too.
      	* gtimer.c: Implement g_usleep on native Win32 using Sleep (which
      	only has millisecond granularity, though).
      	* makefile.cygwin.in
      	* makefile.msc.in: Update pthreads snapshot version. File
      	name changes. Remove testgthread.
      	* tests/makefile.cygwin.in
      	* tests/makefile.msc.in: Add thread-test. Link with gthread lib.
      	* gthread-posix.c: Guard pthread_attr_setscope call with test
      	for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined
      	in a <pthread.h> that supports that feature.
  18. 17 Jun, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Completed the thread support in GLib. Thread creation, prioritizing · 90f6cc9b
      Sebastian Wilhelmi authored
      1999-06-17  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
      	* configure.in, acglib.m4, acconfig.h, glib.h, gthread.c:
      	Completed the thread support in GLib. Thread creation,
      	prioritizing threads, yielding, joining threads as well as
      	reader/writer locks and recursive mutexes are now in place. Please
      	test heavily on your platform. It is so far tested on
      	Linux/i386/pthreads, Solaris/Sparc/pthreads and
      	* gtimer.c, glib.h: Implement g_usleep (gulong microseconds) for
      	thread safe sleeping. (sleep() is not MT-safe at all!)
      	* gutils.c: Avoid compiler warning.
      	* tests/Makefile.am, tests/thread-test.c: New program to test some
      	aspects of the thread implementation.
      	* gthread.c, Makefile.am: Renamed from gmutex.c to reflect the
      	change of content.
      	* configure.in: Purged all appearances of nspr.
      	* gthread/gthread-posix.c, gthread-solaris.c: Added the native
      	implementations for the GLib's extended thread support.
      	* gthread/gthread-nspr.c: Removed for good. NSPR is nothing we
      	would want to build upon.
      	* gthread/gthread.c: Renamed to gthread-impl.c to avoid
      	confusion with ../gthread.c (Formerly known as the file called
      	* gthread/testgthread.c: Removed. The new and much extended
              tests are in ../tests/thread-test.c.
      	* gthread/Makefile.am: Changed to reflect the changes above.
  19. 17 Mar, 1999 1 commit
    • Sebastian Wilhelmi's avatar
      Sun Mar 14 17:50:35 1999 Tim Janik <timj@gtk.org> · 5f17e39e
      Sebastian Wilhelmi authored
      Wed Mar 17 01:46:28 1999  Tim Janik  <timj@gtk.org>
              * merges from glib-1-2:
      Sun Mar 14 17:50:35 1999  Tim Janik  <timj@gtk.org>
              * gmem.c (g_mem_chunk_*): changed a bunch of g_assert() statements
              to g_return_if_fail().
              (g_mem_chunk_info): removed some extraneous "\n"s at the end of the log
              * gtimer.c (g_timer_*): changed a bunch of g_assert() statements
              to g_return_if_fail().
              * grel.c (g_*): changed a bunch of g_assert() statements to
              g_return_if_fail() and added some extra ones to check relation != NULL.
      Tue Mar  9 23:25:50 1999  Tim Janik  <timj@gtk.org>
              * configure.in: check for working realloc (NULL,).
              * gmem.c (g_realloc): use malloc() for initial allocation on systems
              where realloc(NULL,) will not work (this is the case on SunOS, reported
              by Tom Geiger).
      Mon Mar  8 07:42:08 1999  Tim Janik  <timj@gtk.org>
              * ghook.c (g_hook_unref): when !hook_list->is_setup, wrap the
              flag around the call to g_hook_free() to avoid spurious
              warnings (happens during destruction phase).
      1999-03-02  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
              * gmem.c: Fixed a stupid cut'n'paste error of mine. Thanks to
              Friedrich Dominicus <Friedrich.Dominicus@inka.de>
  20. 24 Feb, 1999 1 commit
  21. 15 Dec, 1998 1 commit
    • Owen Taylor's avatar
      This commit merges the glib-threads branch into the main · 931ea952
      Owen Taylor authored
      branch. See the ChangeLog for details of the changes.
      In brief overview:
       - The set of threading functions can be set
       - A default implementation is provided in -lgthread
       - All static data structures are locked using these
         functions if g_thread_init() is called.
  22. 01 Nov, 1998 1 commit
  23. 27 Oct, 1998 1 commit
    • Tor Lillqvist's avatar
      removed dummy structure definitions for struct _GCache, _GTree, _GTimer, · a6149403
      Tor Lillqvist authored
      Tue Oct 27 03:00:50 1998  Tim Janik  <timj@gtk.org>
              * glib.h: removed dummy structure definitions for struct _GCache,
              _GTree, _GTimer, _GMemChunk, _GListAllocator and _GStringChunk.
              * gutils.c: implement glib's inline functions _after_ all include
              statements have been processed.
              removed Tor's MAXPATHLEN check since there already was one supplied
              further down in this file.
              (LibMain): special cased the #ifdef __LCC__ case for NATIVE_WIN32,
              since lcc maybe used on other platforms as well. why in hell is this
              stuff required?
              (g_get_any_init): for windows, if the user name is supplied, use it as
              realname also.
              in general, if there is no homedir specified, use the tmpdir that
              we already figured.
              * gtimer.c (g_timer_elapsed): changed a g_assert() statement to
              * applied glib-tml-981020-0.patch for WIN32 portability, added some
              comments and g_return_if_fail() statements, minor indentation fixes.
              ChangeLog entry from Tor Lillqvist is appended.
              * glib.h (struct dirent): use lower case structure members.
              * glib.h:
              * makefile.lcc:
              * makefile.msc:
      1998-10-20: Tor Lillqvist <tml@iki.fi>
              * README.win32 glib.def gmodule.def
              * glibconfig.h.win32 gmodule/gmoduleconf.h.win32:
              New files for the Windows port. The .def files list exported
              symbols for the Microsoft linker and compatibles.
              * configure.in:
              Added checks for some platform-dependent headers: pwd.h sys/param.h
              sys/select.h sys/time.h sys/times.h unistd.h, and the function lstat.
              * gerror.c:
              Conditionalized inclusion of system-dependent headers. Changes
              for Windows: no gdb to do a stack trace. Just call abort().
              * glib.h:
              Changes for Windows:
              Added macros G_DIR_SEPARATOR, G_DIR_SEPARATOR_S for
              platform-dependent file name syntax elements. Added macros
              platform-dependent search path syntax conventions.
              Added pragmas for Microsoft C to make it more pedantic.
              Marked GLib's global variables for export from DLL.
              Added the function g_strescape that escapes backslashes.
              Added functions g_path_is_absolute and g_path_skip_root to
              handle platform-dependent file name syntax.
              Added the function g_getenv that expands environment variables
              that contain references to other environment variables, as is
              typical on Windows NT.
              Added the GIOChannel structure which is used to encapsulate the
              IPC mechanism used by the GIMP's plug-ins, and possibly other
              things later. On Unix a GIOChannel encapsulates just a file
              descriptor. On Windows it contains a file handle from _pipe() and a
              few other things related to the implementation of gdk_input_add
              and GIMP plug-in communication. Subject to change.
              Removed duplicate declarations of the version variables.
              For the Microsoft compiler, declare own implementation of
              ftruncate and the <dirent.h> functions.
              * gmem.c:
              Define a symbolic name  for the profiling table size.
              * gmessages.c:
              Conditionalized inclusion of unistd.h. On Windows, output using
              stdio to stdout.
              * gscanner.c:
              Conditionalized inclusion of unistd.h. Added changes for
              Microsoft C. Added CR to the skipped character set. Added small
              workaround for MSC compiler bug in g_scanner_cur_value.
              * gstrfuncs.c:
              Added the function g_strescape, which escapes the backslash
              character. Needed especially when printing Windows filenames.
              * gtimer.c:
              Conditionalized inclusion of unistd.h and sys/time.h. Added
              implementations for Windows.
              * gutils.c:
              Conditionalized inclusion of platform-dependent headers. Use
              the platform-independent file name syntax macros.
              Conditionalize code on platform-dependent features. Added the
              functions g_path_is_absolute g_path_skip_root and g_getenv.
              Added the GIOChannel-related functions. Added
              compiler-dependent Unix compatibility functions for Windows.
              * makefile.lcc makefile.msc:
              New files. Compiler-specific makefiles for LCC-Win32 and
              Microsoft C. Only Microsoft C is actually supported currently.
              * testglib.c:
              Added pathname check cases for Windows. Added workaround for
              bug in the Microsoft runtime library. Improved some tests a bit.
      Tue Oct 27 04:00:11 1998  Tim Janik  <timj@gtk.org>
              * testgmodule.c (main): changed the #ifdef WIN32 test to NATIVE_WIN32,
              this needs to be more constistent throughout the code, do we go for
              NATIVE_WIN32 or WIN32?
              * gmodule.c (LibMain): special cased the #ifdef __LCC__ case for
              NATIVE_WIN32, since lcc maybe used on other platforms as well.
              * libgplugin_a.c (LibMain):
              * libgplugin_b.c (LibMain):
              likewise. not sure i like this special requirement for lcc in here.
              * gmodule-dl.c (_g_module_build_path):
              feature empty "" directories and prepend the module name with "lib".
              * gmodule-dld.c (_g_module_build_path):
              * gmodule-win32.c (_g_module_build_path):
              feature empty "" directories.
              * we need some more magic in the _g_module_build_path variants
              so we don't append/prepend lib and .so, .sl or .dll for those names
              that already contain it.
              * applied patch from Tor Lillqvist for g_module_build_path() and
              windows support.
      1998-10-20: Tor Lillqvist <tml@iki.fi>
              * gmodule/gmodule-win32.c:
              New file.
              * gmodule/gmodule.c gmodule/gmodule.h:
              Added the funcion g_module_build_path that builds the path to
              a module file, decorating the name according to the system's
              conventions.  Added the Windows implementation.
              * gmodule/libgplugin_a.c gmodule/libgplugin_b.c:
              Added LibMain for LCC-Win32.
              * gmodule/testgmodule.c:
              Handle Windows dll names.
  24. 10 Jun, 1998 1 commit