summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-05-01Attempt to the build on NetBSD5 and a few othersVolker Lendecke1-0/+3
2009-05-01tsocket: add tstream_readv_pdu_queue_send/recv()Stefan Metzmacher2-0/+132
metze
2009-05-01tsocket: add tstream_writev_queue_send/recv()Stefan Metzmacher2-0/+132
metze
2009-05-01tsocket: add tstream_readv_pdu_send/recv()Stefan Metzmacher2-1/+178
metze
2009-05-01tsocket: add tstream implementation for bsd sockets (inet and unix)Stefan Metzmacher2-0/+943
metze
2009-05-01tsocket: add tstream_context infrastructure similar to tdgram_contextStefan Metzmacher3-0/+445
metze
2009-05-01tsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket()Stefan Metzmacher2-12/+12
metze
2009-05-01tsocket: move tsocket_simple_int_recv() to tsocket.cStefan Metzmacher2-31/+28
metze
2009-05-01tsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.cStefan Metzmacher2-130/+131
metze
2009-05-01tsocket: tdgram move input checks to the common code as there're needed for ↵Stefan Metzmacher2-24/+69
all backends We need to make sure that we free the sendto and recvfrom requests before the tdgram_context metze
2009-05-01tsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un)Stefan Metzmacher1-2/+22
sizeof(struct sockaddr_storage) generates EINVAL. metze
2009-05-01tsocket: return EINVAL when tdgram_sendto_send() is used with len == 0Stefan Metzmacher1-0/+5
metze
2009-05-01tsocket: fix dependeciesStefan Metzmacher1-1/+2
metze
2009-05-01tsocket: remove tsocket_context related stuffStefan Metzmacher9-1807/+17
It will be replaced by tdgram_context and tstream_context. metze
2009-04-28Fix a missing prototype warningVolker Lendecke2-0/+3
2009-04-28pm_process():raise level of debug messageMichael Adam1-1/+1
Michael
2009-04-23Fix push_codepoint function without iconv_convenience.Jelmer Vernooij1-1/+1
2009-04-23Add a new non-convenience version of push_codepoint.Jelmer Vernooij4-7/+15
2009-04-22Prevent reallocs of the talloc pool itselfSimo Sorce1-0/+5
2009-04-22Avoid using deprecated form of AC_CHECK_TYPE.Brad Hards2-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>
2009-04-20Error out at runtime when seteuid/setresuid or setegid/setresgid are notJelmer Vernooij1-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.
2009-04-20Only define waitpid replacement if wait4 is available. (It isn't onJelmer Vernooij3-2/+6
Windows.)
2009-04-20Cope with the fact that only _mkdir() exists on Windows and that itJelmer Vernooij3-0/+12
doesn't take a mode argument.
2009-04-20Move check for syslog out of libreplace to source3/ and source4/.Jelmer Vernooij2-1/+3
This should help compiling talloc on Windows.
2009-04-20Ensure we have all the definitions needed in both threaded and non-threaded ↵Jeremy Allison1-9/+4
versions. Jeremy.
2009-04-20Attempt to fix build farm on platforms where pthread_once_t is a struct.Jeremy Allison2-3/+6
Jeremy.
2009-04-20Fix the pthread_once initialization issue. Make talloc_stackframe useJeremy Allison4-38/+85
this. Jeremy.
2009-04-16tsocket: fix the build without ipv6 supportStefan Metzmacher1-0/+2
metze
2009-04-15Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison1-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.
2009-04-14Ensure a tls key is only generated once - wrap create & destroy in a mutex.Jeremy Allison4-40/+71
Change the function names to add _once to the tls_create & tls_destroy to make this obvious. Jeremy.
2009-04-14Make talloc_stack threadsafe using TLS. Volker pleaseJeremy Allison4-25/+93
check. Passes make test and basic valgrind testing. Jeremy.
2009-04-14socket_wrapper: fix the build on systems without ipv6 supportStefan Metzmacher1-0/+2
metze
2009-04-10socket_wrapper: fix crash bug in swrap_readv/writevStefan Metzmacher1-4/+10
metze
2009-04-09Merge branch 'wspp-schema'Andrew Tridgell2-6/+173
2009-04-09added _const versions of some of the str_list_*() functionsAndrew Tridgell2-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)
2009-04-09added str_list_unique() and str_list_show()Andrew Tridgell2-36/+62
I also undid some of the const changes from Andrew, as they didn't in fact resolve the const warnings.
2009-04-08Add the thread functions to top level lib/util.Jeremy Allison3-0/+277
Not yet used, that's the next step. Jeremy.
2009-04-08Remove async_reqVolker Lendecke7-614/+1
2009-04-08Rework util_strlist prototypes to use a bit more and less constAndrew Bartlett2-9/+43
Hopefully this produces less warnings, but it might produce more... Andrew Bartlett
2009-04-07s3/popt.h: Fix typo.Karolin Seeger1-1/+1
Karolin
2009-04-07added a str_list_append() functionAndrew Tridgell1-0/+23
2009-04-06tsocket: reduce size of dummy variableStefan Metzmacher1-1/+1
metze
2009-04-06tsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv()Stefan Metzmacher1-8/+2
metze
2009-04-05Use recv instead of read in read_packet_handlerVolker Lendecke1-1/+2
This way the socket wrapper pcap file also sees the replies :-)
2009-04-02tsocket: remove DGRAM support from tsocket_contextStefan Metzmacher7-564/+0
metze
2009-04-02tsocket: optimize tdgram_bsd a lotStefan Metzmacher1-27/+54
The desire is to do as less syscalls during the tdgram_sendto_send/recv() and tdgram_recvfrom_send/recv() operations. 1. we first try the sendto()/recvfrom() syscall and only use a fd event if we got EAGAIN. 2. we cache the fd event and only change it's flags if really needed. For the highload case we do almost no epoll_ctl() and epoll_wait()/select() syscalls anymore. This speeds up the LDAP-BENCH-CLDAP test by more than 20%. (With a modified version of this test which let the server skip any ldb calls and just return success I'm getting about 8000 requests per second, while I'm getting just about 6000 requests per second without optimization) metze
2009-04-02tsocket: add tdgram_sendto_queue_send/recv()Stefan Metzmacher2-0/+143
metze
2009-04-02tsocket: split out a smaller tdgram_context abstractionStefan Metzmacher4-0/+1192
The idea is to have a tdgram and a tstream abstraction which only provide tevent_req based io functions. metze
2009-04-01lib/util: fallback to any id in idr_get_new_random()Stefan Metzmacher1-2/+6
metze
2009-03-31tdb: Remove unused variableTim Prouty1-1/+0