summaryrefslogtreecommitdiffstats
path: root/lib/util/talloc_stack.c
Commit message (Collapse)AuthorAgeFilesLines
* Use TALLOC_FREE in talloc_pop()Volker Lendecke2010-03-211-2/+1
|
* Use calloc instead of ZERO_STRUCTP in talloc_stackframe_create()Volker Lendecke2010-03-211-7/+5
|
* Trim an overlong lineVolker Lendecke2010-03-211-2/+2
|
* talloc_stack: reset stackframe pointers to NULLStefan Metzmacher2010-03-151-0/+2
| | | | | | This makes it easier to debug the code in future. metze
* talloc_stack: make sure we never let talloc_tos() return ts->talloc_stack[-1]Stefan Metzmacher2010-03-151-1/+1
| | | | | | | | | | | In smbd there's a small gab between TALLOC_FREE(frame); before be call smbd_parent_loop() where we don't have a valid talloc stackframe. smbd_parent_loop() calls talloc_stackframe() only within the while(1) loop. As DEBUG(2,("waiting for connections")) uses talloc_tos() to construct the time header for the debug message we crash on some systems. metze
* Take advantage of the easier-to-use thread macrosDerrell Lipman2009-05-131-8/+0
| | | | | | | - Now that we initialize for the non-thread-safe case in the macro, there's no need to do it here too. Derrell
* Allow a parameter to smb_thread_once's initialization functionDerrell Lipman2009-05-131-2/+2
| | | | | | | | | | | | - This should make life easier for ourselves. We're no longer constrained to the semantics of pthread_once, so let's allow passing a parameter to the initialization function. Some of Samba's init functions return a value. Although I haven't searched, I suspect that some of the init functions require in input parameters. The parameter added here can be used for input, output, or both, as necessary... or ignored, as is now done in talloc_stackframe_init(). Derrell
* Attempt to fix build farm on platforms where pthread_once_t is a struct.Jeremy Allison2009-04-201-2/+2
| | | | Jeremy.
* Fix the pthread_once initialization issue. Make talloc_stackframe useJeremy Allison2009-04-201-5/+21
| | | | | this. Jeremy.
* Ensure a tls key is only generated once - wrap create & destroy in a mutex.Jeremy Allison2009-04-141-1/+1
| | | | | | Change the function names to add _once to the tls_create & tls_destroy to make this obvious. Jeremy.
* Make talloc_stack threadsafe using TLS. Volker pleaseJeremy Allison2009-04-141-20/+73
| | | | | check. Passes make test and basic valgrind testing. Jeremy.
* Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij2008-10-231-1/+1
|
* Import talloc_stack into util library.Jelmer Vernooij2008-10-231-0/+130