summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * tdb: Fix some recently introduced warnings in tdbtoolTim Prouty2009-05-271-6/+6
| |
* | make TDB_NOSYNC affect all the fsync/msync calls in transactionsAndrew Tridgell2009-05-281-5/+7
|/ | | | | | During a transaction commit tdb normally uses fsync/msync calls to make it crash safe. This can be disabled using the TDB_NOSYNC flag, but it wasn't disabling all the code paths that caused a fsync/msync.
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaAndrew Tridgell2009-05-262-0/+77
|\
| * Add support for sendmsg() in socket_wrapperAndrew Bartlett2009-05-262-0/+77
| | | | | | | | | | | | | | | | This is required because the deferred connect code skips the connect() until sending the packet, but unless we catch this call, the connect() never happens. Andrew Bartlett
* | added some more speed tests to tdbtoolAndrew Tridgell2009-05-261-6/+59
|/ | | | | | | This adds 3 simple speed tests to tdbtool, for transaction store, store and fetch. On my laptop this shows transactions costing about 10ms
* Change async_connect to use connect instead of getsockopt to get the errorVolker Lendecke2009-05-241-14/+24
| | | | | On my Linux box, this is definitely the more reliable strategy with unix domain sockets, and according to my tests it also works correctly with TCP sockets.
* Add "err_on_readability" to writev_sendVolker Lendecke2009-05-242-2/+14
| | | | | | A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
* Allow NULL queue to writev_sendVolker Lendecke2009-05-241-6/+16
|
* tsocket: allow empty vectors at the end for tstream_writev()/readv()Stefan Metzmacher2009-05-221-0/+26
| | | | metze
* Detect tight loop in tdb_find()Jim McDonough2009-05-211-0/+5
|
* nsswrapper: implement group_del() in nss_wrapper.pl.Günther Deschner2009-05-201-1/+22
| | | | Guenther
* nsswrapper: implement group_add() in nss_wrapper.pl.Günther Deschner2009-05-201-4/+105
| | | | Guenther
* Set errno=ENOMEM if tevent_add_fd failsVolker Lendecke2009-05-191-0/+4
| | | | | | | tevent_add_fd does not properly set that. At least in epoll and select this is the only error condition. Metze, please check!
* Simplify the logic of tsocket_bsd_pendingVolker Lendecke2009-05-191-24/+26
| | | | | | Remove two indentation levels by returning early on error. Metze, please check!
* tevent/python: Makefile was still trying to build some non AC_SUBST python ↵Jelmer Vernooij2009-05-191-7/+1
| | | | | targets Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
* tevent: Define TALLOC_FREE() if it's not defined yet, to allow buildingJelmer Vernooij2009-05-161-0/+6
| | | | with released versions of talloc.
* tevent: Remove python module.Jelmer Vernooij2009-05-166-219/+0
| | | | | | | | | This module didn't have any functionality that we actually used yet, and it was quite small. Tevent is quite low level and perhaps doesn't make much sense to expose directly as a Python module. It was also causing build problems when used with a system-tevent. We can always back later if necessary.
* tevent: Install tevent_internal.h in the standalone build.Jelmer Vernooij2009-05-162-1/+4
| | | | | This is not ideal, but at least it fixes the build of samba-gtk for now. I've also added a warning about API guarantees at the top of the header.
* Fix linker flags on non-Linux GNU platforms.Samuel Thibault2009-05-161-5/+5
| | | | | | (e.g. Debian GNU/kFreeBSD) Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Update copies of config.guess and config.sub.Jelmer Vernooij2009-05-168-304/+1128
|
* tevent: Don't install headers, since we don't install a shared libJelmer Vernooij2009-05-161-5/+0
| | | | either (from Samba).
* Add extensive tests for str_list function behaviourAndrew Bartlett2009-05-151-15/+343
|
* Remove two unused variablesVolker Lendecke2009-05-141-2/+0
|
* Add new functions and tests: str_list_make_empty(), str_list_make_single()Andrew Bartlett2009-05-143-0/+85
|
* 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
* Make the thread functions a bit easier to useDerrell Lipman2009-05-133-8/+12
| | | | | | | | | | | - Create separate macros for lock and unlock so that it's easier to identify which request is being made. - Initialize *ponce in the SMB_THREAD_ONCE macro in the non-thread-safe case, rather than requiring each init function to determine if it's in the non-thread-safe case and manually initialize. Derrell
* Allow a parameter to smb_thread_once's initialization functionDerrell Lipman2009-05-134-15/+28
| | | | | | | | | | | | - 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
* Fix broken smb_thread_once function (again)Derrell Lipman2009-05-121-0/+3
| | | | | | | | - It would help if smb_thread_once did, eventually, set the variable that prevents the init function from being run again. Sigh. It must be getting late. Derrell
* Fix broken smb_thread_once functionDerrell Lipman2009-05-121-19/+3
| | | | | | | | | | | | | | - We can't set *ponce=true before running the function because although other threads wouldn't re-run the initialization function, they could potentially proceed beyond the initialization point while the first thread was still running the initialization function. If a second thread gets to an SMB_THREAD_ONCE() call while one with the same ponce is running, we need to ensure that it enters smb_thread_once() to await the mutex and then recheck whether *ponce is set or not. My original comment about other "once" functions possibly being called from within this "once" function is irrelevant since those other ones would have their own unique ponce. Derrell
* Fix definition of smb_thread_once - must return int not void asJeremy Allison2009-05-112-2/+5
| | | | | it's used in a ? : comparison macro. Jeremy.
* Ensure documentation matches the tdb_util function usage.Jeremy Allison2009-05-111-2/+2
| | | | Jeremy.
* Use bool instead of int for a boolean variableDerrell Lipman2009-05-101-1/+1
|
* Optimize smb_thread_once usage by not calling it if known already calledDerrell Lipman2009-05-101-2/+6
| | | | | | | - The macro SMB_THREAD_ONCE now tests whether the "once" variable is already set, and if so avoids calling smb_thread_once(). Derrell
* Panic upon mutex lock or unlock failureDerrell Lipman2009-05-101-2/+2
| | | | | | | - It's a serious error if we can't lock or unlock a mutex in smb_thread_once(). Panic instead of just displaying a DEBUG message. Derrell
* Don't require external use of internal enum smb_thread_lock_typeDerrell Lipman2009-05-101-3/+4
| | | | | | | | | | - Internally, when locking or unlocking a mutex, we'll pass one of the values of enum smb_thread_lock_type. That enum is not available to users providing a thread implementation. Externally, we'll document the integer values which will be passed to their lock_mutex function, but not require them to access our internal header file. Derrell
* Replace external thread "once" with an internal implementationDerrell Lipman2009-05-103-22/+66
| | | | | | | | | | | | | | | | | | | | | Jeremy, please check... - I'm in the process of providing an interface in libsmbclient to the recently-added threading capabilities. In the process, I discovered that different thread implementations have varying types for the variable passed to the thread_impl_once() function. pthreads, for example, uses type pthread_once_t. Since Samba needs to internally declare these variables, it would need to know the exact type required by each thread implementation's function. After considering multiple methods of obtaining an appropriately sized variable, I decided that for the basic "once" functionality required by Samba, it would be much simpler to just implement our own "once" functionality. We don't require cancellation points et all. This commit adds an smb_thread_once() function that is implemented using an internal mutex. The mutex itself uses the implementation's create_mutex function. This eliminates the need for the user to provide a smb_thread_once function pointer and the entire issue of that function's first parameter. Derrell
* tevent: fix typo async_req_done() => tevent_req_done()Stefan Metzmacher2009-05-071-1/+1
| | | | metze
* Avoid --nonet when building manpages; xsltproc will already prefer localJelmer Vernooij2009-05-061-2/+2
| | | | stylesheets if they are installed.
* Update tdb and talloc web pagesSimo Sorce2009-05-052-9/+20
|
* Add release scripts for talloc and tdbSimo Sorce2009-05-052-0/+90
|
* Clean up after Tridge's util_strlist changesVolker Lendecke2009-05-032-25/+30
|
* Attempt to the build on NetBSD5 and a few othersVolker Lendecke2009-05-011-0/+3
|
* tsocket: add tstream_readv_pdu_queue_send/recv()Stefan Metzmacher2009-05-012-0/+132
| | | | metze
* tsocket: add tstream_writev_queue_send/recv()Stefan Metzmacher2009-05-012-0/+132
| | | | metze
* tsocket: add tstream_readv_pdu_send/recv()Stefan Metzmacher2009-05-012-1/+178
| | | | metze
* tsocket: add tstream implementation for bsd sockets (inet and unix)Stefan Metzmacher2009-05-012-0/+943
| | | | metze
* tsocket: add tstream_context infrastructure similar to tdgram_contextStefan Metzmacher2009-05-013-0/+445
| | | | metze
* tsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket()Stefan Metzmacher2009-05-012-12/+12
| | | | metze
* tsocket: move tsocket_simple_int_recv() to tsocket.cStefan Metzmacher2009-05-012-31/+28
| | | | metze
* tsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.cStefan Metzmacher2009-05-012-130/+131
| | | | metze