glib/glib
Simon McVittie e231132fc3 gstdio: Document errno behaviour of g_clear_fd
g_clear_fd has the same interaction with errno as g_close or most libc
functions: on success it has an unspecified effect on errno, and on
failure (other than programming error) it sets errno to indicate the
reason for failure.

Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-11-02 21:26:34 +00:00
..
deprecated Add SPDX license headers for LGPL-2.1-or-later to various files 2022-06-01 12:44:23 +01:00
dirent dirent: Add trailing nul delimiter to FILENAME_MAX 2021-04-19 19:23:10 +01:00
glib-mirroring-tab glib: Port glib-mirroring-tab subdirectory to Meson 2019-01-15 15:11:43 +00:00
gnulib glib/gnulib/meson: Disable some warnings on clang windows builds 2022-10-31 12:00:53 +01:00
libcharset Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
tests Revert "gstdio: Temporarily disable g_close() warning on macOS" 2022-11-02 09:40:28 -04:00
docs.c docs: Mention platform-specific predefined macros 2022-11-01 10:40:37 +00:00
galloca.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
garcbox.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
garray.c Merge branch 'array-copy-null-terminated' into 'main' 2022-06-07 13:47:42 +00:00
garray.h array: add support for %NULL termination in GPtrArray 2022-05-27 15:27:19 +01:00
gasyncqueue.c doc: Correctly annotate GAsyncQueue methods 2022-10-13 23:56:18 +01:00
gasyncqueue.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gasyncqueueprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gatomic.c Merge branch 'atomic-exchange-pre-value' into 'main' 2022-06-23 13:19:05 +00:00
gatomic.h gatomic: Cast the oldval pointer type to the atomic value type 2022-10-31 12:00:53 +01:00
gbacktrace.c gio, glib: Use G_OS_DARWIN for code that is for such environments 2022-10-20 03:37:21 +02:00
gbacktrace.h gio, glib: Use G_OS_DARWIN for code that is for such environments 2022-10-20 03:37:21 +02:00
gbase64.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gbase64.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gbitlock.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gbitlock.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gbookmarkfile.c gbookmarkfile: Add copy function 2022-10-14 16:39:20 +01:00
gbookmarkfile.h gbookmarkfile: Add copy function 2022-10-14 16:39:20 +01:00
gbsearcharray.h build: Remove the --disable-mem-pools build option and the DISABLE_MEM_POOLS macro 2018-06-02 09:45:55 +02:00
gbytes.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gbytes.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gcharset.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gcharset.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gcharsetprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gchecksum.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gchecksum.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gconstructor.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gconvert.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gconvert.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gconvertprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gdataset.c dataset: Document some logic 2022-06-27 17:53:25 -04:00
gdataset.h Add g_datalist_id_remove_multiple 2022-05-23 09:19:45 -04:00
gdatasetprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gdate.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gdate.h gdate: Fix a typo in a code comment 2022-06-29 16:05:09 +02:00
gdatetime.c gdatetime: add NULL guard in g_date_time_new_now() 2022-10-09 19:39:58 -04:00
gdatetime.h Add SPDX license headers for LGPL-2.1-or-later to various files 2022-06-01 12:44:23 +01:00
gdir.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gdir.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gen-unicode-tables.pl unicode: Avoid adding trailing spaces to tables definitions 2022-09-15 03:43:04 +02:00
genviron.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
genviron.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gerror.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gerror.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gfileutils.c gfileutils: Use correct type comparison for length 2022-10-31 12:02:57 +01:00
gfileutils.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
ggettext.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
ggettext.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
ghash.c ghash: Correctly retrieve low 32 bits of 64-bit values 2022-10-24 10:46:57 +01:00
ghash.h g_str_equal: Provide macro for optimization 2022-10-11 10:55:56 -04:00
ghmac.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
ghmac.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
ghook.c Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
ghook.h Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
ghostutils.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
ghostutils.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gi18n-lib.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gi18n.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
giochannel.c giochannel: Add G_IO_FLAG_NONE 2022-06-23 10:47:22 +01:00
giochannel.h giochannel: Add G_IO_FLAG_NONE 2022-06-23 10:47:22 +01:00
giounix.c giochannel: Add G_IO_FLAG_NONE 2022-06-23 10:47:22 +01:00
giowin32.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gjournal-private.c gmessages: Factor out _g_fd_is_journal into its own translation unit 2022-07-25 01:00:54 +02:00
gjournal-private.h gmessages: Factor out _g_fd_is_journal into its own translation unit 2022-07-25 01:00:54 +02:00
gkeyfile.c gkeyfile: Remove some unreachable code 2022-07-05 10:41:49 +01:00
gkeyfile.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib_gdb.py py: Various flake8 cleanups 2020-11-17 15:50:07 +00:00
glib_probes.d dtrace: Add missing const attributes to types in glib_probes.d 2018-08-25 23:59:45 +01:00
glib_trace.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib-autocleanups.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib-init.c glib-init: Add more static assertions for gintptr, guintptr 2022-10-27 19:54:26 +01:00
glib-init.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib-object.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib-private.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib-private.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib-typeof.h glib/glib-typeof: Ensure glib_typeof is defined in MSCV C++ 2022-09-15 01:18:42 +02:00
glib-unix.c Revert "Handling collision between standard i/o file descriptors and newly created ones" 2022-11-02 09:06:34 -04:00
glib-unix.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glib.rc.in meson: build Windows resource files 2018-01-04 22:19:30 +01:00
glib.stp.in minor typos in the documentation (a/an) 2019-08-24 19:14:05 +00:00
glibconfig.h.in Merge branch 'nirbheek/gmodule-suffix-deprecation' into 'main' 2022-10-27 16:27:42 +00:00
glibintl.h various: add GLIB_AVAILABLE_IN_ALL everywhere else 2013-01-13 13:11:57 -05:00
glist.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
glist.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gmacros.h glib/gmacros: Always define NULL as nullptr in C++11 and newer 2022-10-31 01:00:06 +01:00
gmain-internal.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gmain.c gmain: close pidfd when finalizing GChildWatchSource 2022-08-02 12:35:56 -07:00
gmain.h gmain: Minor documentation updates to idle-once and timeout-once funcs 2022-05-27 12:58:10 +01:00
gmappedfile.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gmappedfile.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gmarkup.c Replace all uses of G_VA_COPY with Standard C va_copy 2022-10-26 18:07:55 +01:00
gmarkup.h Rename G_MARKUP_PARSE_FLAGS_NONE 2022-07-25 22:30:22 +01:00
gmem.c mem: Document OOM behavior for allocations 2022-08-19 08:29:36 -04:00
gmem.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gmessages.c Merge branch 'gmessages-handle-unused-write-results' into 'main' 2022-10-19 09:23:52 +00:00
gmessages.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gmirroringtable.h Update to Unicode 14 2021-09-21 09:41:29 +00:00
gnode.c Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
gnode.h Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
goption.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
goption.h goption: Slightly improve the documentation for G_OPTION_FLAG_REVERSE 2022-07-13 15:58:24 +01:00
gosxutils.m gosxutils: Add missing prototype 2021-11-18 14:32:09 +00:00
gpattern.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gpattern.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gpoll.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gpoll.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gprimes.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gprimes.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gprintf.c Replace all uses of G_VA_COPY with Standard C va_copy 2022-10-26 18:07:55 +01:00
gprintf.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gprintfint.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gqsort.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gqsort.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gquark.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gquark.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gqueue.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gqueue.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grand.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grand.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grcbox.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grcbox.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grcboxprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grefcount.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grefcount.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grefstring.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
grefstring.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gregex.c gregex: Remove an unreachable return statement 2022-10-18 15:05:30 +01:00
gregex.h gregex: use G_REGEX_OPTIMIZE flag to enable JIT compilation 2022-07-20 20:48:17 +00:00
gscanner.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gscanner.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gscripttable.h unicode: Update data to Unicode 15 2022-09-15 03:43:04 +02:00
gsequence.c Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
gsequence.h Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
gshell.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gshell.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gslice.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gslice.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gslist.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gslist.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gspawn-private.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gspawn-win32-helper.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gspawn-win32.c gspawn-win32: Provide thread-safe wrappers for _wspawn*e functions 2022-08-02 18:47:05 +02:00
gspawn.c gspawn: Provide less brute force fdwalk implementation on macOS 2022-11-02 11:31:08 -04:00
gspawn.h Merge branch 'spawn-outparams' into 'main' 2022-05-18 14:40:23 +00:00
gstdio-private.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gstdio.c gstdio: Document errno behaviour of g_clear_fd 2022-11-02 21:26:34 +00:00
gstdio.h gstdio: Preserve errno when calling g_clear_fd() from g_autofd 2022-11-02 21:26:34 +00:00
gstdioprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gstrfuncs.c gstrfuncs: Fix a compiler warning in g_strerror() 2022-10-19 14:53:45 +01:00
gstrfuncs.h Optimize g_str_has_*() functions to detect const arguments at compile-time 2022-10-17 14:40:31 +02:00
gstring.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gstring.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gstringchunk.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gstringchunk.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gstrvbuilder.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gstrvbuilder.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtester-report.in tree: Fix various typos and outdated terminology 2020-06-12 15:01:08 +01:00
gtester.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtestutils.c gtestutils: Add G_TEST_SUBPROCESS_DEFAULT, G_TEST_TRAP_DEFAULT 2022-06-23 10:47:13 +01:00
gtestutils.h gtestutils: Add G_TEST_SUBPROCESS_DEFAULT, G_TEST_TRAP_DEFAULT 2022-06-23 10:47:13 +01:00
gthread-posix.c gthread-posix: Do not do unguarded and non-atomic assignment of an atomic 2022-07-12 14:30:20 +02:00
gthread-win32.c gthread-win32: Fix conversion error from pointer to integer 2022-09-20 20:28:53 +05:30
gthread.c gthread: Use atomic pointer exchange to check value set on g_init_leave 2022-06-23 20:01:12 +02:00
gthread.h Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
gthreadpool.c gthreadpool: Update unused_threads while we still own the pool lock 2022-07-11 19:56:26 +02:00
gthreadpool.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gthreadprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtimer.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtimer.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtimezone.c gtimezone: Fix symlink checks on relative link targets 2022-10-24 12:35:29 +01:00
gtimezone.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtrace-private.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtrace.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtranslit-data.h Add locale-sensitive ASCII transliteration API 2014-02-20 18:27:24 -05:00
gtranslit.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtrashstack.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtrashstack.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gtree.c Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
gtree.h Rename user data parameters to user_data 2022-05-22 01:06:37 +00:00
gtypes.h Fix include order of glib-visibility.h 2022-10-17 15:17:32 +02:00
gunibreak.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gunibreak.h unicode: Avoid adding trailing spaces to tables definitions 2022-09-15 03:43:04 +02:00
gunichartables.h unicode: Avoid adding trailing spaces to tables definitions 2022-09-15 03:43:04 +02:00
gunicode.h unicode: Update data to Unicode 15 2022-09-15 03:43:04 +02:00
gunicodeprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gunicollate.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gunicomp.h unicode: Avoid adding trailing spaces to tables definitions 2022-09-15 03:43:04 +02:00
gunidecomp.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gunidecomp.h unicode: Avoid adding trailing spaces to tables definitions 2022-09-15 03:43:04 +02:00
guniprop.c Fix g_unichar_iswide for unassigned codepoints 2022-09-15 03:43:04 +02:00
guri.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
guri.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
guriprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gutf8.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gutils.c gio, glib: Use G_OS_DARWIN for code that is for such environments 2022-10-20 03:37:21 +02:00
gutils.h glib: Always implement G_VA_COPY as va_copy() 2022-10-26 18:07:55 +01:00
gutilsprivate.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
guuid.c guuid: fix shift operation to parse hex string in uuid_parse_string() 2021-05-03 15:09:31 +02:00
guuid.h guuid: Add UUID helper functions to GLib 2017-02-06 14:40:38 +01:00
gvalgrind.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvariant-core.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvariant-core.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvariant-internal.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvariant-parser.c gvariant-parser: Reject deeply-nested typedecls in text form variants 2022-10-18 14:52:32 +01:00
gvariant-serialiser.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvariant-serialiser.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvariant.c gvariant: Document the return transfer of g_variant_byteswap() 2022-10-27 12:14:17 +01:00
gvariant.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvarianttype.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvarianttype.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvarianttypeinfo.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gvarianttypeinfo.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gversion.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gversion.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gversionmacros.h.in Fix symbol visibility macros on Windows 2022-10-13 20:53:56 -04:00
gwakeup.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gwakeup.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gwin32-private.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gwin32.c glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
gwin32.h glib: Add SPDX license headers automatically 2022-05-18 09:19:02 +01:00
libglib-gdb.py.in Rename gdb macros with _gdb suffix to avoid ns clashes 2016-05-23 10:52:10 -04:00
meson.build meson: Expose library build type as global variables 2022-10-31 14:08:31 +01:00
update-gtranslit.py py: Various flake8 cleanups 2020-11-17 15:50:07 +00:00
valgrind.h gio, glib: Use G_OS_DARWIN for code that is for such environments 2022-10-20 03:37:21 +02:00
win_iconv.c tools: Fix handling of empty argv in various minor GLib tools 2022-02-11 14:45:42 +00:00