summaryrefslogtreecommitdiff
path: root/source4/lib/talloc/talloc.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r6845: make the talloc header align to 40 bytes, which costs us an extra 4Andrew Tridgell1-8/+11
bytes per allocation, but makes it much more portable (This used to be commit 257027a571da254c16b0b456cb1cbec284d7fda0)
2007-10-10r6831: talloc now requires config.h (this fixes ldb build)Andrew Tridgell1-2/+0
(This used to be commit aac86583a9bff7d882ed56633126a1d9f27eea6a)
2007-10-10r6828: More portability fixesJelmer Vernooij1-0/+9
(This used to be commit f46c532883e18b8780ff73d3ac0899690eeab3f4)
2007-10-10r6812: more talloc portability tweaksAndrew Tridgell1-0/+1
(This used to be commit 450ac2e4dea25910ee5384747bdb6ad7323e967d)
2007-10-10r6808: - test for gcov not neededAndrew Tridgell1-13/+0
- samba malloc wrapper avoidance not needed now we don't use includes.h - make testsuite work when BOOL, True, False already defined (This used to be commit c8a274c8735957a8a8dd21421abd65a8a1af20f7)
2007-10-10r6804: Add config.h for talloc (and use it)Jelmer Vernooij1-5/+13
(This used to be commit c2ce09d38003fd43212de9cd08e4a781cc2aff88)
2007-10-10r6741: prevent talloc_strndup() from reading one byte past the end of a buffer,Andrew Tridgell1-1/+1
giving valgrind errors (This used to be commit 7af0c547e0c0da3bc78a1ee6c2ab29114d8625cc)
2007-10-10r6660: Sorry for the spam... I think now I've got a version that should ↵Volker Lendecke1-1/+10
compile on trunk, 3_0 and 4_0. Volker (This used to be commit 777c489cad610fef140ec80d5644111b04a314c1)
2007-10-10r6650: keep style consistentSimo Sorce1-1/+2
(This used to be commit 34671674ee326ea835408f8c1fdb105ea50ccc55)
2007-10-10r6645: Add talloc_get_size() function.Simo Sorce1-0/+10
Sometimes it is usefull to know this data. Simo. (This used to be commit df401847827ef660d8b9d55af9b27bb85bad6b5f)
2007-10-10r6513: Commit talloc_free_children.Volker Lendecke1-20/+37
Volker (This used to be commit 9fa26d2c971a7baee64d8938e31909cac80f0e5a)
2007-10-10r6075: added talloc_enable_null_tracking() (asked for by lifeless)Andrew Tridgell1-2/+12
(This used to be commit 40b8ee186af3e7f771c680dbbb03fdcf559bf103)
2007-10-10r6033: Patch from 'lifeless' to clarify behaviour with NULL pointers.Andrew Bartlett1-1/+2
Andrew Bartlett (This used to be commit 48c518796797f021c9c7f319ca8cd0a0c185f64c)
2007-10-10r5938: - allow NULL string argument to talloc_vasprintf_append()Andrew Tridgell1-1/+9
- default to using va_copy(), thus assuming a modern libc (This used to be commit 3060b26c9e745330682f6209d97e723113b65b56)
2007-10-10r5937: - performance improvement to talloc_asprintf_append()Andrew Tridgell1-5/+2
- allow standalone talloc to use gcc printf attributes (This used to be commit e25aa54e962796e6e7385afed57aa287ef6f869d)
2007-10-10r5119: fflush after talloc reports to ensure they are fully on disk when ↵Andrew Tridgell1-1/+2
using tee (This used to be commit e73e49aaa64f6f976918f087cf196b00eecc3eb2)
2007-10-10r4790: added type checking helper macros in talloc. These take advantage ofAndrew Tridgell1-0/+19
the type names that talloc already keeps around for pointers, and allows the user to type check void* private pointers. It can also be used to implement polymorphism in C, as I'm sure someone would have pointed out to me sooner or later :-) (This used to be commit c283e1a3efac3a92e29a35856e20eb61ef4c221e)
2007-10-10r4718: don't use the deprecated __va_copy() unless va_copy() is unavailableAndrew Tridgell1-0/+2
(This used to be commit 603ef69be075821e3ffe2084bb5cfb0bc9cce180)
2007-10-10r4689: - make talloc_report_depth() publicStefan Metzmacher1-1/+7
- add talloc_parent() to return the parent context of a pointer these are very use full for debuging metze (This used to be commit 9b9501bc03ef8d4b53049f6b3531d06ed7ef7f89)
2007-10-10r4591: - converted the other _p talloc functions to not need _pAndrew Tridgell1-9/+5
- added #if TALLOC_DEPRECATED around the _p functions - fixes the code that broke from the above while doing this I fixed quite a number of places that were incorrectly using the non type-safe talloc functions to use the type safe ones. Some were even doing multiplies for array allocation, which is potentially unsafe. (This used to be commit 6e7754abd0c225527fb38363996a6e241b87b37e)
2007-10-10r4550: talloc() is now typesafe. It is exactly equivalent to the old ↵Andrew Tridgell1-2/+2
talloc_p() macro. Use talloc_size() if you want the old behaviour. I have kept talloc_p() as an alias for now. Once we change all calls to be plain talloc() then we can remove it. (This used to be commit 2011bbeb841fd6bfccf3d44a49f79203f7f55baa)
2007-10-10r4479: added the function talloc_autofree_context() which returns a talloc ↵Andrew Tridgell1-0/+21
context that will automatically be freed on program exit. This is useful for reducing clutter in leak reports (This used to be commit cf73dda652e0a121901f22771104be6751c0fcb9)
2007-10-10r4473: - moved talloc into its own lib/talloc/ areaAndrew Tridgell1-0/+1006
- added gcov flags to Makefile.talloc - expanded talloc testsuite to add a test for realloc with a child ptr - fixed a bug in talloc_realloc() with realloc of a ptr that has child ptrs (This used to be commit 98b5f73c1ba34d7576c5995069b485c1c5ede324)