summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2008-01-16Merge CTDB-related fixes from samba-ctdb 3.0 branch ↵Alexander Bokovoy9-85/+276
(http://samba.org/~tridge/3_0-ctdb) Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbbb2d081fc23908bafcad04650bfacea)
2008-01-15Port from ctdb:Jeremy Allison1-16/+6
minor fix to transaction_write_existing: tridge. Jeremy. (This used to be commit 874425c8f680fb2f737b46a3177b239e69302af5)
2008-01-14From Alexander BokovoyJeremy Allison1-1/+1
names is a 'const char **names' here, passed from upper level. Passing 'names' as a talloc context will break things as 'names' is usually likely is a local variable, not a talloc'd. And we want to have array elements on a context of the array anyway. Jeremy. (This used to be commit 22a4129fabf70e01cc638c2f7347c28201838830)
2008-01-14samba3 already has tdb_validate()Andrew Tridgell2-43/+0
(This used to be commit 9f002eeff9bcf33a00e5641cb14338e866a17afe)
2008-01-14merged tdb fix from ctdb treeAndrew Tridgell3-0/+123
(This used to be commit c91e9c785b5bf4b0c479edf8eb33da22bf615387)
2008-01-13Fix the max_dead_record calculationsVolker Lendecke1-4/+1
(This used to be commit 4aaf4e7e73a5c7fa97ef730fbff5c7cb12df2d6c)
2008-01-13Introduce a libnet_conf context created by libnet_conf_open().Michael Adam1-1/+17
The libnet_conf_ctx stores the information necessary to interoperate with the configuration. It is created by calling libnet_conf_open() and destroyed by calling libnet_conf_close(). The context is passed to all the libnet_conf functions. It currently stores the token to access the registry. Later, it could store more data, e.g. the server to connect to, credentials, and so on. For support of other backends than registry or support of remote configuration, only the open function will have to be changed. In net_conf, the calls to the actual net_conf functions is wrapped into a function that calls libnet_conf_open()/_close(). Thus an individual variant of net_conf_runfunction2() and functable2 is used to cope with functions being called by the wrapper with the additional libnet_conf_ctx argument. Michael (This used to be commit c2a9346faa26e79af5948197a1b322e545f0ed09)
2008-01-12Restructure dbwrap_rbtVolker Lendecke1-59/+127
In this low-level code, play tricks to reduce the number of allocations to the possible minimum. I would not recommend this for higher-level code, but here it pays off. (This used to be commit 71b1e6ff1595fbaa8dd49b996c45541531c7e98c)
2008-01-12CID 458. Don't leak dlopen handles on failing to loadJeremy Allison1-0/+2
module. Jeremy. (This used to be commit 8809eaeb154ea12543455f589e31172dc905d83a)
2008-01-11Sync tdb with the tdb changes in ctdb. Spoke to tridge aboutJeremy Allison10-218/+358
this. Fixes insidious problem with order n^2 freelist merging. Jeremy. (This used to be commit c6609c042b128e7d63eb64cfdfb0f6b65cb59d76)
2008-01-11As long as DsGetDcName is not part of libnetapi, lowercase the fn name.Günther Deschner1-2/+2
Guenther (This used to be commit 19a980f52044a170618629e5b0484c1f6b586e5f)
2008-01-11Fix libnetapi error string callers.Günther Deschner3-7/+7
Guenther (This used to be commit 1ad7a0a361edfa5ac738f011db1d6a9db256ac2c)
2008-01-11Include some basic headers in netapi.h.Günther Deschner1-0/+10
Guenther (This used to be commit 23b92a6fa57858c8a23c737a9cd00c076ef5dadd)
2008-01-11Refactor libnetapi error string functions a bit.Günther Deschner2-6/+20
Guenther (This used to be commit 3b450a8bcc97b6d03c4b7b9373a3a382c0fcea30)
2008-01-10Tiny cosmetic fixVolker Lendecke1-2/+1
(This used to be commit c82c1d462be6ddccd6e395b4a9630df91dacbda2)
2008-01-10Move transfer_file and transfer_file_internal to a module of their own.Michael Adam2-87/+110
Also, don't auto-generate prototypes of the (two) exported functions but make a start in having handwritten prototypes in dedicated header files (not in includes.h ... :-) Michael (This used to be commit 395f29d8b768a56af20b37f185eccdc5f37b68d5)
2008-01-10Reformat some code I just touched.Michael Adam1-12/+20
Michael (This used to be commit 4ed238b1e46f7680a29ebdbfe9500d16718f9057)
2008-01-10Fix a really silly typo.Michael Adam1-1/+1
Michael (This used to be commit 7b0af7cdc97d4bbcbd73a9474871217511b92c3a)
2008-01-10Correctly abstract the transfer_file mechanism with callbacks and void ptrs.Michael Adam1-5/+23
This removes the in_fsp and out_fsp global variables hack from smbd/vfs.c. Michael (This used to be commit b2e7cdc6e899ca3c16edbb6c8786ff9aa999fa6e)
2008-01-10use talloc_tos() in share_access_check()Volker Lendecke1-8/+3
(This used to be commit ac2bb838d537ca563ad2fe770b3e1c2fe8b1d9e7)
2008-01-10Fix a c++ warningVolker Lendecke1-1/+2
(This used to be commit ee905a085fff5410d02c3e5fa2664e989de4afd4)
2008-01-10talloc_free_children can only reset pool if it's emptyVolker Lendecke1-1/+2
(This used to be commit 0272b46515b4c4515d5cad8e86fab61d8e91e29e)
2008-01-10Mark talloc_pool memory for valgrindVolker Lendecke1-3/+16
(This used to be commit d89e42f1d2faa018c584025296d6be8195cbcf20)
2008-01-10Form a proper hierarchy in talloc_stackVolker Lendecke1-3/+10
This way talloc_stackframe() can benefit from a pool put on the stack further up. No need to remove talloc_stackframe(). (This used to be commit be6fe381168321ae62e079cd977cbef675c532d4)
2008-01-09Fixup hot paths - add macro for toupper (c < 0x80).Jeremy Allison2-11/+28
This now matches 3.0.x on my micro-tests. Jeremy. (This used to be commit 329b924cba8225002ca40db26c45b31d141a0925)
2008-01-09Add the calls to make use of talloc_pools in a talloc_stackframe.Jeremy Allison1-2/+16
Jeremy. (This used to be commit d27e6c0548d21394f6399d3b737d175ffed8420d)
2008-01-09Implement talloc_pool()Volker Lendecke3-7/+207
A talloc pool is a chunk of memory that can be used as a context for further talloc calls. Allocations with the pool as the parent just chew from that memory by incrementing a pointer. If the talloc pool is full, then we fall back to the normal system-level malloc(3) to get memory. The use case for talloc pools is the transient memory that is used for handling a single SMB request. Incrementing a pointer will be way faster than any malloc implementation. There is a downside of this: If you use talloc_steal() to move something out of the pool, the whole pool memory is kept around until the last object inside the pool is freed. So if you talloc_free() the pool, it might happen that the memory is freed later. So don't hang anything off a talloc pool that should live long. Volker (This used to be commit 287e29d988813007eeebc0c2bef3b46ab8bedee9)
2008-01-09Fix the max_dead_record calculationsVolker Lendecke1-4/+1
(This used to be commit 2a5c53220a5cc2b4a80fc7c6cb38e87789c5e797)
2008-01-09Change registry_create_admin_token() to return NTSTATUS.Michael Adam1-2/+11
Michael (This used to be commit 9cd30fb25c42e79946b5140994d0bf2ef4c62f90)
2008-01-09Move content of comment.Michael Adam1-4/+4
Michael (This used to be commit ed4dd00c5ae8e4995ace9326f915ae4bd15d96b3)
2008-01-09Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.Michael Adam3-33/+52
Michael (This used to be commit 6b2b9a60ef857ec31da5fea631535205fbdede4a)
2008-01-09Add a comment.Michael Adam1-0/+1
Michael (This used to be commit 3a4bf4b7c3081048f0d5491dae6610388c268c2f)
2008-01-09Fix talloctort: move size check after referenced ptr check.Michael Adam1-5/+5
Michael (This used to be commit 45b219642c529865a898625eeb0433c60b233867)
2008-01-09Save one popular mallocVolker Lendecke1-6/+18
(This used to be commit 2150663d9eaf5cdab08de2ad1fcc952d7e85936c)
2008-01-09Don't shrink a talloc area if we have less than 1k to gainVolker Lendecke1-0/+5
(This used to be commit 28a72ebd4541fb54f284da49081345e54130c75a)
2008-01-08Only realloc the talloc stack if necessaryVolker Lendecke1-7/+12
(This used to be commit c7cb98d486ef8af1dc7111c2316fd73db9fef9f8)
2008-01-08Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-testJelmer Vernooij11-116/+269
(This used to be commit ea36c3add588061cf338deabb2d8952f2213a8bd)
2008-01-08Correctly free buffers in netdomjoin-gui.Günther Deschner1-1/+8
Guenther (This used to be commit 04d78d4d9a8cffe44c927036038aef1d6d6b44b2)
2008-01-08Make name_buffer in NetGetJoinInformation() talloced.Günther Deschner1-2/+2
Guenther (This used to be commit 421905fb608df6736944ac21ac67abee24991521)
2008-01-08Add NetApiBufferFree() to libnetapi.Günther Deschner2-0/+19
Guenther (This used to be commit c49196954d38f0c2851abbfe25086cd6fe660a2e)
2008-01-08Fix crash bug when strequal is used too late in libnetapi_free.Günther Deschner1-5/+8
Guenther (This used to be commit ba2b8a310e1d6f78116350e24c17ae4db08b9bed)
2008-01-08Remove redundant parameter fd from SMB_VFS_SYS_ACL_SET_FD().Michael Adam1-14/+14
Michael (This used to be commit 9296e93588c0e795cae770765050247ac1474a74)
2008-01-07Remove redundant parameter fd from SMB_VFS_SYS_ACL_GET_FD().Michael Adam1-13/+13
Michael (This used to be commit 42663e8736e1a3dfb57e0aafdcbf5fec880da779)
2008-01-07Enable talloc reporting in libnetapi if DEVELOPER compiled.Günther Deschner1-0/+3
Guenther (This used to be commit 01e9151546a83e0c772a144efa85437ca0c8a307)
2008-01-07make db_tdb_fetch use tdb_parse_recordVolker Lendecke1-13/+33
(This used to be commit 88d82d0623e71ae1ef4f8fdefba10e3a230ea526)
2008-01-07Change db_tdb_fetch_locked to use only one tallocVolker Lendecke1-35/+53
(This used to be commit 921c8657e2eeb71d5b9ae2675255a852b26cc30d)
2008-01-07talloc_stackframe only needs 1 tallocVolker Lendecke1-11/+7
(This used to be commit c0c2084d40b79e949dab7c68626aa665b9ea1a8e)
2008-01-07In libnetapi example, use libnetapi_get_error_string().Günther Deschner1-1/+6
Guenther (This used to be commit b624db92d61809a44881abbdd09dfa3a74ff7a88)
2008-01-07In the local path of NetJoinDomain, try to get error string from libnetjoin.Günther Deschner1-0/+3
Guenther (This used to be commit 0f0f0e13022da584b77e850fec2cef6169e1ac28)
2008-01-07Add libnetapi_set_error_string and libnetapi_get_error_string.Günther Deschner2-4/+33
Guenther (This used to be commit f8806bad8134d544229c426f58bee143ba752cf8)