summaryrefslogtreecommitdiff
path: root/lib/talloc/talloc.h
AgeCommit message (Collapse)AuthorFilesLines
2023-10-25talloc: Fix documentationJoseph Sutton1-1/+1
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-08-08talloc: Fix typoJoseph Sutton1-1/+1
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-03-30lib:talloc: Move talloc_get_size() out of the talloc reference groupAndreas Schneider1-13/+13
This is not specific to talloc references. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-01-18talloc: version 2.4.0talloc-2.4.0Stefan Metzmacher1-1/+1
* Add talloc_asprintf_addbuf() * Support python 3.12 Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jule Anger <janger@samba.org>
2022-12-14lib: Move talloc_asprintf_addbuf() to tallocVolker Lendecke1-0/+14
I wanted to use this in debug.c, but this would have meant to pollute debug's deps with a lot of stuff. Also, looking through uses of talloc_asprint_append(), very many of those don't do NULL checks properly and could benefit from the _addbuf() flavor. We can add a vasprintf variant later if the need shows up. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-11-10talloc: fix studio compiler buildBjörn Jacke1-89/+97
Solaris Studio compiler 12.4 is pedantic about prototypes in headers having the external visibility declarations too. It throws errors like: redeclaration must have the same or more restrictive linker scoping: ... Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-10-16talloc: also use portable __has_attribute macro to check for "deprecated" ↵Björn Jacke1-1/+1
attribute BUG: https://bugzilla.samba.org/show_bug.cgi?id=14526 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-05-24talloc: also use portable __has_attribute macro to check for attribute supportBjörn Jacke1-1/+6
Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-07-22talloc: Release talloc 2.3.0talloc-2.3.0Andrew Bartlett1-1/+1
* add pytalloc_get_name() to safely access te talloc name in Python bindings * Use a new minor version to allow talloc updates in the 4.11 release stream Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz
2019-04-02Spelling fix s/informations/information/Mathieu Parent1-2/+2
Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
2019-03-21talloc: Release talloc 2.2.0talloc-2.2.0Andrew Bartlett1-1/+1
* Remove pytalloc_CObject_FromTallocPtr() * Remove --extra-python (a build time mode to produce Python2 and Python3 bindings at the same time) * New minor version to allow Samba 4.10 to release a talloc if required from that branch Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2018-11-06lib: talloc: Mark talloc_autofree_context() as deprecated.Jeremy Allison1-8/+9
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2018-10-19talloc: deprecate talloc_set_memlimit()David Disseldorp1-1/+11
The memlimit functionality was never utilized by Samba. It adds unneeded complexity, so flag it as deprecated. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2018-05-28talloc: Fix some typos in the commentsKai Blin1-2/+2
Now with even more typos fixed. Thanks Rowland. Signed-off-by: Kai Blin <kai@samba.org> Reviewed-by: Rowland Penny <rpenny@samba.org> Autobuild-User(master): Kai Blin <kai@samba.org> Autobuild-Date(master): Mon May 28 16:16:17 CEST 2018 on sn-devel-144
2018-01-22talloc: Fix documentation typoMartin Schwenke1-1/+1
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Mon Jan 22 11:11:38 CET 2018 on sn-devel-144
2017-03-10talloc: fix doxygen of talloc_moveUri Simchoni1-3/+4
talloc_move cannot fail. Signed-off-by: Uri Simchoni <uri@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Mar 10 07:30:40 CET 2017 on sn-devel-144
2017-02-22talloc: fix TALLOC_VERSION_* mismatch detectionStefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Feb 22 00:14:34 CET 2017 on sn-devel-144
2016-01-11talloc: Fix a documentation typoMartin Schwenke1-1/+1
Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Jan 11 18:34:53 CET 2016 on sn-devel-144
2015-10-09talloc: Provide tests access to talloc_magicAdrian Cochrane1-0/+2
Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-05-16talloc: check for TALLOC_GET_TYPE_ABORT_NOOPStefan Metzmacher1-0/+4
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2014-05-16talloc: avoid a function call in TALLOC_FREE() if possible.Stefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-10-14talloc: Add a warning to talloc_reference() documentation.Andreas Schneider1-0/+8
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Kai Blin <kai@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Oct 14 23:05:54 CEST 2013 on sn-devel-104
2013-09-08talloc: Add talloc_pooled_objectVolker Lendecke1-0/+37
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-09-08talloc: Allow nested pools.Volker Lendecke1-2/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Signed-off-by: Jeremy Allison <jra@samba.org>
2012-10-05Add memory limiting capability to tallocSimo Sorce1-0/+19
By calling talloc_set_memlimit() we can now set a max memory limit for a whole talloc hierarchy. ANy attempt to allocate memory beyond the max allowed for the whole hierarchy wil cause an allocation failure. Stealing memory correctly accounts for used memory in the old and the new hierarchy but exceeding the memory limit in the new parent will not cause a failure.
2012-07-18talloc: don't allow a talloc_pool inside a talloc_pool.Rusty Russell1-1/+2
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-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.
2011-04-04talloc - some documentation changesMatthias Dieter Wallnöfer1-25/+24
- Fix some typos - Document better the differences in the behaviour between talloc 1.X and 2.X. Previously this seemed a bit spongy to me. Reviewed-by: Jelmer + Tridge Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Apr 4 11:05:42 CEST 2011 on sn-devel-104
2011-03-30talloc - improve doxygen comment of "talloc_move"Matthias Dieter Wallnöfer1-3/+3
Express better that this should be a pointer of a pointer. Reviewed-by: Tridge
2011-01-04talloc: Typo fix for api docsBrad Hards1-1/+1
2010-10-20talloc: make header C++ safeSimo Sorce1-0/+8
Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Wed Oct 20 18:15:09 UTC 2010 on sn-devel-104
2010-09-24talloc: Add a warning about talloc_autofree_context() and dlclose()Volker Lendecke1-0/+9
2010-08-14talloc:documentation - explain that "talloc_free" works also with "NULL" ↵Matthias Dieter Wallnöfer1-10/+21
pointers (talloc.c) ... > static inline int _talloc_free_internal(void *ptr, const char *location) > { > struct talloc_chunk *tc; > > if (unlikely(ptr == NULL)) { > return -1; > } > > tc = talloc_chunk_from_ptr(ptr); ... Obviously this never had been documented before.
2010-05-06talloc: Documented the missing string functions.Andreas Schneider1-0/+86
2010-05-01talloc: Documentation fix for tallocHolger Hans Peter Freyther1-1/+1
2010-04-02talloc: add a define for TALLOC_MAX_DEPTHAndrew Tridgell1-0/+4
Thanks to the suggestion from simo
2010-03-10doxygen: talloc_get_type name fixed in Doxygen documentationKamen Mazdrashki1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-02-08talloc: Fix abi checks and ifdefsSimo Sorce1-2/+2
teach the abi check scripts to skip the DOXYGEN sections fix the header to use #ifdef DOXYGEN and not #if DOXYGEN