summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* pm_process():raise level of debug messageMichael Adam2009-04-281-1/+1
| | | | | | Michael (cherry picked from commit 664da577f931dfd47573d3d77a95afb573fba855) (cherry picked from commit caa1f05420191d934c2ea1c2acaa75702c8e5c2e)
* socket_wrapper: fix the build on systems without ipv6 supportStefan Metzmacher2009-04-151-0/+2
| | | | | | metze (cherry picked from commit 74707e8e8e1be2cbaa71fb0442957be2e663cbde) (cherry picked from commit b5faa34596eed3ada7f45db991ef0beb0391ce82)
* socket_wrapper: fix crash bug in swrap_readv/writevStefan Metzmacher2009-04-151-4/+10
| | | | | | metze (cherry picked from commit f20f5ae8e6b9ca5c90441a3083f6904168388fdf) (cherry picked from commit 44576254f8c0d35327cfe8f9928f0efc987b5822)
* s3/popt.h: Fix typo.Karolin Seeger2009-04-151-1/+1
| | | | | | Karolin (cherry picked from commit 8da2fa36b4f4241d7d4cdbe254a2374dd373fe40) (cherry picked from commit ecaca646f91750bc0a9a6f58ff1589197585ebdc)
* Use recv instead of read in read_packet_handlerVolker Lendecke2009-04-151-1/+2
| | | | | This way the socket wrapper pcap file also sees the replies :-) (cherry picked from commit 96943dd9ce1b1c954bffd498989283a500b4ee9d)
* libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGSMichael Adam2009-04-151-2/+2
| | | | | | | | | | | This fixes Samba3's double listing of -I options in CFLAGS, since samba3's configure wraps the call to AC_LIBREPLACE_NETWORK_CHECKS into a SAVE_CPPFLAGS="${CPPFLAGS}" .. CPPFLAGS="${SAVE_CPPFLAGS}" sequence... :-) Michael (cherry picked from commit 33d9f46674a270a0715213c17581deef192826e1) (cherry picked from commit cf43aadee5cd70597d5dc6750bff4486ed768204)
* talloc_array_length: talloc_get_size deals fine with NULLVolker Lendecke2009-04-151-1/+1
| | | | (cherry picked from commit 89cb10430c30c9e59a5305210b7f09346b360c42)
* tevent: change version to 0.9.5 after the ABI has changedStefan Metzmacher2009-04-151-1/+1
| | | | | | metze (cherry picked from commit 7d07266ca26f7069269601043b713a91f1a4693c) (cherry picked from commit c0a0f504e1477648542aae27b8a58d4db4867d84)
* tevent: store the location where a request was finishedStefan Metzmacher2009-04-153-19/+48
| | | | | | | | | | | This is very useful to find bugs. You can use 'p *req' in gdb to show where tevent_req_done(), tevent_req_error() or tevent_req_nomem() was called. metze (cherry picked from commit 9eaf53d98eced9ea70f411b9936b475c42e4d490) (cherry picked from commit 8053941b377d3fd2e58e67f68eecb2551be49c10)
* tevent: use an immediate event as trigger for tevent_queueStefan Metzmacher2009-04-152-42/+60
| | | | | | metze (cherry picked from commit 3a831e46204979550dc6ee7652cea6b8296f10c1) (cherry picked from commit 7fcb16a79681a24ca3b96ec73bc44b43e57c3c8f)
* tevent: use an immediate event fot tevent_req_post()Stefan Metzmacher2009-04-152-19/+13
| | | | | | | | Now tevent_req_post() never fails metze (cherry picked from commit 4bdf299385220988a4fe16f82aab528283204c7f) (cherry picked from commit d88a254c5d2fbdda642d469924411d4d6d5f8422)
* tevent: use TALLOC_FREE() in tevent_req.cStefan Metzmacher2009-04-151-9/+5
| | | | | | metze (cherry picked from commit a78cd2a24b818bc7d843a8e56ffaafc9f6578662) (cherry picked from commit 54af7b9da45dcef881d9fee7c414d363ca6cdab4)
* tevent: add support for immediate eventsStefan Metzmacher2009-04-158-34/+295
| | | | | | | | | | They're like directly triggered timed events, but you can preallocated them and scheduling them will not fail. metze (cherry picked from commit 66886f8966dff8a980a5b9d2daa3fbb20fe5ca8e) (cherry picked from commit de7125980d237e9a8aa126f155bbc84c96bad37e)
* tevent: add tevent_common_loop_wait() helper function and use itStefan Metzmacher2009-04-155-55/+33
| | | | | | | | | tevent_loop_wait should do the same for all backends. It should loop as long as we have pending events. metze (cherry picked from commit 940e61846e97ba62153d5b977b0823f196607743) (cherry picked from commit c742112da583809f47e40f2e4b48713d2e81edda)
* tevent: check signal events first in event_loop_onceStefan Metzmacher2009-04-153-0/+15
| | | | | | | | | We also check for signal events directly before and after the select/epoll calls. metze (cherry picked from commit 0139befb915006d6ec9fec2734057c5c50b3c383) (cherry picked from commit c0bc27fc57260191e35464b63e114163d291d4da)
* tevent: let tevent_loop_once() just run one fd eventStefan Metzmacher2009-04-153-45/+7
| | | | | | | | | | | | This makes the logic much simpler for the callers, and matches the samba3 behavior. If needed we can add performance tunning for tevent_loop_wait() later. metze (cherry picked from commit 3af7db3dce0e5529114f6969e9905c6d4c65dfe8) (cherry picked from commit 1eb7ad106499865713c28847f491aae10f37beb7)
* tevent: change version to 0.9.4 as the ABI has changedStefan Metzmacher2009-04-151-1/+1
| | | | | | metze (cherry picked from commit 868f3f5f32eccdf68590cdfc5c42e1af970410d7) (cherry picked from commit 868cc328b189144c49901692206534c9b2729fbd)
* build: fix detection of netinet/ip.h on FreeBSDTimur2009-04-151-0/+1
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit a3d04991ef409591a7c8b9fbb01e024bd5aaa041) (cherry picked from commit 28f233ddc010893f50b45f91ce41deaa537f11d7)
* build: format the header check for netinet/ip.h more nicelyTimur2009-04-151-6/+8
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit e8aa7169a6672bd32af6c5580f6e8ec7e99511bc) (cherry picked from commit 46559e7b84d70f7c9e52673365303d0f7863d839)
* Remove some transitional code in writev_sendVolker Lendecke2009-04-151-17/+1
| | | | (cherry picked from commit fc0dfba28f3c6e22b1d4bb19577e735c3db16f1e)
* Remove some unused code from async_req.[ch]Volker Lendecke2009-04-152-51/+0
| | | | (cherry picked from commit 157f0dc5e1385f019a159e996b3a7b5875361101)
* talloc: change version to 1.3.0Stefan Metzmacher2009-04-151-1/+1
| | | | | | metze (cherry picked from commit 752cf03bf7854a4b32b0e1fedc1cb4ecd4474765) (cherry picked from commit ae4bd4116c9c2e85d02f0475aa3a9a4b6d3afc18)
* talloc: add useful talloc_array_length() macroStefan Metzmacher2009-04-151-0/+1
| | | | | | metze (cherry picked from commit 6d4a13241a096d30d37d69a8f7b888a395716316) (cherry picked from commit 759ee49cd9c82ed00ebb0907c7b97e557f032a9c)
* talloc: add TALLOC_FREE()Stefan Metzmacher2009-04-151-0/+2
| | | | | metze (cherry picked from commit c6206e35701a45c0db801593bce4423a0036c82d)
* lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() ↵Stefan Metzmacher2009-04-151-1/+1
| | | | | | | | are available metze (cherry picked from commit 099d6f05cdb0800114d026786920a17ef649699f) (cherry picked from commit 5587e0d17aa5fe56337fbede9e3db11fe2b24c88)
* tevent: Fix might be unitialized warningTim Prouty2009-03-121-1/+1
|
* tevent: add tevent_loop_until()Stefan Metzmacher2009-03-122-0/+68
| | | | | | | This is only a hack for samba4 and should not be used in new code. metze
* tevent: add tevent_loop_set_nesting_hook()Stefan Metzmacher2009-03-123-1/+50
| | | | | | | This is an ugly hack to let the s4 server work arround some bugs related to nested events and uid changing. metze
* tevent: don't allow nested tevent_loop_once() anymoreStefan Metzmacher2009-03-123-1/+53
| | | | | | | Incompatible caller should use tevent_loop_allow_nesting() function. metze
* tevent: pass __location__ to tevent_loop_once/wait()Stefan Metzmacher2009-03-126-17/+22
| | | | metze
* tevent: add tevent_set_abort_fn()Stefan Metzmacher2009-03-122-0/+21
| | | | metze
* tevent: add tevent_signal_support()Stefan Metzmacher2009-03-122-0/+10
| | | | | | Not every tevent backend supports signal events. metze
* talloc: add talloc_set_abort_fn()Stefan Metzmacher2009-03-122-4/+33
| | | | metze
* async_sock: fix truncating of the temporary iovec in writev_send/recv()Stefan Metzmacher2009-03-111-1/+1
| | | | | | Volker: please check! metze
* lib/replace: make sure we include <sys/uio.h> before socket_wrapper.hStefan Metzmacher2009-03-112-0/+5
| | | | | | This should fix the build on some hosts. metze
* tevent: add tevent_req_callback_data_void() macroStefan Metzmacher2009-03-101-0/+2
| | | | | | | Callers can use it instead of tevent_req_callback_data() if they use a non talloc private pointer. metze
* tevent: add tevent_req_received() functionStefan Metzmacher2009-03-103-2/+29
| | | | | | | This function can be called as last action of a _recv() function, it destroys the data attached to the tevent_req. metze
* socket_wrapper: wrap readv() and writev()Stefan Metzmacher2009-03-102-7/+137
| | | | metze
* Fix prototype mismatch.Jelmer Vernooij2009-03-091-1/+1
|
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2009-03-093-17/+93
|\
| * socket_wrapper: try to make ipv6 support more portableStefan Metzmacher2009-03-091-9/+22
| | | | | | | | | | | | The internal structure of in6_addr isn't always the same. metze
| * socket_wrapper: downgrade ipv6 sockets to ipv4 is in connect() if the dest ↵Stefan Metzmacher2009-03-081-5/+13
| | | | | | | | | | | | | | | | is ipv4 We only do this if the socket isn't explicit bound yet. metze
| * socket_wrapper: correctly handle connected dgram socketsStefan Metzmacher2009-03-081-0/+26
| | | | | | | | metze
| * socket_wrapper: make it possible to bind to '::'Stefan Metzmacher2009-03-081-1/+3
| | | | | | | | metze
| * Add "queue" to writev_sendVolker Lendecke2009-03-082-3/+30
| | | | | | | | | | Unless higher levels queue themselves somehow, writev will *always* be queued. So the queueing should be done at the right level.
* | Revert accidental reintroduction of void ** bug.Jelmer Vernooij2009-03-082-5/+7
|/
* Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-develAndrew Bartlett2009-03-052-28/+4
|\
| * s3:smbconf: move smbconf_share_exists checks into backendMichael Adam2009-03-041-24/+0
| | | | | | | | Michael
| * socket wrapper: Fix 'might be used uninitialized' warningTim Prouty2009-03-041-4/+4
| |
* | Update talloc version so we don't fail on system talloc 1.2.0Andrew Bartlett2009-03-051-1/+1
|/ | | | | | | | The problem is that talloc in the Samba tree now includes talloc_get_type_abort(), which is not present on Fedora 10 or ubuntu's talloc 1.2.0. Andrew Bartlett