summaryrefslogtreecommitdiffstats
path: root/source3/include/talloc.h
Commit message (Collapse)AuthorAgeFilesLines
* r17922: sync samba3's talloc with samba4's and move the samba3 specific ↵Stefan Metzmacher2007-10-101-36/+55
| | | | | | | stuff to tallocmsg.c metze (This used to be commit 7704e3e51dec1768772663024a0579cb4a271cc1)
* 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. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
* r15838: Back-port tridge's talloc fixes (r15824, r15828) from Samba4.Jeremy Allison2007-10-101-0/+1
| | | | | Jeremy. (This used to be commit f6c110ddb8cfaa1a57dea52818e7611134c2dcfe)
* r11985: Move to LGPL as per tridge's Samba4 change.Jeremy Allison2007-10-101-11/+27
| | | | | Jeremy. (This used to be commit 3804c4ca3914788e3d3780817ef016421418e11f)
* r6646: keep samba3 talloc inline with samba4 oneSimo Sorce2007-10-101-0/+1
| | | | (This used to be commit 4deebbbe50932792621114bf1e74b0c994bda7be)
* r6595: This is Volkers new-talloc patch. Just got the go-ahead fromJeremy Allison2007-10-101-38/+93
| | | | | | Volker to commit. Woo Hoo ! Jeremy. (This used to be commit 316df944a456f150944761dab34add5e8c4ab699)
* 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 (This used to be commit c78f2d0bd15ecd2ba643bb141cc35a3405787aa1)
* Forward port the change to talloc_init() to make all talloc contextsJeremy Allison2002-12-201-1/+1
| | | | | | named. Ensure we can query them. Jeremy. (This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
* 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. (This used to be commit 53723e874885936dd67483ebf46601fc73489d17)
* 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(). (This used to be commit 4c6c03c8c7c18762dd9ef1a1bd88350b8960542f)
* DocMartin Pool2001-12-191-1/+9
| | | | (This used to be commit 7da982e9268be7eb93fe7d6ad7da5b33ce44181c)
* Put PRINTF_ATTRIBUTE on talloc_init_named, talloc_asprintf,Martin Pool2001-12-191-0/+8
| | | | | talloc_vasprintf. (This used to be commit e6be48671d520f952be0b6dc0848569d0d834179)
* 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. (This used to be commit 25b97a743573b8c5e0ac886e4bfab581c11b3714)
* 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 (This used to be commit 7a96ca313e2f6b5ad8a713babd3cac0bbcc4c399)
* 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 (This used to be commit 1ab63cf3a6f62c3e4ca19a549bde78dad0eb4340)
* 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. (This used to be commit d3a56c6042acf037bbd53de88d7636a5803ead20)
* 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 (This used to be commit 233b9cffa2350552d9f775f791d5d5e0464a1ed4)
* 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. (This used to be commit 0ff2ce543ee54f7364e6d839db6d06e7ef1edcf4)
* 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. (This used to be commit aa7f81552540f5dca2c146f5edd805611d5b390f)