summaryrefslogtreecommitdiffstats
path: root/lib/talloc
Commit message (Collapse)AuthorAgeFilesLines
* report the location of the original talloc_free on double freetalloc-2.0.0Andrew Tridgell2009-09-041-11/+18
| | | | | | | | When we get a double free abort from talloc it is often hard to work out where the first free came from. This patch takes advantage of the fact that _talloc_free() now takes a location the free was called from to allow the double free abort code to print the location of the first free that conflicts.
* One would expect I could spell my name.Michael Adam2009-08-301-1/+1
|
* talloc: move the original abi_checks script to script/abi_checks_gcc.shMichael Adam2009-08-301-0/+0
| | | | Michael
* talloc: remove talloc_free from the exportsMichael Adam2009-08-301-1/+0
| | | | Michael
* talloc: run abi_checks as part of "make test"Michael Adam2009-08-301-0/+2
| | | | Michael
* talloc: remove files generated by "make abi_check" in "make clean"Michael Adam2009-08-301-0/+2
| | | | Michael
* talloc: add a target "abi_checks" to talloc.Michael Adam2009-08-301-0/+4
| | | | | | Simply run "make abi_checks" to call the abi check script appropriately. Michael
* talloc: add script/abi_checks.sh. check for abi changes without gcc magic.Michael Adam2009-08-301-0/+91
| | | | | | | | | USAGE: abi_checks.sh LIBRARY_NAME header1 [header2 ...] This creates symbol signature lists using the mksyms and mksigs scripts and compares them with the checked in lists. Michael
* talloc: add script to extract signatures from header files.Michael Adam2009-08-301-0/+178
| | | | | | | | | | | | This produces output like the output gcc produces when invoked with the -aux-info switch. Run like this: cat talloc.h | ./script/mksigs.pl This simple parser is probably too coarse to handle all possible header files, but it does treat talloc.h correctly. Michael
* talloc: add scripts to extract library symbols (exports file) from headersMichael Adam2009-08-302-0/+121
| | | | Michael
* note the semantic change in talloc_free from 2.0Andrew Tridgell2009-08-242-8/+9
|
* fixed typo in talloc doc XMLAndrew Tridgell2009-08-241-1/+2
|
* updated XML source for talloc man pageAndrew Tridgell2009-08-241-1/+73
|
* added talloc_set_log_* documentationAndrew Tridgell2009-08-241-0/+11
|
* updated talloc guide for recent API changesAndrew Tridgell2009-08-241-2/+54
|
* talloc: add --enable-talloc-compat1 to build a compat library for talloc 1.x.xStefan Metzmacher2009-08-245-0/+89
| | | | metze
* talloc: update talloc.exports and talloc.signaturesStefan Metzmacher2009-08-242-4/+8
| | | | metze
* talloc: add defines and functions for TALLOC_MAJOR/MINOR_VERSIONStefan Metzmacher2009-08-246-11/+72
| | | | | | | | | | We also use the major and minor versions in the TALLOC_MAGIC, so that we can detect if two conflicting versions of talloc are loaded in one process. In this case we use talloc_log() to output a very useful debug message before we call talloc_abort(). metze
* talloc: change version to 2.0.0Stefan Metzmacher2009-08-241-1/+1
| | | | metze
* talloc: remove ABI compat functionsStefan Metzmacher2009-08-242-31/+0
| | | | metze
* talloc: remove unused build dependecies to sambaStefan Metzmacher2009-08-241-18/+0
| | | | metze
* talloc/testsuite: use talloc_set_log_fn() and log to stdoutStefan Metzmacher2009-08-241-0/+6
| | | | metze
* talloc: add talloc_set_log_fn() and talloc_set_log_stderr()Stefan Metzmacher2009-08-242-12/+51
| | | | | | | So that the application can setup a log function to get ERROR and WARNING messages. metze
* talloc: let talloc_steal() only generate a warning if it's used with referencesStefan Metzmacher2009-08-241-2/+1
| | | | | | We have to many callers, which rely on that talloc_steal() never fails. metze
* talloc/testsuite: report __location__ of testsuite failuresStefan Metzmacher2009-08-241-6/+6
| | | | metze
* talloc/testsuite: add infrastructure to test abortsStefan Metzmacher2009-08-241-0/+20
| | | | metze
* talloc/testsuite: reset the globals after each subtestStefan Metzmacher2009-08-241-3/+29
| | | | metze
* talloc: call return after abort, because an overloaded abort function might ↵Stefan Metzmacher2009-08-241-0/+4
| | | | | | | | | not exit This will be useful in the testsuite, where we could check if an abort would happen. metze
* talloc: report the size of reference handles as 0Stefan Metzmacher2009-08-241-1/+3
| | | | metze
* talloc: let talloc_total_blocks() and talloc_get_size() operate on the ↵Stefan Metzmacher2009-08-241-2/+15
| | | | | | null_context metze
* DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal.Jelmer Vernooij2009-07-302-7/+8
| | | | | Use py_talloc_reference in DCE/RPC code, fixes access to SAMR pipe.
* Fix some warningsVolker Lendecke2009-07-041-2/+3
|
* Restore ABI compatibility for talloc.Simo Sorce2009-07-036-60/+106
|
* talloc: change TALLOC_MAGIC for version 2.0.0Stefan Metzmacher2009-07-021-1/+12
| | | | metze
* change talloc to 2.0.0Andrew Tridgell2009-07-021-1/+1
| | | | | | | This is needed to prevent samba3 and samba4 from using an ABI incompatible system version of talloc See ongoing discussion on the samba-technical mailing list
* fixed the talloc testsuite for the recent changesAndrew Tridgell2009-07-011-6/+10
|
* a talloc_realloc() to zero size needs to use an unambiguous freeAndrew Tridgell2009-07-011-1/+1
|
* changes to remove the ambiguity in talloc_free() and talloc_steal() Andrew Tridgell2009-07-012-26/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes follow from the discussions on samba-technical. The changes are in several parts, and stem from the inherent ambiguity that was in talloc_free() and talloc_steal() when the pointer that is being changes has more than one parent, via references. The changes are: 1) when you call talloc_free() on a pointer with more than one parent the free will fail, and talloc will log an error to stderr like this: ERROR: talloc_free with references at some/foo.c:123 reference at other/bar.c:201 reference at other/foobar.c:641 2) Similarly, when you call talloc_steal() on a pointer with more than one parent, the steal will fail and talloc will log an error to stderr like this: ERROR: talloc_steal with references at some/foo.c:123 reference at other/bar.c:201 3) A new function talloc_reparent() has been added to change a parent in a controlled fashion. You need to supply both the old parent and the new parent. It handles the case whether either the old parent was a normal parent or a reference The use of stderr in the logging is ugly (and potentially dangerous), and will be removed in a future patch. We'll need to add a debug registration function to talloc.
* fixed use of reference in pytallocAndrew Tridgell2009-07-012-3/+24
| | | | | | | | | | | | The previous code caused memory leaks, and also caused situations where talloc_free could be called on pointers with multiple parents The new approach is to have two functions: py_talloc_import : steals the pointer, so it becomes wholly owned by the python object py_talloc_reference: uses a reference, so it is owned by both python and C
* fix release scripts to always git cleanSimo Sorce2009-06-171-0/+3
| | | | | This makes sure we do not include foreign object files or other build byproducts by mistake.
* Add exports file and abi checker for talloctalloc-1.3.1Simo Sorce2009-06-158-9/+169
| | | | | | | | This is a first attempt at exporting symbols only for public functions We also provide a rudimentary ABI checker that tries to check that function signatures are not changed by mistake. Given our use of macros this is not an API checker. It's all based on talloc.h contents and the gcc -aux-info option
* talloc: try to fix the source4 build on AIXStefan Metzmacher2009-06-081-1/+1
| | | | metze
* Update copies of config.guess and config.sub.Jelmer Vernooij2009-05-162-76/+282
|
* Avoid --nonet when building manpages; xsltproc will already prefer localJelmer Vernooij2009-05-061-2/+2
| | | | stylesheets if they are installed.
* Update tdb and talloc web pagesSimo Sorce2009-05-051-5/+10
|
* Add release scripts for talloc and tdbSimo Sorce2009-05-051-0/+45
|
* Prevent reallocs of the talloc pool itselfSimo Sorce2009-04-221-0/+5
|
* talloc_array_length: talloc_get_size deals fine with NULLVolker Lendecke2009-03-221-1/+1
|
* Revert "Add a basic Doxyfile for talloc"Volker Lendecke2009-03-221-8/+0
| | | | This reverts commit f55e84e904173bed8dc9099ad523ca1e7be12355.
* Revert "Convert the contents of talloc_guide.txt to doxygen-style talloc.h ↵Volker Lendecke2009-03-221-1023/+1
| | | | | | comments" This reverts commit d21212c9192b41a3fdc7e96cb9bf0125a1dc6c2d.