Skip to content
Snippets Groups Projects
  1. Nov 04, 2022
  2. Oct 13, 2022
  3. Oct 12, 2022
  4. Jul 26, 2022
  5. Jul 24, 2022
  6. Jul 22, 2022
  7. Jul 19, 2022
  8. Jul 18, 2022
    • Clemens Wasser's avatar
      SystemTools: Better GetCasePathName caching · 1c156fd1
      Clemens Wasser authored and Brad King's avatar Brad King committed
      The function `GetActualCaseForPathCached` cached the whole input and
      output of `GetCasePathName`. By caching the calls to `FindFirstFileW`
      instead, many redundant `FindFirstFileW` calls can be avoided.
      1c156fd1
  9. Jun 21, 2022
  10. Jun 17, 2022
  11. Jun 09, 2022
  12. Jun 08, 2022
    • Saleem Abdulrasool's avatar
      SystemTools: add a clonefile optimization on macOS · 0969597d
      Saleem Abdulrasool authored and Brad King's avatar Brad King committed
      Implement the copy file optimization on Darwin for `copy_file` and
      `copy_file_if_different`.  Use the `copyfile` API on macOS 10.5 or
      newer to copy the file using APFS clone semantics.  This is a best
      effort operation, but will fallback to copying without the cloning
      if necessary.  The operation has been available since 10.5, making
      it old enough to assume present as the OS has been EOLed for years
      now.
      0969597d
  13. Jun 03, 2022
  14. Jun 02, 2022
  15. Mar 02, 2022
  16. Feb 18, 2022
  17. Feb 17, 2022
  18. Jan 31, 2022
  19. Jan 29, 2022
  20. Jan 28, 2022
  21. Jan 27, 2022
    • Christopher Chavez's avatar
      ProcessUNIX.c: fix select(), FD_SETSIZE on macOS · 5a33629f
      Christopher Chavez authored
      On macOS (reportedly for 10.5 and later), if _DARWIN_UNLIMITED_SELECT is
      not defined, then the select() call in kwsysProcessWaitForPipe() fails
      with EINVAL when (max + 1) > 1024. And, by default, FD_SETSIZE is 1024;
      passing file descriptors not less than FD_SETSIZE to FD_CLR(), FD_SET(),
      and FD_ISSET() causes out-of-bounds accesses, at least for an fd_set
      allocated on the heap (as is the case for cp->PipeSet, allocated by
      kwsysProcess_New(); one observed effect of this is corruption of the
      "Invalid argument" error message copied from strerror(errno) into
      cp->ErrorMessage, since cp->ErrorMessage is located shortly after
      cp->PipeSet). Defining _DARWIN_UNLIMITED_SELECT and defining FD_SETSIZE
      to OPEN_MAX (10240) avoids these issues.
      5a33629f
  22. Jan 22, 2022
  23. Jan 21, 2022
    • Clemens Wasser's avatar
      Glob: Optimize directory/symlink checks on Windows · d4c5ed92
      Clemens Wasser authored and Brad King's avatar Brad King committed
      Use data saved by `Directory` traversal to avoid repeating work.
      d4c5ed92
    • Brad King's avatar
      Directory: Replace FileData with methods accepting file index · 4b552447
      Brad King authored
      The internal calls to `SystemTools::FileIs{Directory,Symlink}` added by
      commit 7573b0fd (Directory: Add Is{Directory,Symlink} to FileData,
      2022-01-11) pass only the file name, which will be interpreted relative
      to the current working directory rather than the `Directory` path.
      We need to use the absolute path instead.  Rather than trying to
      make this available in the `FileData` structure, provide access to
      the information through methods accepting the file index.
      4b552447
  24. Jan 19, 2022
  25. Jan 18, 2022
Loading