1. 10 Jan, 2019 1 commit
  2. 19 Dec, 2018 1 commit
  3. 17 Dec, 2018 7 commits
  4. 29 Oct, 2018 1 commit
    • Ting-Wei Lan's avatar
      gutils: Check whether getauxval function exists · 295964a3
      Ting-Wei Lan authored
      FreeBSD 12 adds a new header, sys/auxv.h, to declare a function, elf_aux_info,
      for public use, which was considered an internal function in previous releases.
      This new function provides similar functionality with glibc getauxval, which is
      also declared in the same header, but their interfaces are not compatible. Since
      the only usage of sys/auxv.h is in g_check_setuid and FreeBSD already has
      issetugid to provide the required functionality, we fixes the compilation error
      by adding a check for getauxval function to prevent g_check_setuid from calling
      getauxval when sys/auxv.h is found but getauxval is not available.
      
      https://reviews.freebsd.org/D12743
      https://reviews.freebsd.org/rS324815
      295964a3
  5. 31 May, 2018 2 commits
  6. 26 Apr, 2018 1 commit
  7. 06 Nov, 2017 1 commit
  8. 02 Nov, 2017 1 commit
  9. 01 Nov, 2017 1 commit
  10. 27 Oct, 2017 1 commit
  11. 25 Oct, 2017 2 commits
  12. 14 Aug, 2017 1 commit
  13. 03 Aug, 2017 1 commit
    • Philip Withnall's avatar
      Consistently save errno immediately after the operation setting it · 5cddde1f
      Philip Withnall authored
      Prevent the situation where errno is set by function A, then function B
      is called (which is typically _(), but could be anything else) and it
      overwrites errno, then errno is checked by the caller.
      
      errno is a horrific API, and we need to be careful to save its value as
      soon as a function call (which might set it) returns. i.e. Follow the
      pattern:
        int errsv, ret;
        ret = some_call_which_might_set_errno ();
        errsv = errno;
      
        if (ret < 0)
          puts (strerror (errsv));
      
      This patch implements that pattern throughout GLib. There might be a few
      places in the test code which still use errno directly. They should be
      ported as necessary. It doesn’t modify all the call sites like this:
        if (some_call_which_might_set_errno () && errno == ESOMETHING)
      since the refactoring involved is probably more harmful than beneficial
      there. It does, however, refactor other call sites regardless of whether
      they were originally buggy.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=785577
      5cddde1f
  14. 07 Jun, 2017 1 commit
  15. 24 May, 2017 1 commit
    • Sébastien Wilmet's avatar
      glib/: LGPLv2+ -> LGPLv2.1+ · f9faac76
      Sébastien Wilmet authored
      All glib/*.{c,h} files have been processed, as well as gtester-report.
      
      12 of those files are not licensed under LGPL:
      
      	gbsearcharray.h
      	gconstructor.h
      	glibintl.h
      	gmirroringtable.h
      	gscripttable.h
      	gtranslit-data.h
      	gunibreak.h
      	gunichartables.h
      	gunicomp.h
      	gunidecomp.h
      	valgrind.h
      	win_iconv.c
      
      Some of them are generated files, some are licensed under a BSD-style
      license and win_iconv.c is in the public domain.
      
      Sub-directories inside glib/:
      
      	deprecated/: processed in a previous commit
      	glib-mirroring-tab/: already LGPLv2.1+
      	gnulib/: not modified, the code is copied from gnulib
      	libcharset/: a copy
      	pcre/: a copy
      	tests/: processed in a previous commit
      
      https://bugzilla.gnome.org/show_bug.cgi?id=776504
      f9faac76
  16. 04 Jun, 2016 1 commit
  17. 27 Apr, 2016 2 commits
  18. 09 Mar, 2016 1 commit
    • Allison Karlitskaya's avatar
      g_get_user_runtime_dir(): ensure directory exists · 7c6141a5
      Allison Karlitskaya authored
      If the XDG_RUNTIME_DIR environment variable is set, we are being told by
      the OS that this directory exists and is appropriately configured
      already.  In the fallback case of ~/.cache/, however, the directory may
      not yet exist.
      
      Rework the logic of this function a little so that we only check for the
      environment variable once.  If it is not set, we will fall back to the
      cache directory, and mkdir() it to make sure that it exists.
      
      Meanwhile, remove a statement from the reference documentation that
      promises a warning in this case (which has never been true) and replace
      it with a statement that applications can rely on the directory
      existing.
      
      This change prevents each user of this API from having to check for the
      directory for themselves; an example of that can be seen in bug 763274.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=763344
      7c6141a5
  19. 16 Dec, 2015 1 commit
  20. 16 Nov, 2015 1 commit
    • Allison Karlitskaya's avatar
      gutils: clean up bit funcs inlining mess · 9834f792
      Allison Karlitskaya authored
      gutils.h and gutils.c define three utility functions as inlines that are
      also exported via the ABI.  This is done via complicated G_INLINE_FUNC
      and G_IMPLEMENT_INLINES logic.
      
      In order to be able to remove this mess, we create a another convoluted
      but slightly cleaner approach: write straight-up inline versions of the
      functions named _impl() in the header.  Define macros with the "public"
      function names that call these inlines.  From the .c file, export the
      ABI versions of these functions, implemented using the _impl() version.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=757374
      9834f792
  21. 07 Nov, 2015 1 commit
    • Philip Withnall's avatar
      glib: Add missing (nullable) and (optional) annotations · 25a7c817
      Philip Withnall authored
      Add various (nullable) and (optional) annotations which were missing
      from a variety of functions. Also port a couple of existing (allow-none)
      annotations in the same files to use (nullable) and (optional) as
      appropriate instead.
      
      Secondly, add various (not nullable) annotations as needed by the new
      default in gobject-introspection of marking gpointers as (nullable). See
      https://bugzilla.gnome.org/show_bug.cgi?id=729660.
      
      This includes adding some stub documentation comments for the
      assertion macro error functions, which weren’t previously documented.
      The new comments are purely to allow for annotations, and hence are
      marked as (skip) to prevent the symbols appearing in the GIR file.
      
      https://bugzilla.gnome.org/show_bug.cgi?id=719966
      25a7c817
  22. 25 Aug, 2015 1 commit
  23. 11 Sep, 2014 1 commit
  24. 02 Aug, 2014 1 commit
  25. 28 Jun, 2014 1 commit
  26. 20 Feb, 2014 1 commit
  27. 06 Feb, 2014 4 commits
  28. 01 Feb, 2014 1 commit