Skip to content
Snippets Groups Projects
  1. Nov 11, 2019
  2. Nov 04, 2019
  3. Oct 11, 2019
  4. Oct 09, 2019
  5. Sep 17, 2019
  6. Sep 09, 2019
  7. May 13, 2019
  8. May 10, 2019
  9. May 02, 2019
  10. Mar 28, 2019
  11. Dec 07, 2018
  12. Nov 30, 2018
  13. Jul 13, 2018
  14. Jul 11, 2018
  15. May 29, 2018
  16. May 08, 2018
    • Colin Walters's avatar
      console: Drop newline on glnx_console_lock · 97b5c08d
      Colin Walters authored
      This was inherited from some other code; perhaps the idea
      was to ensure the console is in a consistent state before starting
      a progress bar, but it causes extra newlines which is distracting.
      97b5c08d
  17. May 04, 2018
  18. Feb 19, 2018
  19. Jan 10, 2018
    • Jonathan Lebon's avatar
      console: make stdout_is_tty() public · 6f1ee5db
      Jonathan Lebon authored
      Share its static var goodness with clients. This will be used in
      rpm-ostree from various places which sometimes do use a `GLnxConsole`
      and sometimes don't, so it's more convenient to make it its own
      function.
      6f1ee5db
  20. Dec 12, 2017
  21. Nov 14, 2017
    • Ray Strode's avatar
      fdio: implement glnx_basename from scratch · 03b48a39
      Ray Strode authored
      At the top of glnx-fdio.h there's this comment:
      
      /* When we include libgen.h because we need
       * dirname() we immediately undefine
       * basename() since libgen.h defines it as
       * a macro to the XDG version which is really
       * broken. */
      
      and then it does #undef basename to try to
      gain access to non-default basename implementation.
      
      The problem is that this trick doesn't work on
      some systems:
      
      ./libglnx/glnx-fdio.h: In function 'glnx_basename':
      ./libglnx/glnx-fdio.h:46:11: error: 'basename'
      undeclared (first use in this function)
         return (basename) (path);
      
      Anyway, basename() is like 3 lines of code to
      implement, so this commit just does that instead
      of relying on glibc for it.
      03b48a39
  22. Nov 02, 2017
    • Will Thompson's avatar
      errors: don't use 'static inline' on varargs functions · 016ea916
      Will Thompson authored
      This caused GCC 6.3.0 -Winline to complain:
      
          ../../../ext/libglnx/glnx-errors.h:169:1: warning: function
              ‘glnx_throw_errno_prefix’ can never be inlined because it uses
              variable argument lists [-Winline]
           glnx_throw_errno_prefix (GError **error, const char *fmt, ...)
           ^~~~~~~~~~~~~~~~~~~~~~~
          ../../../ext/libglnx/glnx-errors.h:169:1: warning: inlining failed
              in call to ‘glnx_throw_errno_prefix’: function not inlinable
              [-Winline]
      Unverified
      016ea916
Loading