mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
b07e4933b7
This can be used to tell if a talloc stackframe is currently available. Callers can use this to decide if they will use talloc_tos() or instead use an alternative strategy. This gives us a way to safely have calls to talloc_tos() in common code that may end up in external libraries, as long as all talloc_tos() calls in these pieces of common code check first that a stackframe is available.
This directory contains libutil (until we can think of a better name) The idea is that this library contains simple but useful data structures and support functions that are generally useful; not just for Samba but for other projects as well. Functions here should not depend on any external libraries, just on libc (perhaps partially provided by libreplace).