1. 28 May, 2012 3 commits
  2. 17 May, 2012 2 commits
    • Rusty Russell's avatar
      config.h: don't include in git repository. · a77cc282
      Rusty Russell authored
      We create and upload an example for the web anyway, if people really need it.
      a77cc282
    • Jeremy Kerr's avatar
      tools: Add create-ccan-tree utility · ebcbbcfa
      Jeremy Kerr authored
      Add a script to create a ccan source tree for inclusion into projects'
      distributed code.
      
      create-ccan-tree takes a list of ccan modules and copies them, plus any
      dependent modules, into a target directory. Enough build infrastructure
      is added to build libccan.a from the ccan modules.
      
      Typical usage for my project that uses talloc and read-write-all:
      
        lib/ccan.git/tools/create-ccan-tree --exclude-tests \
      		lib/ccan/ talloc read-write-all
      
      - this uses a git submodule in $PWDlib/ccan.git to create a source tree
      in $PWD/lib/ccan, containing code for talloc and read-write-all.
      Signed-off-by: default avatarJeremy Kerr <jeremy.kerr@canonical.com>
      ebcbbcfa
  3. 29 Mar, 2012 3 commits
  4. 27 Mar, 2012 13 commits
  5. 21 Mar, 2012 1 commit
    • Rusty Russell's avatar
      failtest: compile fix for OpenBSD · e18e80fe
      Rusty Russell authored
      OpenBSD doesn't idempotent-wrap sys/mman.h, so when we #define mmap to
      an alternative, it fails to compile when sys/mman.h is included again.
      
      Workaround is not to #define mmap to add arguments on Open BSD.
      e18e80fe
  6. 19 Mar, 2012 6 commits
  7. 09 Mar, 2012 2 commits
  8. 08 Mar, 2012 1 commit
    • Rusty Russell's avatar
      failtest: don't assume FD_SETSIZE is maximum runtime fd. · a85a809b
      Rusty Russell authored
      This breaks when rlimit is less.  Unfortunately, valgrind (32 bit x86,
      3.7.0.SVN, Ubuntu) fails to set the file limit properly on the test:
      reducing it to the obvious getrlimit/setrlimit/getrlimit works fine,
      so leaving diagnostics for another day.
      a85a809b
  9. 26 Feb, 2012 3 commits
  10. 14 Feb, 2012 2 commits
    • Rusty Russell's avatar
      tdb: delete from CCAN. · 7581be1b
      Rusty Russell authored
      This was an early experiment in putting code into CCAN, but TDB is a public
      library distributed as part of the Samba sources; there is no reason to
      publish it here (especially now the unit tests are also in Samba).
      7581be1b
    • Rusty Russell's avatar
      configurator: define HAVE_CCAN. · 98b8ada2
      Rusty Russell authored
      An interesting case came up with the tdb2 code in SAMBA recently.  It's a
      public library, and it doesn't want to be dependent on CCAN, but the header
      uses cast and typesafe_cb for extra type safety.
      
      A good solution to this is to put dummy versions under !HAVE_CCAN.  Of course,
      any CCAN config.h should define HAVE_CCAN.
      98b8ada2
  11. 28 Jan, 2012 3 commits
  12. 21 Dec, 2011 1 commit
    • 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