GitLab repository storage has been migrated to hashed layout. Please contact Infrastructure team if you notice any issues with repositories or hooks.

  1. 12 May, 2006 1 commit
  2. 11 Mar, 2006 1 commit
    • Marcus Brinkmann's avatar
      Implement watches for GIOChannels for write file descriptors on Win32 · 6f0ef1ba
      Marcus Brinkmann authored
      2006-03-02  Marcus Brinkmann  <mb@g10code.de>
      
      	Implement watches for GIOChannels for write file descriptors on
      	Win32 (#333098).
      
      	* glib/giowin32.c (GIOWin32Channel): Add a new direction field.
      	(read_thread): Initialize direction.
      	(write_thread): New function.
      	(buffer_write): New function.
      	(g_io_win32_prepare): Handle the G_IO_WIN32_FILE_DESC case for the
      	write direction.
      	(g_io_win32_fd_write): Call buffer_write() if there is a writer
      	thread.
      	(g_io_win32_fd_close): Set space_avail_event for writer threads.
      	(g_io_win32_fd_create_watch): Create the writer thread if
      	condition is G_IO_OUT.
      	(g_io_channel_win32_make_pollfd): Likewise here.
      6f0ef1ba
  3. 08 Nov, 2005 1 commit
  4. 08 Jul, 2005 1 commit
  5. 30 Mar, 2005 1 commit
  6. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  7. 11 Feb, 2005 1 commit
  8. 05 Feb, 2005 1 commit
    • Tor Lillqvist's avatar
      configure.in (G_LIBS_EXTRA) I think we can include <winsock2.h> and link · 02ef59ae
      Tor Lillqvist authored
      2005-02-05  Tor Lillqvist  <tml@novell.com>
      
      	* configure.in (G_LIBS_EXTRA)
      	* glib/giowin32.c: I think we can include <winsock2.h> and link
      	with -lws2_32. Only Windows 95 originally didn't have Winsock 2,
      	and it's available as an update for it. Not that we use any actual
      	Winsock 2 -only features, but still, simpler to link directly with
      	ws2_32.dll instead of going through wsock32.dll.
      02ef59ae
  9. 06 Dec, 2004 1 commit
  10. 27 Oct, 2004 1 commit
    • Matthias Clasen's avatar
      Introduce the idea of a filename encoding, which is *literally* the · 8a7eecd7
      Matthias Clasen authored
      2004-10-27  Matthias Clasen  <mclasen@redhat.com>
      
      	Introduce the idea of a filename encoding, which is
      	*literally* the filename encoding on Unix. On windows,
      	use the Unicode name converted to UTF-8. (#156325,
      	Tor Lillqvist, Owen Taylor)
      
      	* glib/gdir.[hc]:
      	* glib/gconvert.[hc]:
      	* glib/gfileutils.[hc]:
      	* glib/gutils.[hc]:
      	* glib/giowin32.c: On Windows, keep old ABI versions
      	of GLib pathname api for DLL ABI stability. Use different
      	names for the new-style UTF-8 versions. Hide this through
      	a #define.
      
      	* glib/gstdio.[hc]: New files containing wrappers for
      	POSIX pathname api.
      
      	* glib/glib.symbols: Add new symbols.
      
      	* glib/makegalias.pl: Drop Win32 specific .def syntax,
      	include gstdio.h
      8a7eecd7
  11. 16 Sep, 2004 1 commit
  12. 21 Aug, 2004 1 commit
  13. 01 Jul, 2004 1 commit
  14. 09 May, 2004 1 commit
  15. 10 Apr, 2004 1 commit
    • Tor Lillqvist's avatar
      glib/giowin32.c glib/gmain.c glib/gstrfuncs.c Decorating variable · 9b408061
      Tor Lillqvist authored
      2004-04-10  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/giowin32.c
      	* glib/gmain.c
      	* glib/gstrfuncs.c
      	* glib/gthread.c: Decorating variable definitions with
      	__declspec(dllexport) causes problems on Cygwin build, and isn't
      	really needed for a native Win32 build with mingw or MSVC, so
      	remove. (#138402, Roger Leigh)
      
      	* glib/libcharset/localcharset.c: Use Win32-specific code also on
      	Cygwin.
      	* tests/uri-test.c: Don't assume that local filenames are in UTF-8
      	on Cygwin, either. (#138412, Roger Leigh)
      9b408061
  16. 22 Nov, 2003 1 commit
  17. 25 Aug, 2003 1 commit
  18. 25 Jun, 2003 1 commit
    • Tor Lillqvist's avatar
      Pass real &optval and &optlen to getsockopt() instead of NULL. Don't · 98ba2b5e
      Tor Lillqvist authored
      2003-06-25  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/giowin32.c (g_io_channel_unix_new): Pass real &optval and
      	&optlen to getsockopt() instead of NULL. Don't remember why I
      	thought that NULL could be used (as we don't actually use the
      	returned value for anything), the Platform SDK documentation
      	doesn't imply so.
      98ba2b5e
  19. 08 Jun, 2003 1 commit
  20. 07 Jun, 2003 1 commit
  21. 04 Feb, 2003 1 commit
    • Tor Lillqvist's avatar
      Fix typo: Should be SOCKET_ERROR, not SO_ERROR. Noticed by Daniel · 5d48d565
      Tor Lillqvist authored
      2003-02-04  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/giowin32.c (g_io_channel_unix_new): Fix typo: Should be
      	SOCKET_ERROR, not SO_ERROR. Noticed by Daniel Kaufmann.
      
      	Merge from stable branch:
      
      	Fix for bug #104014, reported by Alex Shaduri:
      
      	* glib/gspawn-win32.c (protect_argv): New function. Add
      	double-quotes around argv elements that need it, and escape
      	embedded double-quotes with backslash.
      	(do_spawn_with_pipes) Call protect_argv().
      
      	* glib/gspawn-win32-helper.c (WinMain): Call protect_argv().
      
      	* glib/gspawn.c (g_spawn_async_with_pipes): Document argument
      	vector vs. command line details on Win32.
      	(g_spawn_command_line_sync): Improve documentation about
      	backslashes in the command line on Windows.
      5d48d565
  22. 04 Jan, 2003 1 commit
  23. 02 Jan, 2003 1 commit
  24. 17 Dec, 2002 1 commit
    • Tor Lillqvist's avatar
      Improvement based on suggestion by Thorsten Maerz: · 10d5085c
      Tor Lillqvist authored
      2002-12-17  Tor Lillqvist  <tml@iki.fi>
      
      	Improvement based on suggestion by Thorsten Maerz:
      
      	* glib/giowin32.c (struct _GIOWin32Channel): Don't need thread_handle.
      
      	(create_thread): We can close thread handle right away, it isn't
      	used for anything.
      
      	(read_thread, select_thread): Thus, don't close it here.
      
      	Fix #57690, partial fix for #57689:
      
      	* glib/giowin32.c (g_io_win32_set_flags): Don't set the GError,
      	instead call g_warning().
      
      	(g_io_win32_fd_get_flags_internal): New function, sets the
      	is_readable, is_writeable and is_seekable flags based on the
      	actual access modes of the underlying Win32 HANDLE, by trying
      	Win32 ReadFile() and WriteFile() of zero bytes, and
      	PeekNamedPipe(). Should work for disk files and pipes. For devices
      	(consoles) unfortunately not.
      
      	(g_io_win32_fd_get_flags): Don't set the
      	G_IO_FLAG_IS_{READ,WRITE}ABLE flags, g_io_channel_get_flags()
      	already does. Call g_io_win32_fd_get_flags_internal() to set the
      	is_* flags.
      
      	(g_io_win32_msg_get_flags, g_io_win32_sock_get_flags): Splice the
      	generic g_io_win32_get_flags() into these specific functions, as
      	they need to do different things. Not implemented yet, though.
      
      	(g_io_channel_win32_new_fd_internal): New function, to avoid
      	duplicate fstat() calls. Most code from g_io_channel_win32_new_fd()
      	moved here. Call g_io_win32_fd_get_flags_internal() to set the
      	is_* flags.
      
      	(g_io_channel_win32_new_fd, g_io_channel_unix_new): Call
      	g_io_channel_win32_new_fd_internal().
      
      	(g_io_win32_no_seek): Remove. Don't set is_seekable for those
      	channel types.
      10d5085c
  25. 15 Mar, 2002 2 commits
  26. 08 Mar, 2002 1 commit
    • Owen Taylor's avatar
      Final updates for 2.0.0 · cef5d28c
      Owen Taylor authored
      Fri Mar  8 10:20:46 2002  Owen Taylor  <otaylor@redhat.com>
      
              * NEWS: Final updates for 2.0.0
      
              * glib/gstrfuncs.c: Convert the results of strerror()
              and strsignal() to UTF-8.
      
              * glib/gconvert.c glib/gdir.c glib/giochannel.c glib/giounix.c
              glib/giowin32.c: Use g_strerror(), not strerror().
      cef5d28c
  27. 19 Feb, 2002 1 commit
    • Tor Lillqvist's avatar
      Include <config.h> first here, too. Use g_io_channel_read_chars() instead · c7e635a9
      Tor Lillqvist authored
      2002-02-19  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gspawn-win32.c: Include <config.h> first here, too. Use
      	g_io_channel_read_chars() instead of (deprecated)
      	g_io_channel_read(). Set encoding to NULL for the channels used
      	for the pipes from the child.
      
      	* glib/giowin32.c (buffer_read): Do return G_IO_STATUS_EOF when
      	EOF has been reached. Otherwise, with the above change to
      	gspawn-win32.c, spawn-test hangs.
      c7e635a9
  28. 15 Feb, 2002 1 commit
    • Owen Taylor's avatar
      Updated. · 5d43b9ad
      Owen Taylor authored
      Fri Feb 15 10:41:51 2002  Owen Taylor  <otaylor@redhat.com>
      
              * NEWS: Updated.
      
              * configure.in: Require autoconf-2.52, run AC_SYS_LARGEFILE.
              (#71410, Sven Neumann)
      
              * glib/giounix.c glib/giowin32.c glib/giochannel.[ch]:
              Change offset type for g_io_channel_seek[_position] to
              gint64.
      5d43b9ad
  29. 22 Dec, 2001 1 commit
    • Tor Lillqvist's avatar
      Add (undefined) HAVE_C99_VSNPRINTF. · c2794647
      Tor Lillqvist authored
      2001-12-21  Tor Lillqvist  <tml@iki.fi>
      
      	* config.h.win32.in: Add (undefined) HAVE_C99_VSNPRINTF.
      
      	* glibconfig.h.win32.in: Add definition of G_HAVE_GROWING_STACK.
      
      	* tests/Makefile.am: Rename the progs_LDADD, thread_LDADD and
      	module_LDADD Make macros to progs_ldadd, thread_ldadd and
      	module_ldadd. Newer automakes reserve macros named *_LDADD for
      	the use as LDADDs for targets it knows.
      
      	* glib/giowin32.c: (struct _GIOWin32Watch): 'callback' wasn't used
      	here, either.
      
      2001-12-21  Tor Lillqvist  <tml@iki.fi>
      
      	* gobject.def: Add g_signal_get_invocation_hint.
      c2794647
  30. 03 Nov, 2001 1 commit
    • Hans Breuer's avatar
      static correctness · 5981d6fe
      Hans Breuer authored
      2001-11-03  Hans Breuer  <hans@breuer.org>
      
      	* glib/giowin32.c : static correctness
      
      	* glib/gwin32.c : some more #if defined (SUBLANG_* ...
      	(g_win32_get_package_installation_subdirectory) use g_build_filename
      	instead of duplicating its logic
      
      	* glib/glib.def : removed duplicates, added mising, removed
      	compat cruft
      5981d6fe
  31. 27 Sep, 2001 1 commit
    • Bruno Haible's avatar
      When the sublangid is SUBLANG_DEFAULT, return the locale of the language's · 34462896
      Bruno Haible authored
      2001-09-24  Bruno Haible  <haible@clisp.cons.org>
      
      	* glib/gwin32.c (g_win32_getlocale): When the sublangid is
      	SUBLANG_DEFAULT, return the locale of the language's main country,
      	not a country-neutral locale. E.g. "en_US" instead of "en". Add
      	handling of LANG_SORBIAN. Fix typo for SUBLANG_CHINESE_SIMPLIFIED
      	(China == CN, CH == Switzerland). Ignore empty environment
      	variable values.
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/makefile.{mingw,msc}.in: Add localcharset.o. Just copy the
      	source file from libcharset and compile in this directory.
      
      	* glib/giochannel.c: Mark rest of g_set_error strings for
      	translation, too.
      
      	* glib/giowin32.c: Add some debugging output functions, call them
      	when debugging.
      	(create_events, g_io_win32_msg_write): Free message fetched with
      	g_win32_error_message ().
      	(g_io_win32_check): Indentation fixes.
      	(g_io_win32_fd_read,g_io_win32_sock_read): Don't always return
      	G_IO_STATUS_NORMAL. Do return G_IO_STATUS_EOF if we got 0 bytes,
      	like on Unix. This helps making the test programs run
      	successfully.
      
      	* glib/gmain.c (g_poll): Return the code ifdeffed out with
      	TEST_WITHOUT_THIS. Can't remember why it was ifdeffed out. Things
      	seem to work as previously with the code in place. Especially
      	spawn-test didn't work with the code ifdeffed out (Bug#61067).
      
      	* glib/grand.c (g_rand_new): Don't try to use /dev/urandom unless
      	on Unix.
      
      	* glib/gspawn-win32-helper.c (WinMain): Remove Sleep(10000)
      	accidentally left in.
      
      gthread:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* gthread-win32.c: Use an extra level of indirection for GMutex.
      	It is now a pointer either to a pointer to a CRITICAL_SECTION
      	struct, or to a mutex HANDLE. This is needed in case the user
      	defines G_ERRORCHECK_MUTEXES. G_MUTEX_SIZE must correctly reflect
      	the size of *GMutex, but this used to vary depending on whether we
      	at run-time chose to use CRITICAL_SECTIONs or mutexes.
      	(g_mutex_free_win32_cs_impl, g_cond_free_win32_impl): Call
      	DeleteCriticalSection() when done with it.
      
      	* gthread-impl.c (g_thread_init_with_errorcheck_mutexes): Call
      	g_thread_impl_init() before accessing
      	g_thread_functions_for_glib_use_default, as the
      	g_thread_impl_init() function might modify it.
      
      po:
      
      2001-09-28  Tor Lillqvist  <tml@iki.fi>
      
      	* POTFILES.in: Add iochannel.c and giowin32.c.
      
      	* sv.po: Remove a bogus fuzziness indicator.
      34462896
  32. 22 Sep, 2001 1 commit
  33. 21 Sep, 2001 1 commit
    • Hans Breuer's avatar
      added rule for glibconfig.h · fdc27bb8
      Hans Breuer authored
      2001-09-21  Hans Breuer  <hans@breuer.org>
      
      	* makefile.msc : added rule for glibconfig.h
      
      	* glib/giowin32.c (g_io_channel_new_file) : always open
      	in binary mode
      
      	* glib/glib.def : updated externals
      
      	* glib/gwin32.c : re-added LANG_* and SUBLANG_* definitions,
      	which are missing from the msvc 5.0 win32 sdk
      
      	* glib/makefile.msc.in : added gbsearcharry
      fdc27bb8
  34. 17 Sep, 2001 1 commit
    • Tor Lillqvist's avatar
      glib/gmain.c Mark the _funcs tables for export. · 812b4b00
      Tor Lillqvist authored
      2001-09-18  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gmain.c
      	* glib/giowin32.c: Mark the _funcs tables for export.
      
      	* glib/glib.def: Add here, too.
      
      	* glib/gwin32.c (get_package_directory_from_module): No reason to
      	check for the module being in a bin or lib directory only when
      	module_name is non-NULL.
      
      	* glib/gwin32.c (g_win32_get_package_installation_directory):
      	Check first in HKEY_CURRENT_USER, then in HKEY_LOCAL_MACHINE.
      
      	* gmodule/Makefile.am: On Win32, pass a dummy -rpath flag to
      	libtool when building libgplugin_[ab].la, otherwise libtool
      	doesn't create a DLL, but a static archive.
      812b4b00
  35. 04 Sep, 2001 1 commit
    • Tor Lillqvist's avatar
      Update. Don't mention pthreads. · 07741c07
      Tor Lillqvist authored
      
      2001-09-04  Tor Lillqvist  <tml@iki.fi>
      
      	* README.win32: Update. Don't mention pthreads.
      
      	* build-dll: Remove, moved to the build module.
      
      	* glibconfig.h.win32.in: Don't mention pthreds here, either.
      
      	* glib/gstrfuncs.c: Mark the correct variable for export from DLL.
      
      	* glib/giowin32.c (g_io_win32_msg_create_watch): Owen forgot to
      	rename the win32_watch_funcs variable here, too.
      
      	* */makefile.mingw.in: Don't use version number in import library
      	name. Use whole version number in DLL name. Use build-dll from the
      	build module.
      07741c07
  36. 03 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Add closure_marshal/closure_callback fields to GSourceFuncs for use by · b4c3107c
      Owen Taylor authored
      Mon Aug 27 14:56:12 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* glib/gmain.h: Add closure_marshal/closure_callback
      	fields to GSourceFuncs for use by g_source_set_closure().
      
      	* glib/gmain.c glib/giounix.c glib/giowin32.c
      	  glib/gmain.h: Export the SourceFuncs vtables so GObject
      	can use them to figure out closure callbacks/marshallers
      	for the default source types.
      
      Mon Aug 27 14:55:27 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gsourceclosure.[ch] (g_source_set_closure): Implement.
      
      	* gsourceclosure.[ch]: Add GType's for GIOChannel, GIOCondition.
      b4c3107c
  37. 22 Jul, 2001 1 commit
    • Hans Breuer's avatar
      make the code actually have an effect (Use |= to set bits). Not absolutely · 371fe042
      Hans Breuer authored
      2001-07-22  Hans Breuer  <hans@breuer.org>
      
      	* glib/giochannel.c (g_io_channel_get_buffer_condition) : make
      	the code actually have an effect (Use |= to set bits). Not
      	absolutely sure if is the right one.
      
      	* glib/giowin32.c (g_io_win32_<check|prepare>) : don't modify
      	watch->condition but restored the previous behaviour.
      	Now gio-test as well as The Gimp work again ...
      371fe042
  38. 21 Jul, 2001 2 commits