summaryrefslogtreecommitdiffstats
path: root/lib/talloc
Commit message (Collapse)AuthorAgeFilesLines
...
* talloc: don't allow a talloc_pool inside a talloc_pool.Rusty Russell2012-07-182-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>
* talloc: use a struct for pool headers.Rusty Russell2012-07-182-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>
* talloc: remove unused variablesBjörn Jacke2012-07-051-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
* build: Remove unused release scripts for tallocAndrew Bartlett2012-05-306-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
* talloc: Update doxygen config.Andreas Schneider2012-05-071-119/+391
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon May 7 21:13:15 CEST 2012 on sn-devel-104
* doc: Remove latex to doxygen conversion leftovers in talloc.Pavel Březina2012-05-072-8/+8
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* doc: Fixes for the talloc best practices tutorial.Andreas Schneider2012-05-071-10/+10
|
* doc: Fixes for the talloc debugging tutorial.Andreas Schneider2012-05-071-9/+10
|
* doc: Fixes for the talloc pool tutorial.Andreas Schneider2012-05-071-15/+16
|
* doc: Fixes for the talloc destructor tutorial.Andreas Schneider2012-05-071-4/+5
|
* doc: Fixes for the talloc dynamic type system tutorial.Andreas Schneider2012-05-071-14/+15
|
* doc: Fixes for the talloc stealing tutorial.Andreas Schneider2012-05-071-9/+24
|
* doc: Fixes for the talloc context tutorial.Andreas Schneider2012-05-071-25/+27
|
* doc: Add talloc tutorial.Pavel Březina2012-05-0713-1/+873
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* talloc: Fix copy&paste errorsVolker Lendecke2012-04-241-2/+2
|
* Talloc doc: talloc_strdup_append does not return duplicated stringPavel Březina2012-04-241-4/+4
|
* Talloc doc: when s == NULL in _append functionsPavel Březina2012-04-241-0/+12
|
* Talloc doc: Fix a cut&paste errorVolker Lendecke2012-04-181-4/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Wed Apr 18 11:59:49 CEST 2012 on sn-devel-104
* Talloc doc: talloc_pool() when not enough memory in the poolPavel Březina2012-04-181-0/+4
|
* Talloc doc: TALLOC_FREE_FILLPavel Březina2012-04-181-0/+5
|
* Talloc doc: talloc_set_log_stderr()Pavel Březina2012-04-181-0/+7
| | | | Documents this function.
* Talloc doc: talloc_set_log_fn()Pavel Březina2012-04-181-0/+9
| | | | Documents this function.
* Talloc doc: talloc_set_abort_fn()Pavel Březina2012-04-181-2/+33
| | | | Documents this function.
* Talloc doc: talloc_asprintf_append_buffer()Pavel Březina2012-04-181-0/+22
| | | | Explains the difference between _append and _append_buffer.
* Talloc doc: talloc_strndup_append_buffer()Pavel Březina2012-04-181-2/+22
| | | | Explains the difference between _append and _append_buffer.
* Talloc doc: talloc_strndup_append()Pavel Březina2012-04-181-2/+12
| | | | The destination string is reallocated instead of duplicating the result.
* Talloc doc: talloc_strdup_append_buffer()Pavel Březina2012-04-181-1/+22
| | | | Explains the difference between _append and _append_buffer.
* Talloc doc: talloc_strdup_append()Pavel Březina2012-04-181-4/+18
| | | | The destination string is reallocated instead of duplicating the result.
* talloc/testsuite: fix compiler warningsStefan Metzmacher2012-01-101-1/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 10 13:31:33 CET 2012 on sn-devel-104
* talloc: Slightly simplify talloc_unlinkVolker Lendecke2012-01-021-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
* talloc: Fix a typoVolker Lendecke2012-01-021-3/+3
|
* waf: Factor checking for undefined symbol flags out into separate method.Jelmer Vernooij2011-11-131-0/+2
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Nov 13 19:38:38 CET 2011 on sn-devel-104
* talloc: Only check for pkg-config file when checking for system talloc.Jelmer Vernooij2011-11-131-2/+2
|
* pytalloc-util: Don't mark as python extension, use pyembed instead.Jelmer Vernooij2011-11-131-1/+1
|
* talloc: fix a comment typoMichael Adam2011-10-261-1/+1
|
* talloc: simplifiy the logic to build talloc_testsuite in the standalone buildStefan Metzmacher2011-10-221-8/+6
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Oct 22 13:15:52 CEST 2011 on sn-devel-104
* talloc/testsuite: remove #if _SAMBA_BUILD_==3Stefan Metzmacher2011-10-221-9/+0
| | | | | | We don't include "includes.h" anymore... metze
* talloc: change version to 2.0.7Stefan Metzmacher2011-09-153-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
* talloc: Remove an unused variableVolker Lendecke2011-09-071-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Sep 7 16:47:26 CEST 2011 on sn-devel-104
* talloc: Fix talloc-compat pc files/headers.Jelmer Vernooij2011-08-211-1/+3
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Aug 21 04:53:07 CEST 2011 on sn-devel-104
* wafsamba: Only install .pc files if libraries are public.Jelmer Vernooij2011-08-211-6/+3
|
* pytalloc: Regenerate ABI file.Jelmer Vernooij2011-08-101-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Wed Aug 10 16:51:11 CEST 2011 on sn-devel-104
* pytalloc: Use consistent prefix for functions, add ABI file.Jelmer Vernooij2011-08-105-51/+57
|
* talloc: prepare for 2.0.6 releaseAndrew Tridgell2011-08-092-1/+63
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Aug 9 04:03:49 CEST 2011 on sn-devel-104
* talloc: ensure the sibling linked list remains valid during a freeAndrew Tridgell2011-08-091-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
* talloc: check block count aftter references testAndrew Tridgell2011-08-041-0/+1
| | | | Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* talloc: added test suite for talloc_free_children()Andrew Tridgell2011-07-291-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
* talloc: preserve context name on talloc_free_children()Simo Sorce2011-07-291-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>
* talloc: Support PYTHON environment variable.Jelmer Vernooij2011-07-261-0/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jul 26 22:21:30 CEST 2011 on sn-devel-104
* talloc: splitout _talloc_free_children_internal()Stefan Metzmacher2011-05-171-50/+27
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 17 10:49:13 CEST 2011 on sn-devel-104