summaryrefslogtreecommitdiff
path: root/lib/talloc
AgeCommit message (Collapse)AuthorFilesLines
2012-07-18talloc: don't allow a talloc_pool inside a talloc_pool.Rusty Russell2-1/+9
We explicitly call free() on a pool which falls to zero, assuming it's not inside another pool (we crash). Check on creation and explicitly document this case. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-07-18talloc: use a struct for pool headers.Rusty Russell2-106/+90
This neatens the code a bit (we should do a similar thing for all the TALLOC_CHUNK macros). Two subtler changes: (1) As a result of the struct, we actually pack object_count into the talloc header on 32-bit platforms (since the header is 40 bytes, but needs to be 16-byte aligned). (2) I avoid VALGRIND_MAKE_MEM_UNDEFINED on memmove when we resize the only entry in a pool; that's done later anyway. With -O2 on my 11.04 Ubuntu 32-bit x86 laptop, the talloc_pool speed as measured by testsuite.c actually increases 10%. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-07-05talloc: remove unused variablesBjörn Jacke1-5/+0
found by the IRIX compiler Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jul 5 23:50:54 CEST 2012 on sn-devel-104
2012-05-30build: Remove unused release scripts for tallocAndrew Bartlett6-518/+0
These now use waf dist, and the script/librelease.sh script as a wrapper. The mksyms.sh call in the source3/Makefile uses the copy in source3/script Andrew Bartlett
2012-05-07talloc: Update doxygen config.Andreas Schneider1-119/+391
Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon May 7 21:13:15 CEST 2012 on sn-devel-104
2012-05-07doc: Remove latex to doxygen conversion leftovers in talloc.Pavel Březina2-8/+8
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-05-07doc: Fixes for the talloc best practices tutorial.Andreas Schneider1-10/+10
2012-05-07doc: Fixes for the talloc debugging tutorial.Andreas Schneider1-9/+10
2012-05-07doc: Fixes for the talloc pool tutorial.Andreas Schneider1-15/+16
2012-05-07doc: Fixes for the talloc destructor tutorial.Andreas Schneider1-4/+5
2012-05-07doc: Fixes for the talloc dynamic type system tutorial.Andreas Schneider1-14/+15
2012-05-07doc: Fixes for the talloc stealing tutorial.Andreas Schneider1-9/+24
2012-05-07doc: Fixes for the talloc context tutorial.Andreas Schneider1-25/+27
2012-05-07doc: Add talloc tutorial.Pavel Březina13-1/+873
Signed-off-by: Andreas Schneider <asn@samba.org>
2012-04-24talloc: Fix copy&paste errorsVolker Lendecke1-2/+2
2012-04-24Talloc doc: talloc_strdup_append does not return duplicated stringPavel Březina1-4/+4
2012-04-24Talloc doc: when s == NULL in _append functionsPavel Březina1-0/+12
2012-04-18Talloc doc: Fix a cut&paste errorVolker Lendecke1-4/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Apr 18 11:59:49 CEST 2012 on sn-devel-104
2012-04-18Talloc doc: talloc_pool() when not enough memory in the poolPavel Březina1-0/+4
2012-04-18Talloc doc: TALLOC_FREE_FILLPavel Březina1-0/+5
2012-04-18Talloc doc: talloc_set_log_stderr()Pavel Březina1-0/+7
Documents this function.
2012-04-18Talloc doc: talloc_set_log_fn()Pavel Březina1-0/+9
Documents this function.
2012-04-18Talloc doc: talloc_set_abort_fn()Pavel Březina1-2/+33
Documents this function.
2012-04-18Talloc doc: talloc_asprintf_append_buffer()Pavel Březina1-0/+22
Explains the difference between _append and _append_buffer.
2012-04-18Talloc doc: talloc_strndup_append_buffer()Pavel Březina1-2/+22
Explains the difference between _append and _append_buffer.
2012-04-18Talloc doc: talloc_strndup_append()Pavel Březina1-2/+12
The destination string is reallocated instead of duplicating the result.
2012-04-18Talloc doc: talloc_strdup_append_buffer()Pavel Březina1-1/+22
Explains the difference between _append and _append_buffer.
2012-04-18Talloc doc: talloc_strdup_append()Pavel Březina1-4/+18
The destination string is reallocated instead of duplicating the result.
2012-01-10talloc/testsuite: fix compiler warningsStefan Metzmacher1-1/+2
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 10 13:31:33 CET 2012 on sn-devel-104
2012-01-02talloc: Slightly simplify talloc_unlinkVolker Lendecke1-8/+7
Nested if's are hard to understand to me. Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 2 19:07:23 CET 2012 on sn-devel-104
2012-01-02talloc: Fix a typoVolker Lendecke1-3/+3
2011-11-13waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij1-0/+2
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
2011-11-13talloc: Only check for pkg-config file when checking for system talloc.Jelmer Vernooij1-2/+2
2011-11-13pytalloc-util: Don't mark as python extension, use pyembed instead.Jelmer Vernooij1-1/+1
2011-10-26talloc: fix a comment typoMichael Adam1-1/+1
2011-10-22talloc: simplifiy the logic to build talloc_testsuite in the standalone buildStefan Metzmacher1-8/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 22 13:15:52 CEST 2011 on sn-devel-104
2011-10-22talloc/testsuite: remove #if _SAMBA_BUILD_==3Stefan Metzmacher1-9/+0
We don't include "includes.h" anymore... metze
2011-09-15talloc: change version to 2.0.7Stefan Metzmacher3-1/+69
The version change is needed because the ABI file of the pytalloc code was fixed. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 22:32:59 CEST 2011 on sn-devel-104
2011-09-07talloc: Remove an unused variableVolker Lendecke1-1/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Sep 7 16:47:26 CEST 2011 on sn-devel-104
2011-08-21talloc: Fix talloc-compat pc files/headers.Jelmer Vernooij1-1/+3
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Aug 21 04:53:07 CEST 2011 on sn-devel-104
2011-08-21wafsamba: Only install .pc files if libraries are public.Jelmer Vernooij1-6/+3
2011-08-10pytalloc: Regenerate ABI file.Jelmer Vernooij1-0/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Aug 10 16:51:11 CEST 2011 on sn-devel-104
2011-08-10pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij5-51/+57
2011-08-09talloc: prepare for 2.0.6 releaseAndrew Tridgell2-1/+63
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 04:03:49 CEST 2011 on sn-devel-104
2011-08-09talloc: ensure the sibling linked list remains valid during a freeAndrew Tridgell1-15/+3
This ensures that the sibling list of a pointer doesn't become invalid during a free operation. It is an alternative fix to the fix in 6f51a1f45bf4de062cce7a562477e8140630a53d, and avoids the problem of trying to calculate the parent pointer early This should fix the subtle spoolss talloc bug that Simo found Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 01:53:17 CEST 2011 on sn-devel-104
2011-08-04talloc: check block count aftter references testAndrew Tridgell1-0/+1
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-07-29talloc: added test suite for talloc_free_children()Andrew Tridgell1-0/+44
this tests the fix from Simo Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jul 29 11:30:13 CEST 2011 on sn-devel-104
2011-07-29talloc: preserve context name on talloc_free_children()Simo Sorce1-0/+23
Otherwise tc->name will end up pointing to garbage when it is not set to a const but rather to a string allocate as child of the context itself. Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-07-26talloc: Support PYTHON environment variable.Jelmer Vernooij1-0/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jul 26 22:21:30 CEST 2011 on sn-devel-104
2011-05-17talloc: splitout _talloc_free_children_internal()Stefan Metzmacher1-50/+27
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 10:49:13 CEST 2011 on sn-devel-104