Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-09-15 | talloc: when we enable NULL tracking, reparent the autofree context | Andrew Tridgell | 1 | -0/+3 | |
If NULL tracking is enabled after the autofree context is initialised then autofree ends up separate from the null_context. This means that talloc_report_full() doesn't report the autofree context. Fix this by reparenting the autofree context when we create the null_context. | |||||
2009-09-11 | talloc:mksigs: allow PRINTF_ATTRIBUTE(..) macros function types as funcion args | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-09-11 | talloc:mksigs: normalize bool -> _Bool | Michael Adam | 1 | -0/+3 | |
Michael | |||||
2009-09-11 | talloc:mksigs: ignore symbols (like _DEPRECATED_) after closing function ↵ | Michael Adam | 1 | -0/+1 | |
parentheses Michael | |||||
2009-09-11 | talloc:mksigs: correctly ignode multiline function typedefs | Michael Adam | 1 | -5/+5 | |
by first concatenating multilint parentheses and removing typefes afterwards. Michael | |||||
2009-09-11 | talloc:mksigs: ignore struct forward declarations. | Michael Adam | 1 | -0/+1 | |
Michael | |||||
2009-09-11 | talloc:mksyms: allow characters after closing functions parenthesis. | Michael Adam | 1 | -2/+2 | |
Michael | |||||
2009-09-11 | talloc:mksyms: allow double pointer return value of functions. | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-09-04 | report the location of the original talloc_free on double free | Andrew Tridgell | 1 | -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. | |||||
2009-08-30 | One would expect I could spell my name. | Michael Adam | 1 | -1/+1 | |
2009-08-30 | talloc: move the original abi_checks script to script/abi_checks_gcc.sh | Michael Adam | 1 | -0/+0 | |
Michael | |||||
2009-08-30 | talloc: remove talloc_free from the exports | Michael Adam | 1 | -1/+0 | |
Michael | |||||
2009-08-30 | talloc: run abi_checks as part of "make test" | Michael Adam | 1 | -0/+2 | |
Michael | |||||
2009-08-30 | talloc: remove files generated by "make abi_check" in "make clean" | Michael Adam | 1 | -0/+2 | |
Michael | |||||
2009-08-30 | talloc: add a target "abi_checks" to talloc. | Michael Adam | 1 | -0/+4 | |
Simply run "make abi_checks" to call the abi check script appropriately. Michael | |||||
2009-08-30 | talloc: add script/abi_checks.sh. check for abi changes without gcc magic. | Michael Adam | 1 | -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 | |||||
2009-08-30 | talloc: add script to extract signatures from header files. | Michael Adam | 1 | -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 | |||||
2009-08-30 | talloc: add scripts to extract library symbols (exports file) from headers | Michael Adam | 2 | -0/+121 | |
Michael | |||||
2009-08-24 | note the semantic change in talloc_free from 2.0 | Andrew Tridgell | 2 | -8/+9 | |
2009-08-24 | fixed typo in talloc doc XML | Andrew Tridgell | 1 | -1/+2 | |
2009-08-24 | updated XML source for talloc man page | Andrew Tridgell | 1 | -1/+73 | |
2009-08-24 | added talloc_set_log_* documentation | Andrew Tridgell | 1 | -0/+11 | |
2009-08-24 | updated talloc guide for recent API changes | Andrew Tridgell | 1 | -2/+54 | |
2009-08-24 | talloc: add --enable-talloc-compat1 to build a compat library for talloc 1.x.x | Stefan Metzmacher | 5 | -0/+89 | |
metze | |||||
2009-08-24 | talloc: update talloc.exports and talloc.signatures | Stefan Metzmacher | 2 | -4/+8 | |
metze | |||||
2009-08-24 | talloc: add defines and functions for TALLOC_MAJOR/MINOR_VERSION | Stefan Metzmacher | 6 | -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 | |||||
2009-08-24 | talloc: change version to 2.0.0 | Stefan Metzmacher | 1 | -1/+1 | |
metze | |||||
2009-08-24 | talloc: remove ABI compat functions | Stefan Metzmacher | 2 | -31/+0 | |
metze | |||||
2009-08-24 | talloc: remove unused build dependecies to samba | Stefan Metzmacher | 1 | -18/+0 | |
metze | |||||
2009-08-24 | talloc/testsuite: use talloc_set_log_fn() and log to stdout | Stefan Metzmacher | 1 | -0/+6 | |
metze | |||||
2009-08-24 | talloc: add talloc_set_log_fn() and talloc_set_log_stderr() | Stefan Metzmacher | 2 | -12/+51 | |
So that the application can setup a log function to get ERROR and WARNING messages. metze | |||||
2009-08-24 | talloc: let talloc_steal() only generate a warning if it's used with references | Stefan Metzmacher | 1 | -2/+1 | |
We have to many callers, which rely on that talloc_steal() never fails. metze | |||||
2009-08-24 | talloc/testsuite: report __location__ of testsuite failures | Stefan Metzmacher | 1 | -6/+6 | |
metze | |||||
2009-08-24 | talloc/testsuite: add infrastructure to test aborts | Stefan Metzmacher | 1 | -0/+20 | |
metze | |||||
2009-08-24 | talloc/testsuite: reset the globals after each subtest | Stefan Metzmacher | 1 | -3/+29 | |
metze | |||||
2009-08-24 | talloc: call return after abort, because an overloaded abort function might ↵ | Stefan Metzmacher | 1 | -0/+4 | |
not exit This will be useful in the testsuite, where we could check if an abort would happen. metze | |||||
2009-08-24 | talloc: report the size of reference handles as 0 | Stefan Metzmacher | 1 | -1/+3 | |
metze | |||||
2009-08-24 | talloc: let talloc_total_blocks() and talloc_get_size() operate on the ↵ | Stefan Metzmacher | 1 | -2/+15 | |
null_context metze | |||||
2009-07-30 | DCE/RPC(Python): Rename py_talloc_import to py_talloc_steal. | Jelmer Vernooij | 2 | -7/+8 | |
Use py_talloc_reference in DCE/RPC code, fixes access to SAMR pipe. | |||||
2009-07-04 | Fix some warnings | Volker Lendecke | 1 | -2/+3 | |
2009-07-03 | Restore ABI compatibility for talloc. | Simo Sorce | 6 | -60/+106 | |
2009-07-02 | talloc: change TALLOC_MAGIC for version 2.0.0 | Stefan Metzmacher | 1 | -1/+12 | |
metze | |||||
2009-07-02 | change talloc to 2.0.0 | Andrew Tridgell | 1 | -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 | |||||
2009-07-01 | fixed the talloc testsuite for the recent changes | Andrew Tridgell | 1 | -6/+10 | |
2009-07-01 | a talloc_realloc() to zero size needs to use an unambiguous free | Andrew Tridgell | 1 | -1/+1 | |
2009-07-01 | changes to remove the ambiguity in talloc_free() and talloc_steal() | Andrew Tridgell | 2 | -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. | |||||
2009-07-01 | fixed use of reference in pytalloc | Andrew Tridgell | 2 | -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 | |||||
2009-06-17 | fix release scripts to always git clean | Simo Sorce | 1 | -0/+3 | |
This makes sure we do not include foreign object files or other build byproducts by mistake. | |||||
2009-06-15 | Add exports file and abi checker for talloc | Simo Sorce | 8 | -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 | |||||
2009-06-08 | talloc: try to fix the source4 build on AIX | Stefan Metzmacher | 1 | -1/+1 | |
metze |