Skip to content
Snippets Groups Projects
  1. Dec 07, 2018
  2. Oct 24, 2017
  3. Oct 16, 2017
  4. Sep 26, 2017
  5. Jul 20, 2017
    • Colin Walters's avatar
      dirfd: Add glnx_ensure_dir() · 1c0bfd24
      Colin Walters authored
      Another one where we have a lot of inlines in ostree at least. Not the same as
      `glnx_shutil_mkdir_p_at()` since in these cases we don't want automatic
      intermediate dirs, and it's cheaper to just call `mkdirat()` and handle `EEXIST`
      rather than do a `stat()` first.
      1c0bfd24
  6. May 31, 2017
    • Colin Walters's avatar
      dirfd: Have dfd iter _take_fd() take a pointer and do a steal · f5ba01cf
      Colin Walters authored
      This avoids callers having to use `glnx_steal_fd()` on their own; in general, I
      think we should implement move semantics like this at the callee level.
      
      Another reason to do this is there's a subtle problem with doing:
      
      ```
      somefunction (steal_value (&v), ..., error);
      ```
      
      in that if `somefunction` throws, it may not have taken ownership of the value.
      At least `glnx_dirfd_iterator_init_take_fd()` didn't.
      f5ba01cf
  7. Apr 25, 2017
  8. Apr 21, 2017
  9. Jul 29, 2016
  10. Apr 08, 2015
  11. Apr 07, 2015
    • Colin Walters's avatar
      shutil: Add mkdir -p API · 19885b8a
      Colin Walters authored
      I looked at the systemd code but it didn't have a variant of
      mkdir_parents that used `*at()`.  This is a fresh implementation, with
      the risk that entails.
      
      However I am changing libgsystem to call it now for testing, and
      libgsystem APIs are covered by ostree usage at least.
      19885b8a
  12. Mar 17, 2015
  13. Feb 15, 2015
Loading