glib/glib
Ryan Lortie 9d0c17b501 g_file_set_contents(): don't fsync on ext3/4
ext3 and ext4 (for quite some time) with default mount options don't
need fsync() to ensure safety of replace-by-rename.  Stop doing that for
these filesystems.

Note: this patch also impacts ext2, which is probably not safe, but I
don't know of any way to check ext2. vs the others because they all have
the same magic numbers (short of opening /proc/mount).

This patch assumes that if BTRFS_SUPER_MAGIC is defined then so will be
EXT3_SUPER_MAGIC.

https://bugzilla.gnome.org/show_bug.cgi?id=701560
2013-06-04 09:52:10 -04:00
..
deprecated Fix deprecation note for g_static_mutex_free 2013-02-03 01:30:05 -05:00
glib-mirroring-tab Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gnulib Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
libcharset Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
pcre Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
tests Skip spawn tests when collecting coverage 2013-06-01 18:54:57 -04:00
update-pcre Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
.gitignore update .gitignores 2011-06-12 16:17:30 -04:00
docs.c G_GNUC_FORMAT: documentation error 2013-05-23 22:14:59 -04:00
galloca.h Fix compilation on Android with the bionic C library 2013-04-16 13:24:26 +02:00
garray.c GByteArray: Add missing transfer annotations 2012-11-09 09:32:03 +01:00
garray.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gasyncqueue.c Fix malformed GTK-Doc comment blocks: invalid parameters and tags. 2012-04-05 10:23:42 -03:00
gasyncqueue.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gasyncqueueprivate.h GAsyncQueue: Move private API to a private header 2011-10-01 20:22:46 -04:00
gatomic.c g_atomic_int_get, g_atomic_pointer_get: accept const arguments 2013-04-08 14:15:22 +02:00
gatomic.h g_atomic_int_get, g_atomic_pointer_get: accept const arguments 2013-01-28 11:37:53 +00:00
gbacktrace.c gbacktrace.c: special treatment for a weird symbol 2013-01-13 13:13:43 -05:00
gbacktrace.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gbase64.c Add warning to g_base64_decode() 2013-03-17 22:48:53 -04:00
gbase64.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gbitlock.c gbitlock: fix this to not unconditionally use futex emulation 2013-05-04 10:09:39 -04:00
gbitlock.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gbookmarkfile.c bookmarkfile: Fix annotations on GBookmarkFile 2013-04-12 16:41:57 -04:00
gbookmarkfile.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gbsearcharray.h Spelling fixes 2011-08-29 14:49:32 -04:00
gbytes.c GBytes: Add missing annotations 2012-11-09 09:09:39 +01:00
gbytes.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gcharset.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gcharset.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gcharsetprivate.h Remove most use of G_GNUC_INTERNAL 2013-01-18 13:03:28 -05:00
gchecksum.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gchecksum.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gconstructor.h Move constructor macros to an internal header and into generated code 2012-01-30 16:59:27 +01:00
gconvert.c Remove a few more G_GNUC_INTERNAL users 2013-01-18 13:28:43 -05:00
gconvert.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gdataset.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
gdataset.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gdatasetprivate.h Don't include glib.h in other headers 2010-09-03 21:24:40 -04:00
gdate.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gdate.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gdatetime.c gdatetime: Fix some docs sed damage 2012-11-24 11:23:22 -05:00
gdatetime.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gdir.c win32: re-fix the _utf8 compat function situation 2012-11-16 08:22:06 -05:00
gdir.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gen-iswide-table.py Bug 648966 - Update g_unichar_iswide and g_unichar_iswide_cjk 2011-04-29 18:03:24 -04: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 unicode: Add new line breaking class from unicode 6.2 2012-10-03 13:58:19 +02:00
genviron.c CVE-2012-3524: Hardening for being run in a setuid environment 2012-09-13 18:34:29 -04:00
genviron.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gerror.c Add G_GNUC_PRINTF on all functions with format strings 2013-01-13 12:32:40 -05:00
gerror.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gfileutils.c g_file_set_contents(): don't fsync on ext3/4 2013-06-04 09:52:10 -04:00
gfileutils.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
ggettext.c Protect against strcmp() on NULL strings 2012-11-28 16:25:43 +01:00
ggettext.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
ghash.c ghash: Suppress -Wmaybe-uninitialized from GCC 4.4 2013-04-02 14:14:42 -04:00
ghash.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
ghmac.c g_hmac_get_string: don't allocate and leak an unused buffer 2011-12-14 12:26:16 +00:00
ghmac.h Move single-include guards inside include guards 2012-12-27 23:43:14 -05:00
ghook.c documentation fixes 2011-12-13 23:01:51 -05:00
ghook.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
ghostutils.c ghostutils: Convert non-ASCII dots to '.' when converting hostnames 2010-12-15 03:56:35 -05:00
ghostutils.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gi18n-lib.h Bug 548321 – <string.h> is not included in gi18n-lib.h 2008-09-11 16:48:44 +00:00
gi18n.h Bug 548321 – <string.h> is not included in gi18n-lib.h 2008-09-11 16:48:44 +00:00
giochannel.c Fix duplicated case value for mingw runtimes defining EOVERLFOW as EFBIG 2012-11-28 16:34:18 +01:00
giochannel.h Fix deprecation warning for g_io_channel_read 2013-04-10 15:55:37 +12:00
giounix.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
giowin32.c win32: misc warning fixes 2012-11-15 14:19:06 -05:00
gkeyfile.c win32: misc warning fixes 2012-11-15 14:19:06 -05:00
gkeyfile.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
glib_probes.d Initial support for dtrace and systemtap 2010-05-27 14:51:41 -04:00
glib_trace.h Initial support for dtrace and systemtap 2010-05-27 14:51:41 -04:00
glib-init.c win32: Allow POSIX threads to be used if --with-threads=posix 2013-04-09 14:10:13 +02:00
glib-init.h Remove most use of G_GNUC_INTERNAL 2013-01-18 13:03:28 -05:00
glib-object.h Clean up includes 2011-05-28 23:27:24 -04:00
glib-private.c various: add missing cases of #include "config.h" 2012-12-06 13:30:31 -05:00
glib-private.h Remove most use of G_GNUC_INTERNAL 2013-01-18 13:03:28 -05:00
glib-unix.c Fix compilation on Android with the bionic C library 2013-04-16 13:24:26 +02:00
glib-unix.h Add a UNIX fd source 2013-01-15 14:08:02 -05:00
glib.h Make G_DISABLE_DEPRECATED work again for wholly deprecated headers 2013-02-03 01:11:02 -05:00
glib.py glib.py: Remove old debugging code 2012-10-07 20:12:02 -03:00
glib.rc.in Update the year in the *.rc.in files 2011-06-07 08:55:31 +08:00
glib.stp.in Initial support for dtrace and systemtap 2010-05-27 14:51:41 -04:00
glibconfig.h.win32.in Update config.h.win32(.in) and glibconfig.h.win32(.in) 2012-09-26 17:47:52 +08:00
glibintl.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
glist.c Make GList more robust 2013-03-01 19:11:11 -05:00
glist.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gmacros.h gmacros: Mark G_UNAVAILABLE() functions as deprecated (gcc <= 4.4) 2013-04-03 00:33:45 -04:00
gmain-internal.h Move single-include guards inside include guards 2012-12-27 23:43:14 -05:00
gmain.c gmain: fix double-unlock in g_main_context_unref() 2013-04-10 11:39:12 -04:00
gmain.h gsource: Add support for file descriptors on UNIX 2013-01-15 14:08:02 -05:00
gmappedfile.c win32: misc warning fixes 2012-11-15 14:19:06 -05:00
gmappedfile.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gmarkup.c Fix build with -Werror=format 2013-01-19 14:30:05 -05:00
gmarkup.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gmem.c configure: Assume C90 compatible malloc() prototype 2013-04-26 16:23:42 -04:00
gmem.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gmessages-private.h gtestutils: Ensure test subprocesses don't dump core 2013-05-20 19:07:55 +01:00
gmessages.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gmessages.h Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gmirroringtable.h Bug 491554 – Update to Unicode 5.1.0 2008-04-08 02:59:05 +00:00
gnode.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
gnode.h Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
goption.c Don't show help options when help is disabled 2013-04-12 17:04:02 +02:00
goption.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gpattern.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
gpattern.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gpoll.c Include giochannel.c for G_IO_IN, etc. 2010-09-13 16:52:51 +02:00
gpoll.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gprimes.c Move gutils docs inline 2011-06-08 23:44:39 -04:00
gprimes.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gprintf.c Replace @Varargs with @... 2011-07-22 15:47:24 +02:00
gprintf.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gprintfint.h
gqsort.c glib/gqsort.c: Fix C99ism/GCCism 2012-03-20 22:29:50 -04:00
gqsort.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gquark.c gquark: clarify G_DEFINE_QUARK docs about the use of quotes 2012-08-28 13:16:23 -04:00
gquark.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gqueue.c Fix malformed GTK-Doc comment blocks: add missing colons. 2012-04-05 10:23:39 -03:00
gqueue.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
grand.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
grand.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gregex.c glib: don't quote quark names for G_DEFINE_QUARK 2012-08-28 13:16:24 -04:00
gregex.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gscanner.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gscanner.h Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gscripttable.h unicode: Update to unicode 6.2.0 beta 2012-10-03 13:58:19 +02:00
gsequence.c gsequence: Fix g_sequence_lookup() return value documentation 2013-01-26 19:12:10 +01:00
gsequence.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gshell.c Fix regression in g_shell_parse_argv() 2012-09-13 10:20:27 +02:00
gshell.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gslice.c gslice: disable by default under valgrind 2013-04-22 16:15:31 -04:00
gslice.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gslist.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
gslist.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gspawn-win32-helper.c win32: Fix warning 2013-04-09 14:02:54 +02:00
gspawn-win32.c win32: misc warning fixes 2012-11-15 14:19:06 -05:00
gspawn.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gspawn.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gstdio.c Add g_close(), use it 2013-01-29 09:46:04 -05:00
gstdio.h Add g_close(), use it 2013-01-29 09:46:04 -05:00
gstrfuncs.c Fix compilation on Android with the bionic C library 2013-04-16 13:24:26 +02:00
gstrfuncs.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gstring.c GString: Tweak documentation, add g_string_free_to_bytes() 2012-07-06 10:19:12 -04:00
gstring.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gstringchunk.c gstringchunk.c: Include gutils.h 2011-10-04 23:08:12 +08:00
gstringchunk.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gtester-report Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gtester.c gtester: Use FD_CLOEXEC when creating pipes 2013-01-23 12:23:51 -05:00
gtestutils.c Fix a typo 2013-05-31 17:24:14 -04:00
gtestutils.h Remove extra comma in gtestutils.h 2013-06-03 09:37:01 +02:00
gthread-posix.c win32: Allow POSIX threads to be used if --with-threads=posix 2013-04-09 14:10:13 +02:00
gthread-win32.c Remove most use of G_GNUC_INTERNAL 2013-01-18 13:03:28 -05:00
gthread.c Add g_get_num_processors() 2012-12-18 13:13:15 -05:00
gthread.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gthreadpool.c gthreadpool: set default max_unused_threads and max_idle_time values 2012-07-31 14:37:56 -04:00
gthreadpool.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gthreadprivate.h Remove most use of G_GNUC_INTERNAL 2013-01-18 13:03:28 -05:00
gtimer.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
gtimer.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gtimezone.c GDateTime to GTimeZone in opaque structure doc 2013-04-05 08:01:17 +02:00
gtimezone.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gtrashstack.c Move GTrashStack out of gutils.[hc] 2011-10-16 16:52:24 -04:00
gtrashstack.h Move single-include guards inside include guards 2012-12-27 23:43:14 -05:00
gtree.c Use "Returns:" instead of the invalid "@returns" for annotating return values. 2012-11-01 14:47:25 +13:00
gtree.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gtypes.h gmacros: Ensure GUINT32/64_SWAP_LE_BE macros parenthesize arguments 2013-03-15 12:51:49 -04:00
gunibreak.c Remove redundant header inclusions 2010-09-03 20:38:30 -04:00
gunibreak.h unicode: Update to unicode 6.2.0 beta 2012-10-03 13:58:19 +02:00
gunichartables.h unicode: Update to unicode 6.2.0 beta 2012-10-03 13:58:19 +02:00
gunicode.h Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gunicodeprivate.h Remove most use of G_GNUC_INTERNAL 2013-01-18 13:03:28 -05:00
gunicollate.c Bug 673047 - gunicollate is broken on OS X 2012-11-16 18:51:41 +01:00
gunicomp.h unicode: Update to unicode 6.2.0 beta 2012-10-03 13:58:19 +02:00
gunidecomp.c Add missing allow-none annotations for function parameters. 2012-03-31 20:34:28 +11:00
gunidecomp.h unicode: Update to unicode 6.2.0 beta 2012-10-03 13:58:19 +02:00
guniprop.c unicode: Update to unicode 6.2.0 beta 2012-10-03 13:58:19 +02:00
gurifuncs.c g_uri_unescape_segment: Mention (allow-none)/%NULL in documentation 2012-02-29 13:09:41 -05:00
gurifuncs.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gutf8.c unicode: Allow noncharacters 2013-03-05 17:27:53 +01:00
gutils.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gutils.h Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gvariant-core.c g_variant_get_data_as_bytes: return a sub-bytes if necessary 2013-04-20 19:24:47 -04:00
gvariant-core.h Remove most use of G_GNUC_INTERNAL 2013-01-18 13:03:28 -05:00
gvariant-internal.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gvariant-parser.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gvariant-serialiser.c GVariant: fix normal-form checking for tuples 2013-01-18 16:27:13 -05:00
gvariant-serialiser.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gvariant.c Use 'dumb quotes' rather than `really dumb quotes' 2013-05-21 11:23:22 -03:00
gvariant.h GVariant: add new g_variant_new_take_string() API 2013-04-20 18:58:24 -04:00
gvarianttype.c GVariantType: gut g_variant_type_check() 2012-08-27 16:12:30 -04:00
gvarianttype.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gvarianttypeinfo.c Add missing allow-none annotations for function parameters. 2012-03-31 20:34:28 +11:00
gvarianttypeinfo.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gversion.c Add flexible API version boundaries 2012-02-26 23:58:41 -05:00
gversion.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
gversionmacros.h gversionmacros: fix a typo 2013-04-04 13:15:00 -04:00
gwakeup.c Minor 2013-02-25 23:08:43 -05:00
gwakeup.h Remove a few more G_GNUC_INTERNAL users 2013-01-18 13:28:43 -05:00
gwin32.c Add missing allow-none annotations for function parameters. 2012-03-31 20:34:28 +11:00
gwin32.h win32: visibility fixups 2013-01-13 22:59:40 -05:00
libglib-gdb.py.in Avoid shadowing dir builtin 2010-12-03 14:41:06 -05:00
Makefile.am Rework the build system for a new tests approach 2013-05-31 23:12:15 -04:00
makefile.msc.in win32: Use timeGetTime as monotonic base 2011-11-16 09:10:46 +01:00
valgrind.h Add a copy of valgrind.h to glib/ 2013-04-22 16:15:16 -04:00
win_iconv.c win32: misc warning fixes 2012-11-15 14:19:06 -05:00