summaryrefslogtreecommitdiffstats
path: root/source/include/talloc.h
Commit message (Collapse)AuthorAgeFilesLines
* r18810: use a copy of samba4's talloc under lib/talloc/Stefan Metzmacher2007-10-101-165/+0
| | | | | | to make mergeing easier. metze
* r17922: sync samba3's talloc with samba4's and move the samba3 specific ↵Stefan Metzmacher2007-10-101-36/+55
| | | | | | stuff to tallocmsg.c metze
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-1/+2
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r15838: Back-port tridge's talloc fixes (r15824, r15828) from Samba4.Jeremy Allison2007-10-101-0/+1
| | | | Jeremy.
* r11985: Move to LGPL as per tridge's Samba4 change.Jeremy Allison2007-10-101-11/+27
| | | | Jeremy.
* r6646: keep samba3 talloc inline with samba4 oneSimo Sorce2007-10-101-0/+1
|
* r6595: This is Volkers new-talloc patch. Just got the go-ahead fromJeremy Allison2007-10-101-38/+93
| | | | | Volker to commit. Woo Hoo ! Jeremy.
* split some security related functions in their own files.Simo Sorce2003-10-061-0/+21
| | | | | | | | (no need to include all of smbd files to use some basic sec functions) also minor compile fixes couldn't compile to test these due to some kerberos problems wirh 3.0, but on HEAD they're working well, so I suppose it's ok to commit
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-1/+1
| | | | | named. Ensure we can query them. Jeremy.
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* Add talloc_asprintf_append, which grows an existing string buffer toMartin Pool2002-01-031-0/+6
| | | | | contain new print-formatted information. (Also talloc_vasprintf_append.) Idea borrowed from glib.
* Make TALLOC_CTX and talloc_chunk private to talloc.c.Martin Pool2001-12-191-16/+1
| | | | | | | | | | Add a global singly-linked list of all active talloc pools, so that we can eventually show how much memory is used for different purposes. This also gives a check that pools are not being doubly freed. talloc_init_named now handle a NULL name properly (ie does nothing) Add accessor talloc_pool_name().
* DocMartin Pool2001-12-191-1/+9
|
* Put PRINTF_ATTRIBUTE on talloc_init_named, talloc_asprintf,Martin Pool2001-12-191-0/+8
| | | | talloc_vasprintf.
* Start adding some debugging features to talloc based on Samba'sMartin Pool2001-12-191-0/+10
| | | | | | | | | | ancient mem_man.c: Each TALLOC_CTX now has a field to store its purpose, to aid in tracking down memory bloat. A new call talloc_init_named() should be used instead of talloc_init() so that this is set. Added talloc_vasprintf to be called by varargs functions.
* the BAD_PTR idea in talloc.h is actually a bad idea - it means callers have ↵Andrew Tridgell2001-06-221-6/+0
| | | | no way of telling if the call really failed
* a much simpler talloc() implementation. This version has the followingAndrew Tridgell2001-03-231-2/+1
| | | | | | | | | | | | | advantages: - memory is trackable by insure - a very simple talloc_realloc() is possible (I've added it) It is slower than the previous talloc code, but I don't think that is going to be a problem. If it is a problem then there are some ways we can make it faster but I'd like to leave those until we have tested this a bit and can see what performance problems might show up in profiling
* Added total memory allocated counter to talloc, so we can tell if a tallocJeremy Allison2001-02-271-0/+1
| | | | | | | pool is getting bloated. Also added a talloc_zero function to return zeroed memory. Added debug in rpc_server/srv_pipe_hnd.c so we know when a talloc pool is being freed. Syncup with srv_pipe_hnd.c from 2.2 so we are freeing memory at the same time. Jeremy.
* reworked talloc() to in order to help track down invalidGerald Carter2000-08-121-0/+6
| | | | | | | | | | | | | | | | | memory access. Tridge, I don't think using 0xdeadbeef for size allocations of 0 is going to work. I ended up having to use NULL as much code that works on UNISTR checks to see if the buffer ptr is NULL. So valid code ends up with a seg fault. Rather than rewriting it all, I added a DEBUG_TALLOC #ifdef in talloc.h that sets a macro BAD_PTR. This is the value assigned to ptr for an allocation of 0 bytes. jerry
* Ok - this is a *BIG* change - but it fixes the problems with static stringsJeremy Allison2000-07-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in the RPC code. This change was prompted by trying to save a long (>256) character comment in the printer properties page. The new system associates a TALLOC_CTX with the pipe struct, and frees the pool on return of a complete PDU. A global TALLOC_CTX is used for the odd buffer allocated in the BUFFERxx code, and is freed in the main loop. This code works with insure, and seems to be free of memory leaks and crashes (so far) but there are probably the occasional problem with code that uses UNISTRxx structs on the stack and expects them to contain storage without doing a init_unistrXX(). This means that rpcclient will probably be horribly broken. A TALLOC_CTX also needed associating with the struct cli_state also, to make the prs_xx code there work. The main interface change is the addition of a TALLOC_CTX to the prs_init calls - used for dynamic allocation in the prs_XXX calls. Now this is in place it should make dynamic allocation of all RPC memory on unmarshall *much* easier to fix. Jeremy.
* implemented talloc() as described on samba-technical. This fixes theAndrew Tridgell2000-01-051-0/+32
lp_string() bug properly. we still need to add lp_talloc_free() calls in all the main event loops, I've only put it in smbd and nmbd thus far.