1. 28 Jan, 2012 2 commits
  2. 21 Dec, 2011 2 commits
    • Rusty Russell's avatar
      tdb2: careful on wrap. · 6f7cb26e
      Rusty Russell authored
      It's much harder to wrap a 64-bit tdb2 than a 32-bit tdb1, but we should still
      take care against bugs.
      
      Also, we should *not* cast the length to a size_t when comparing it to
      the stat result, in case size_t is 32 bit.
      6f7cb26e
    • Rusty Russell's avatar
      tdb2: be more careful on 4G files (tdb1). · a3606bbd
      Rusty Russell authored
      I came across a tdb which had wrapped to 4G + 4K, and the contents had been
      destroyed by processes which thought it only 4k long.  Fix this by checking
      on open, and making tdb_oob() check for wrap itself.
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      (Ported from tdb1 SAMBA commit b64494535dc62f4073fc6302847593ed6e6ec38b)
      a3606bbd
  3. 20 Dec, 2011 3 commits
  4. 19 Dec, 2011 1 commit
  5. 16 Dec, 2011 1 commit
  6. 15 Dec, 2011 1 commit
  7. 12 Dec, 2011 5 commits
  8. 07 Dec, 2011 5 commits
  9. 05 Dec, 2011 5 commits
  10. 04 Dec, 2011 2 commits
  11. 03 Dec, 2011 1 commit
  12. 02 Dec, 2011 8 commits
  13. 01 Dec, 2011 4 commits
    • Rusty Russell's avatar
      ccanlint: get rid of separate class of compulsory tests. · 60824f8a
      Rusty Russell authored
      It's reduced to a flag which means we stop processing the module.  We have
      to enhance our dependencies a bit, but they've always been quite good.
      
      This simplifies things quite a bit.
      60824f8a
    • Rusty Russell's avatar
      opt: add OPT_EARLY and opt_early_parse. · 50212d0d
      Rusty Russell authored
      Parsing options like --verbose and --debug can be a pain.  You need to
      have everything set up before invoking parse_args(), but that may be a
      significant amount of work, for which you may want verbose or
      debugging enabled.
      
      Thus the concept of "early" args: you can nominate arguments to be
      parse before anything else, using opt_early_parse().
      50212d0d
    • Rusty Russell's avatar
      strset, strmap: invert iterator function meaning. · bb2a75f4
      Rusty Russell authored
      Make a false return abort the iteration, not true.
      
      The old way makes sense for search functions (true == I found it), but
      other kinds of iteration are more common (brute force search is
      probably dumb).
      bb2a75f4
    • Rusty Russell's avatar
      setset: fix API to match strmap and common sense. · 7c69053b
      Rusty Russell authored
      strset_set -> strset_add
      strset_clear -> strset_del
      strset_test -> strset_get
      strset_destroy -> strset_clear
      7c69053b