1. 29 May, 2017 1 commit
  2. 31 Jan, 2014 1 commit
  3. 20 Nov, 2013 1 commit
    • Dan Winship's avatar
      Replace #ifdef HAVE_UNISTD_H checks with #ifdef G_OS_UNIX · 158dde05
      Dan Winship authored
      In Windows development environments that have it, <unistd.h> is mostly
      just a wrapper around several other native headers (in particular,
      <io.h>, which contains read(), close(), etc, and <process.h>, which
      contains getpid()). But given that some Windows dev environments don't
      have <unistd.h>, everything that uses those functions on Windows
      already needed to include the correct Windows header as well, and so
      there is never any point to including <unistd.h> on Windows.
      
      Also, remove some <unistd.h> includes (and a few others) that were
      unnecessary even on unix.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=710519
      158dde05
  4. 03 Nov, 2013 1 commit
  5. 24 Jun, 2013 2 commits
  6. 29 Jan, 2013 1 commit
    • Colin Walters's avatar
      Add g_close(), use it · f398bec5
      Colin Walters authored
      There are two benefits to this:
      
      1) We can centralize any operating system specific knowledge of
         close-vs-EINTR handling.  For example, while on Linux we should never
         retry, if someone cared enough later about HP-UX, they could come by
         and change this one spot.
      2) For places that do care about the return value and want to provide
         the caller with a GError, this function makes it convenient to do so.
      
      Note that gspawn.c had an incorrect EINTR loop-retry around close().
      
      https://bugzilla.gnome.org/show_bug.cgi?id=682819
      f398bec5
  7. 07 Jul, 2010 1 commit
  8. 22 Jun, 2010 1 commit
  9. 20 May, 2010 1 commit
    • David Zeuthen's avatar
      Bug 619142 – Build fixes · 366b3ffc
      David Zeuthen authored
       - Fix various #include issues
      
       - Change #error to #warning for the EXTERNAL authentication mechanism.
         It is not clear if this should work on Win32 at all.
      
       - Call close() before unlink() for the SHA1 keyring
      
       - Change #error to #warning so we don't forget to do
         permission checking of the .dbus-keyrings directory
      
       - Use Win32 SID for the SHA1 auth mech
      
       - Apparently we can't use word 'interface' as an identifier
      
       - Implement a _g_dbus_win32_get_user_sid() function. For now it's
         private. Don't know if it should be public somewhere. Maybe in
         a future GCredentials support for Win32? I don't know.
      
       - GFileDescriptorBased is not available on Win32. So avoid using
         it in GLocalFile stuff. Now, Win32 still uses GLocalFile + friends
         (which works with file descriptors) so expose a private function
         to get the fd for an OutputStream so things still work.
      
       - Fixup gio.symbols
      
       - Fixup tests/gdbus-peer.c so it builds
      
      With this, at least things compile and the gdbus-peer.exe test case
      passes. Which is a great start. I've tested this by cross-compiling on
      a x86_64 Fedora 13 host using mingw32 and running the code on a 32-bit
      Windows 7 box.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=619142Signed-off-by: 's avatarDavid Zeuthen <davidz@redhat.com>
      366b3ffc
  10. 15 Feb, 2010 1 commit
  11. 30 Nov, 2009 1 commit
  12. 18 Sep, 2009 1 commit
  13. 13 May, 2009 1 commit
  14. 17 Mar, 2009 1 commit
  15. 01 Jul, 2008 1 commit
    • Cody Russell's avatar
      Moved all relevant typedefs into these files. · 3d93bf69
      Cody Russell authored
      2008-07-01  Cody Russell  <bratsche@gnome.org>
      
              * gio/gioenums.h:
              * gio/giotypes.h:
      	Moved all relevant typedefs into these	files.
      
              * gio/*.[ch]:
      	Updated wrt added files.
      
              Split types into separate file	for easier maintainership. (#538564)
      
      
      svn path=/trunk/; revision=7127
      3d93bf69
  16. 22 Jun, 2008 1 commit
  17. 16 Jun, 2008 1 commit
  18. 06 Feb, 2008 1 commit
    • Christian Persch (away until week 30)'s avatar
      Save errno before calling other funcs that potentially alter it. Bug · 37ac644b
      	* gio/gdesktopappinfo.c: (ensure_dir):
      	* gio/glocalfile.c: (g_local_file_query_filesystem_info),
      	(g_local_file_read), (g_local_file_delete), (g_local_file_trash),
      	(g_local_file_move):
      	* gio/glocalfileinfo.c: (set_xattr), (_g_local_file_info_get),
      	(_g_local_file_info_get_from_fd), (set_unix_mode),
      	(set_unix_uid_gid), (set_symlink), (set_mtime_atime):
      	* gio/glocalfileinputstream.c: (g_local_file_input_stream_read),
      	(g_local_file_input_stream_skip),
      	(g_local_file_input_stream_close),
      	(g_local_file_input_stream_seek):
      	* gio/glocalfileoutputstream.c:
      	(g_local_file_output_stream_write),
      	(g_local_file_output_stream_close),
      	(g_local_file_output_stream_seek),
      	(g_local_file_output_stream_truncate), (copy_file_data),
      	(handle_overwrite_open):
      	* gio/gunixinputstream.c: (g_unix_input_stream_read),
      	(g_unix_input_stream_close), (read_async_cb), (close_async_cb):
      	* gio/gunixoutputstream.c: (g_unix_output_stream_write),
      	(g_unix_output_stream_close), (write_async_cb), (close_async_cb):
      	Save
      	errno before calling other funcs that potentially alter it. Bug
      	#514766.
      
      svn path=/trunk/; revision=6466
      37ac644b
  19. 21 Jan, 2008 1 commit
    • Matthias Clasen's avatar
      Whitespace cleanups. · 54300dde
      Matthias Clasen authored
      2008-01-21  Matthias Clasen  <mclasen@redhat.com>
      
              * glocal*.c:
              * gvolumemanager.c: Whitespace cleanups.
      
              * glocalfileoutputsteam.c (_g_local_file_output_stream_create):
              Use the right mode when creating the file.
      
      
      
      svn path=/trunk/; revision=6341
      54300dde
  20. 08 Dec, 2007 1 commit
    • Hans Breuer's avatar
      [gio compiles and links on win32, not sure how much already works] ifdefed · a33f8a75
      Hans Breuer authored
      2007-12-08  Hans Breuer  <hans@breuer.org>
      
      	[gio compiles and links on win32, not sure how much already works]
      	* glocaldirectorymonitor.c : ifdefed out inotify emulation for win32
      	* glocalfile.c : use HAVE_UNISTD_H; implement file system size info 
      	base on win32 API; prefer g_lstat() over lstat(); instead of 
      	localtime_r() use an all GLib implementation on win32;
      	get_mount_info() still needs a win32 specifc implementation
      	* glocalfileinfo.c : use HAVE_*_H; start of implementation of 
      	win32_get_file_user_info to get owner/group info without uid/gid
      	* glocalfileinputstream.c : include <io.h> on win32
      	* glocalfileoutputstream.c : include <io.h> on win32 and some S_IS*
      	definition, use g_win32_ftruncate() for G_OS_WIN32
      	* gwin32appinfo.c : optionalize a bunch on #ifdef AssocQueryString
      	it is available with mingw/w32api but a mess with the M$ Platform SDKs
      	see: http://mail.gnome.org/archives/gtk-devel-list/2007-December/msg00014.html
      	* makefile.msc : updated
      
      
      svn path=/trunk/; revision=6070
      a33f8a75
  21. 05 Dec, 2007 1 commit
    • Alexander Larsson's avatar
      Rename all struct members named: read, write, close, truncate, or mount to · 2c362b7f
      Alexander Larsson authored
      2007-12-05  Alexander Larsson  <alexl@redhat.com>
      
              * gbufferedinputstream.c:
              * gbufferedoutputstream.c:
              * gdrive.[ch]:
              * gfile.[ch]:
              * gfileenumerator.[ch]:
              * gfileinputstream.c:
              * gfileoutputstream.[ch]:
              * gfilterinputstream.c:
              * gfilteroutputstream.c:
              * ginputstream.[ch]:
              * glocalfile.c:
              * glocalfileenumerator.c:
              * glocalfileinputstream.c:
              * glocalfileoutputstream.c:
              * gmemoryinputstream.c:
              * gmemoryoutputstream.c:
              * goutputstream.[ch]:
              * gseekable.[ch]:
              * gunixdrive.c:
              * gunixinputstream.c:
              * gunixoutputstream.c:
      	Rename all struct members named:
      	read, write, close, truncate, or mount
      	to foo_fn, as these are reserved names
      	and could be defined as macros in libc.
      	(#501645)
      
      
      svn path=/trunk/; revision=6048
      2c362b7f
  22. 03 Dec, 2007 1 commit
    • Hans Breuer's avatar
      [start of port to win32/msvc] HAVE_UNIST_H and _pipe() only include · 43ae3892
      Hans Breuer authored
      2007-12-03  Hans Breuer  <hans@breuer.org>
      
      	[start of port to win32/msvc]
      	* gcancellable.c : HAVE_UNIST_H and _pipe()
      	* gcontenttype.c : only include <dirent.h> in the UNIX branch
      	* gdatainputstream.c : pointer arithmetic on void* is a gcc extension
      	* gdummyfile.c glocalfileinputstream.c gsimpleasyncresult.c : use 
      	HAVE_UNIST_H
      	* glocalfileoutputstream.c : use HAVE_UNIST_H and s/ssize_t/gssize/
      	* glocalvfs.c : use HAVE_PWD_H
      	* gio.symbols : ifdef unix specific functions with G_OS_UNIX
      	* makefile.msc : new file (maybe later converted to makefile.msc.in)
      	* Makefile.am : added to EXTRA_DIST
      
      svn path=/trunk/; revision=6027
      43ae3892
  23. 30 Nov, 2007 1 commit
  24. 28 Nov, 2007 2 commits
    • Alexander Larsson's avatar
      Removed unnecessary file · d9594f57
      Alexander Larsson authored
      2007-11-28  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * gdriveprivate.h:
      	Removed unnecessary file
      	
              * gdesktopappinfo.[ch]:
              * gdummyfile.[ch]:
              * gfile.c:
              * glocaldirectorymonitor.[ch]:
              * glocalfile.[ch]:
              * glocalfileenumerator.[ch]:
              * glocalfileinputstream.[ch]:
              * glocalfilemonitor.[ch]:
              * glocalfileoutputstream.[ch]:
              * glocalvfs.[ch]:
              * gnativevolumemonitor.c:
              * gpollfilemonitor.[ch]:
              * gunionvolumemonitor.[ch]:
              * gunixdrive.[ch]:
              * gunixvolume.[ch]:
              * gunixvolumemonitor.[ch]:
              * gvfs.c:
              * gvolumeprivate.h:
              * inotify/ginotifydirectorymonitor.[ch]:
              * inotify/ginotifyfilemonitor.[ch]:
              * inotify/inotify-helper.c:
      	Append _ to all internal functions
      	
              * gio.symbols:
      	Add missing symbols
      	Export symbols needed for modules
      
      
      svn path=/trunk/; revision=5977
      d9594f57
    • Alexander Larsson's avatar
      Added. Added. Added. Added. · 7f328023
      Alexander Larsson authored
      2007-11-28  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * abicheck.sh: Added.
              * makegioalias.pl: Added.
              * pltcheck.sh: Added.
              * gio.symbols: Added.
      	* *.c:
              * inotify/*.c
      	Initial work on adding symbol handling.
      
      	* gvfs.h:
      	Correct ifdef guard name
      
              * fam/Makefile.am:
              * inotify/Makefile.am:
              * xdgmime/Makefile.am:
      	Include toplevel Makefile.decl
      
      
      svn path=/trunk/; revision=5972
      7f328023
  25. 26 Nov, 2007 1 commit
    • Alexander Larsson's avatar
      gio/ docs/reference/gio Merged gio-standalone into glib. · 37813437
      Alexander Larsson authored
      2007-11-26  Alexander Larsson  <alexl@redhat.com>
      
              * Makefile.am:
              * configure.in:
              * gio-2.0-uninstalled.pc.in:
              * gio-2.0.pc.in: 
              * gio-unix-2.0-uninstalled.pc.in:
              * gio-unix-2.0.pc.in:
      	* gio/
      	* docs/reference/gio
      	Merged gio-standalone into glib.
      	
              * glib/glibintl.h:
              * glib/gutils.c:
      	Export glib_gettext so that gio can use it
      	Add P_ (using same domain for now)
      	Add I_ as g_intern_static_string
      
      
      svn path=/trunk/; revision=5941
      37813437