1. 02 May, 2013 1 commit
  2. 29 Apr, 2013 5 commits
  3. 27 Apr, 2013 1 commit
  4. 24 Apr, 2013 1 commit
  5. 23 Apr, 2013 1 commit
  6. 22 Apr, 2013 2 commits
  7. 09 Apr, 2013 1 commit
  8. 05 Apr, 2013 1 commit
  9. 20 Mar, 2013 2 commits
  10. 16 Oct, 2012 6 commits
  11. 24 Jul, 2012 1 commit
  12. 12 Jul, 2012 2 commits
  13. 08 Feb, 2012 3 commits
    • Julius Plenz's avatar
      Update README · 404fa61a
      Julius Plenz authored
      404fa61a
    • Julius Plenz's avatar
      little code cleanup · 477e69c8
      Julius Plenz authored
      477e69c8
    • Julius Plenz's avatar
      handle stdout correctly if it's a file · fd9969ec
      Julius Plenz authored
      When you invoke "tar cfv <tarball> <files>", then tar will close all
      active file descriptors it has, forks, then opens the target tarball
      as fd 1 (stdout). Then, it'll exec "gzip -", which *inherits* a stdout
      which is a file.
      
      Now we duplicate this stdout if it's a regular file so that we can
      advise it later. (The original will be closed via the _exit() routine,
      probably, which uses direct syscall that we cannot intercept.)
      fd9969ec
  14. 07 Feb, 2012 1 commit
    • Julius Plenz's avatar
      Intercept dup2() · e033127e
      Julius Plenz authored
      Thus, also shell redirection -- which makes heavy use of dup2() --  is handled
      correctly:
      
          $ cachestats /tmp/foo
          open: No such file or directory
          $ nocache sh -c 'echo foo > /tmp/foo'
          $ cachestats /tmp/foo
          pages in cache: 0/1 (0.0%)  [filesize=0.0K, pagesize=4K]
      e033127e
  15. 06 Feb, 2012 12 commits