summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* tsocket: tdgram move input checks to the common code as there're needed for ↵Stefan Metzmacher2009-05-012-24/+69
| | | | | | | | | all backends We need to make sure that we free the sendto and recvfrom requests before the tdgram_context metze
* tsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un)Stefan Metzmacher2009-05-011-2/+22
| | | | | | sizeof(struct sockaddr_storage) generates EINVAL. metze
* tsocket: return EINVAL when tdgram_sendto_send() is used with len == 0Stefan Metzmacher2009-05-011-0/+5
| | | | metze
* tsocket: fix dependeciesStefan Metzmacher2009-05-011-1/+2
| | | | metze
* tsocket: remove tsocket_context related stuffStefan Metzmacher2009-05-019-1807/+17
| | | | | | It will be replaced by tdgram_context and tstream_context. metze
* Fix a missing prototype warningVolker Lendecke2009-04-282-0/+3
|
* pm_process():raise level of debug messageMichael Adam2009-04-281-1/+1
| | | | Michael
* Fix push_codepoint function without iconv_convenience.Jelmer Vernooij2009-04-231-1/+1
|
* Add a new non-convenience version of push_codepoint.Jelmer Vernooij2009-04-234-7/+15
|
* Prevent reallocs of the talloc pool itselfSimo Sorce2009-04-221-0/+5
|
* Avoid using deprecated form of AC_CHECK_TYPE.Brad Hards2009-04-222-3/+13
| | | | | | | | | | libreplace makes use of an older form of AC_CHECK_TYPE which basically provides a fallback definition for the type if it isn't available. http://www.gnu.org/software/hello/manual/autoconf/Obsolete-Macros.html#Obsolete-Macros shows why this isn't a good idea (its not so important, except for pointer types). This patch partly addresses the issue. Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Error out at runtime when seteuid/setresuid or setegid/setresgid are notJelmer Vernooij2009-04-201-2/+4
| | | | | | available. This means it's possible to compile libreplace when these functions are not available and use it, as long as this particular function is not used.
* Only define waitpid replacement if wait4 is available. (It isn't onJelmer Vernooij2009-04-203-2/+6
| | | | Windows.)
* Cope with the fact that only _mkdir() exists on Windows and that itJelmer Vernooij2009-04-203-0/+12
| | | | doesn't take a mode argument.
* Move check for syslog out of libreplace to source3/ and source4/.Jelmer Vernooij2009-04-202-1/+3
| | | | This should help compiling talloc on Windows.
* Ensure we have all the definitions needed in both threaded and non-threaded ↵Jeremy Allison2009-04-201-9/+4
| | | | | | versions. Jeremy.
* Attempt to fix build farm on platforms where pthread_once_t is a struct.Jeremy Allison2009-04-202-3/+6
| | | | Jeremy.
* Fix the pthread_once initialization issue. Make talloc_stackframe useJeremy Allison2009-04-204-38/+85
| | | | | this. Jeremy.
* tsocket: fix the build without ipv6 supportStefan Metzmacher2009-04-161-0/+2
| | | | metze
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-151-1/+1
| | | | | | | What a difference a name makes... :-). Just because something is missnamed SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN, don't automatically use it for a security check in _samr_OpenDomain(). Jeremy.
* Ensure a tls key is only generated once - wrap create & destroy in a mutex.Jeremy Allison2009-04-144-40/+71
| | | | | | 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-144-25/+93
| | | | | check. Passes make test and basic valgrind testing. Jeremy.
* socket_wrapper: fix the build on systems without ipv6 supportStefan Metzmacher2009-04-141-0/+2
| | | | metze
* socket_wrapper: fix crash bug in swrap_readv/writevStefan Metzmacher2009-04-101-4/+10
| | | | metze
* Merge branch 'wspp-schema'Andrew Tridgell2009-04-092-6/+173
|\
| * added _const versions of some of the str_list_*() functionsAndrew Tridgell2009-04-092-0/+84
| | | | | | | | | | | | These const versions don't copy the strings themselves, which is useful when those strings point at known constant data (into the schema in this case)
| * added str_list_unique() and str_list_show()Andrew Tridgell2009-04-092-36/+62
| | | | | | | | | | I also undid some of the const changes from Andrew, as they didn't in fact resolve the const warnings.
| * Rework util_strlist prototypes to use a bit more and less constAndrew Bartlett2009-04-082-9/+43
| | | | | | | | | | | | Hopefully this produces less warnings, but it might produce more... Andrew Bartlett
| * added a str_list_append() functionAndrew Tridgell2009-04-071-0/+23
| |
* | Add the thread functions to top level lib/util.Jeremy Allison2009-04-083-0/+277
| | | | | | | | | | Not yet used, that's the next step. Jeremy.
* | Remove async_reqVolker Lendecke2009-04-087-614/+1
| |
* | s3/popt.h: Fix typo.Karolin Seeger2009-04-071-1/+1
| | | | | | | | Karolin
* | tsocket: reduce size of dummy variableStefan Metzmacher2009-04-061-1/+1
| | | | | | | | metze
* | tsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv()Stefan Metzmacher2009-04-061-8/+2
| | | | | | | | metze
* | Use recv instead of read in read_packet_handlerVolker Lendecke2009-04-051-1/+2
|/ | | | This way the socket wrapper pcap file also sees the replies :-)