summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-01-09s3:events: debug sys_select() errorsStefan Metzmacher1-0/+3
metze
2009-01-09s3:events: install a tevent debug handler that calls DEBUG()Stefan Metzmacher1-1/+42
metze
2009-01-08Fix race condition in alarm lock processing noticed by Richard Sharpe ↵Jeremy Allison1-1/+1
<realrichardsharpe@gmail.com>. "It seems to me that if the lock is already held by another process when we enter this code, there is a race between the timeout and the granting. If the lock is subsequently granted, the process releasing the lock will signal the wait variable (or whatever) and our process will be scheduled. However, if the timeout occurs before we are scheduled, the timeout will be delivered first. We will have the lock but will forget we have the lock, and never release it." Jeremy.
2009-01-07Several fixes to our use of spliceVolker Lendecke1-4/+6
The splice manpage explicitly requires loff_t as offset. Copy "offset" there. Probably not required, but I wanted to make sure it's as required. Splice blocks with large buffers. For me it worked with 16k and blocked with 32k and beyond. It would be nice to see a clarification in the manpage of splice for this behaviour. Splice if used with an offset increments the offset. From the manpage this was at least not entirely obvious :-) I haven't yet activated this (try_splice_call ist still false by default), it needs more testing. Volker
2009-01-06s3-samr: avoid all init_samr_user* functions.Günther Deschner1-29/+35
Guenther
2009-01-05s3:events: use more tevent_common_* functionsStefan Metzmacher1-158/+6
metze
2009-01-05Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij5-201/+186
2009-01-05s3:events: register as tevent backendStefan Metzmacher1-137/+172
metze
2009-01-05s3:events: get rid of the stupid set_event_dispatch_time() functionStefan Metzmacher1-16/+0
metze
2009-01-05s3:events: get rid of the stupid cancel_named_event() functionStefan Metzmacher1-16/+0
metze
2009-01-05s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher4-19/+17
metze
2009-01-05s3:events: remove unused stuffStefan Metzmacher1-25/+0
metze
2009-01-05clean event context after child is forked.Bo Yang2-0/+9
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-01-04Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij10-226/+1925
2009-01-04Remove a duplicated commentVolker Lendecke1-4/+0
2009-01-04Add open_socket_out_defer_send/recvVolker Lendecke1-0/+111
2009-01-04Async wrapper for open_socket_out_send/recvVolker Lendecke1-56/+168
2009-01-04async libwbclient infrastructureVolker Lendecke1-0/+774
2009-01-04Remove wb_trans_send/recvVolker Lendecke1-143/+0
2009-01-04Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.cVolker Lendecke1-0/+685
2009-01-04Convert async_connect to "normal" styleVolker Lendecke1-101/+113
2009-01-04Actually do a non-blocking connect.... :-)Volker Lendecke1-1/+1
2009-01-04Add an async queueing mechanismVolker Lendecke1-0/+78
2009-01-04Add async timeout helpersVolker Lendecke1-0/+42
2009-01-03open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke1-9/+3
2009-01-03Fix retval of async_syscall_result_intVolker Lendecke1-1/+1
2009-01-03struct async_req doesn't really need to carry an event_contextVolker Lendecke2-9/+10
2009-01-02Replace some SMB_ASSERTs with NT_STATUS_INTERNAL_ERRORVolker Lendecke1-7/+28
2009-01-02Optimize for the common case that packet.c received exactly one full packetVolker Lendecke1-8/+14
2009-01-02packet.h API: The callback is now responsible to talloc_free() "buf"Volker Lendecke2-35/+46
2009-01-01Fix bug 5913.Volker Lendecke1-1/+1
Never seen this to be a problem, but it doesn't hurt either :-)
2009-01-01Remove two pointless globalsVolker Lendecke2-13/+12
2009-01-01Add iconv_convenience argument to size functions.Jelmer Vernooij4-8/+8
2008-12-31Fix all warnings in source3 with gcc4.3.Jeremy Allison1-4/+30
Jeremy.
2008-12-31Disable the use of splice(2)Volker Lendecke1-1/+1
On a debian lenny installation with a kernel that calls itself 2.6.28, I could repeatably block smbd using splice. According to the output of netstat, the recvq of the TCP connection was full and at the same time according to strace smbd was stuck in a splice syscall trying to read from that TCP connection. We can not protect ourselves from this condition, as nobody will ever notify us that something is broken. So sadly we can't use splice yet at all. Maybe in 2.6.29...
2008-12-31Try to fix recvfile using splice on LinuxVolker Lendecke1-21/+36
According to the splice(2) manpage, one of the file descriptors *must* be a pipe. With this patch I could successfully run splice(2) on a debian lenny installation. Jeremy, please check!
2008-12-31Rename parent_dirname_talloc() to parent_dirname()Volker Lendecke1-2/+2
2008-12-31Remove unused function parent_dirnameVolker Lendecke1-13/+0
2008-12-31Make use of TALLOC_MEMDUP in parent_dirname_talloc()Volker Lendecke1-2/+1
2008-12-31Remove unused function get_numlist()Volker Lendecke1-51/+0
2008-12-30s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADDStefan Metzmacher1-7/+19
This means we correctly pass IPv6 addresses too. (CTDB_CONTROL_TCP_CLIENT was IPv4 only) metze
2008-12-29Add code to test write_data_iov a bitVolker Lendecke1-0/+11
2008-12-29Make write_data use write_data_iovVolker Lendecke1-24/+24
2008-12-29Add write_data_iovVolker Lendecke1-0/+69
2008-12-29Add sys_writevVolker Lendecke1-0/+14
2008-12-29s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()Stefan Metzmacher1-2/+2
All callers expect 0 an success and -1 on error. metze
2008-12-28Make sure share_info.tdb is open before attempting to delete an entrySteven Danneman1-2/+6
2008-12-23Fix use of "time offset" parameter, and add test to make sure I don't break ↵Jelmer Vernooij1-2/+0
it again :-)
2008-12-19Move some bytes from data to text, make use of the ARRAY_SIZE macroVolker Lendecke1-2/+2
Probably pointless, but it doesn't add complexity and it is fun to see bss and data shrink :-)
2008-12-15s3: Use DEBUGADD instead of DEBUG to avoid printing the headerDan Sledz1-2/+3