Skip to content
Snippets Groups Projects
Select Git revision
  • 783bcb5b78f4cb58cbac8b12065a16364550e3c6
  • zig default
  • master
  • zig-threaded
  • openat
  • chdir
  • clear
  • compll
  • v1.18.1
  • v2.2.2
  • v1.18
  • v2.2.1
  • v2.2
  • v1.17
  • v2.1.2
  • v2.1.1
  • v2.1
  • v2.0.1
  • v2.0
  • v2.0-beta3
  • v2.0-beta2
  • v2.0-beta1
  • v1.16
  • v1.15.1
  • v1.15
  • v1.14.2
  • v1.14.1
  • v1.14
28 results

configure.ac

Blame
  • user avatar
    Yorhel authored
    A slightly different approach. In terms of syscalls it probably doesn't
    matter at all, but it's a simpler, less hacky and maybe more efficient
    way to work around PATH_MAX limitations than constantly chdir()'ing for
    each directory.  Should also fix the chdir("..") fail case in MacOS
    firmlink scenarios, though I haven't a clue if MacOS implements all
    these openat()-related calls in the first place.
    
    Downsides:
    - Less portable. Everything is in POSIX, but it's more recent than what
      we used to use.
    - Requires more open file descriptions, might hit the limit for deeply
      nested directories.
    
    Haven't done much testing yet, but there's a bunch of TODO's:
    - Make refreshing work again (not sure what's going wrong there)
    - See if we can report readdir() etc errors again?
    - Make firmlink detection work again?
    - See how portable this really is.
    - Also update file deletion code
    783bcb5b
    History
    configure.ac 2.36 KiB