1. 20 Nov, 2015 1 commit
  2. 14 Nov, 2015 3 commits
    • Andrew Price's avatar
      More SEEK_* usage · 07679188
      Andrew Price authored
      That coccinelle script works better without the semicolons (duh):
      
      @rule0@
      expression A,B;
      @@
      - lseek(A, B, 0)
      + lseek(A, B, SEEK_SET)
      @rule1@
      expression A,B;
      @@
      - lseek(A, B, 1)
      + lseek(A, B, SEEK_CUR)
      @rule2@
      expression A,B;
      @@
      - lseek(A, B, 2)
      + lseek(A, B, SEEK_END)
      07679188
    • Andrew Price's avatar
      Use SEEK_* in lseek(2) calls · 2b6a2c76
      Andrew Price authored
      Change scripted with coccinelle:
      
      @rule0@
      expression A,B;
      @@
      - lseek(A, B, 0);
      + lseek(A, B, SEEK_SET);
      @rule1@
      expression A,B;
      @@
      - lseek(A, B, 1);
      + lseek(A, B, SEEK_CUR);
      @rule2@
      expression A,B;
      @@
      - lseek(A, B, 2);
      + lseek(A, B, SEEK_END);
      2b6a2c76
    • Andrew Price's avatar
      Fix memory leak in add_folder · 152e0a0c
      Andrew Price authored
      152e0a0c
  3. 11 Nov, 2015 1 commit
  4. 09 Nov, 2015 5 commits
  5. 08 Nov, 2015 1 commit
  6. 07 Nov, 2015 12 commits
  7. 06 Nov, 2015 3 commits
  8. 31 Oct, 2015 3 commits
    • Andrew Price's avatar
      Get rid of makepath, buildpath and PATHSIZE · 3f71da23
      Andrew Price authored
      Huzzah!
      3f71da23
    • Andrew Price's avatar
      Fix !folder name command · 0ac74891
      Andrew Price authored
      !folder name was not working because strlen("name") was expected to be
      5. Expect it to be 4 instead.
      0ac74891
    • Andrew Price's avatar
      Folder file overhaul · 6bcd1e4b
      Andrew Price authored
      This moves the folder index, text, moderation and tmp files into
      directories corresponding to the file name suffixes currently in use.
      
      Old                     New
      ---                     ---
      STATEDIR/foo.i          STATEDIR/index/foo
      STATEDIR/foo.i.m        STATEDIR/index/mod/foo
      STATEDIR/foo.i.t        STATEDIR/index/new/foo
      STATEDIR/foo.t          STATEDIR/text/foo
      STATEDIR/foo.t.m        STATEDIR/text/mod/foo
      STATEDIR/foo.t.t        STATEDIR/text/new/foo
      
      This has the following advantages:
      1. No more ugly folder path building all over the place
      2. STATEDIR and PATHSIZE used in far fewer places
      3. No longer assumes paths to folder files will fit in 256 chars
      4. A tidier STATEDIR
      5. Better separation of concerns (more folder stuff hidden in folders.c)
      6. Should make it easier to move the folder stuff into the server
      7. Improved error checking/reporting
      
      This makes use of the *at family of syscalls so, instead of building
      paths, we now use file descriptors.
      6bcd1e4b
  9. 29 Oct, 2015 2 commits
  10. 24 Oct, 2015 1 commit
  11. 23 Oct, 2015 8 commits