Volker Lendecke
c086c26ffb
Revert "Document talloc_parent, talloc_parent_name and talloc_is_parent"
...
This reverts commit 986c2e01cc
.
2009-03-22 09:47:44 +01:00
Volker Lendecke
257ea7e6f1
Revert "Document talloc_zero_array()"
...
This reverts commit 59dff57455
.
2009-03-22 09:47:37 +01:00
Volker Lendecke
59dff57455
Document talloc_zero_array()
2009-03-21 23:57:24 +01:00
Volker Lendecke
986c2e01cc
Document talloc_parent, talloc_parent_name and talloc_is_parent
2009-03-21 23:50:33 +01:00
Volker Lendecke
3f81649b8d
Document TALLOC_FREE()
2009-03-21 20:04:17 +01:00
Volker Lendecke
2ce70d4f5a
Document _talloc
2009-03-21 20:04:17 +01:00
Volker Lendecke
02662d56c6
Add a talloc_internal "module"
2009-03-21 20:04:17 +01:00
Volker Lendecke
27944ed745
Document talloc_pool()
2009-03-21 19:49:40 +01:00
Volker Lendecke
db447d0c47
Reformatting
2009-03-21 19:02:02 +01:00
Volker Lendecke
cfce2d3611
Add some initial hook to the front page
2009-03-21 19:02:02 +01:00
Volker Lendecke
ba42320c7e
Add a default "undocumented" module
2009-03-21 19:02:02 +01:00
Volker Lendecke
3f9c30022a
Delete talloc_guide.txt
2009-03-21 19:02:02 +01:00
Volker Lendecke
d21212c919
Convert the contents of talloc_guide.txt to doxygen-style talloc.h comments
...
talloc_guide.txt was partly outdated, and as going through talloc.h now shows
it was incomplete.
2009-03-21 19:02:01 +01:00
Volker Lendecke
f55e84e904
Add a basic Doxyfile for talloc
2009-03-21 19:02:01 +01:00
Stefan Metzmacher
66dc53ee01
socket_wrapper: fix connect() for dgram sockets, if the destination isn't there yet
...
metze
2009-03-21 10:44:40 +01:00
Jelmer Vernooij
ca202cf464
Merge branch 'master' of ssh://git.samba.org/data/git/samba into displaysec
2009-03-20 16:40:09 +01:00
Stefan Metzmacher
b69e72deda
lib/util: build tevent_unix.o and tevent_ntstatus.o as UTIL_TEVENT subsystem
...
metze
2009-03-19 16:25:58 +01:00
Stefan Metzmacher
4e18c24e2e
lib/tsocket: add tsocket_guide.txt section with specific details about bsd style sockets
...
metze
2009-03-19 16:25:58 +01:00
Stefan Metzmacher
f6efec5dd4
lib/tsocket: add a fast path to tsocket_writev_send/recv()
...
This is similar to the tsocket_sendto_send/recv() fast path.
metze
2009-03-19 16:25:57 +01:00
Stefan Metzmacher
b900e92425
lib/tsocket: add a fast path to tsocket_sendto_send/recv()
...
By first trying to send data without waiting for the socket
to become writeable we gain about 10-20% performance in the
LDAP-BENCH-CLDAP test.
metze
2009-03-19 16:25:57 +01:00
Stefan Metzmacher
235a7a420b
lib/tsocket: add tsocket_guide.txt section about the async _send/recv() helper functions
...
metze
2009-03-19 16:25:56 +01:00
Stefan Metzmacher
a27c6eb8e2
lib/tsocket: add tsocket_readv_send/recv()
...
metze
2009-03-19 16:25:56 +01:00
Stefan Metzmacher
6c8bd1005d
lib/tsocket: add tsocket_writev_queue_send/recv()
...
metze
2009-03-19 16:25:55 +01:00
Stefan Metzmacher
2e44ceaea8
lib/tsocket: add tsocket_writev_send/recv()
...
metze
2009-03-19 16:25:55 +01:00
Stefan Metzmacher
a140823cc9
lib/tsocket: add tsocket_connect_send/recv()
...
metze
2009-03-19 16:25:54 +01:00
Stefan Metzmacher
4002b7bdc1
lib/tsocket: add tsocket_sendto_queue_send/recv()
...
metze
2009-03-19 16:25:54 +01:00
Stefan Metzmacher
9ed7a45c88
lib/tsocket: add tsocket_sendto_send/recv()
...
metze
2009-03-19 16:25:54 +01:00
Stefan Metzmacher
ccfd6a6e39
lib/tsocket: add tsocket_recvfrom_send/recv()
...
metze
2009-03-19 16:25:53 +01:00
Stefan Metzmacher
6c88d61bdd
lib/tsocket: add an implementation for bsd style sockets.
...
metze
2009-03-19 16:25:53 +01:00
Stefan Metzmacher
c00126e609
lib/tsocket: add a tsocket_guide.txt with a description of the design
...
metze
2009-03-19 16:25:52 +01:00
Stefan Metzmacher
d848d517b5
lib/tsocket: add some useful helper functions
...
metze
2009-03-19 16:20:22 +01:00
Stefan Metzmacher
2e0e416676
lib/tsocket: add generic socket abstraction layer
...
This will replace source4/lib/socket/.
metze
2009-03-19 15:01:12 +01:00
Stefan Metzmacher
36e7045340
tevent: fix the nesting logic
...
Only tevent_loop_once and tevent_loop_until() should care
about the nesting level.
This fixes the samba3 printing code where we use tevent_loop_wait()
and don't allow nested events.
We still call the nesting hook for all levels, we need to decide
if we really want this...
metze
2009-03-19 14:39:22 +01:00
Andrew Tridgell
13b6663e23
fixed a logic bug in the tevent nesting code
...
The event nesting code never triggered as nesting.level was never
greater than 1. The main event loop needs to increase the nesting
level by 1.
I also added a paranoia check to the nesting setup call. The API as
currently written cannot support multiple nesting hooks, so we need to
abort if multiple hooks are tried.
2009-03-19 11:21:36 +11:00
Timur
a3d04991ef
build: fix detection of netinet/ip.h on FreeBSD
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Timur
e8aa7169a6
build: format the header check for netinet/ip.h more nicely
...
Signed-off-by: Michael Adam <obnox@samba.org>
2009-03-17 23:09:00 +01:00
Stefan Metzmacher
7d07266ca2
tevent: change version to 0.9.5 after the ABI has changed
...
metze
2009-03-17 20:19:11 +01:00
Stefan Metzmacher
9eaf53d98e
tevent: store the location where a request was finished
...
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
2009-03-17 20:17:01 +01:00
Stefan Metzmacher
3a831e4620
tevent: use an immediate event as trigger for tevent_queue
...
metze
2009-03-17 19:59:09 +01:00
Stefan Metzmacher
4bdf299385
tevent: use an immediate event fot tevent_req_post()
...
Now tevent_req_post() never fails
metze
2009-03-17 19:59:08 +01:00
Stefan Metzmacher
a78cd2a24b
tevent: use TALLOC_FREE() in tevent_req.c
...
metze
2009-03-17 19:59:08 +01:00
Stefan Metzmacher
66886f8966
tevent: add support for immediate events
...
They're like directly triggered timed events,
but you can preallocated them and scheduling them
will not fail.
metze
2009-03-17 19:59:00 +01:00
Stefan Metzmacher
940e61846e
tevent: add tevent_common_loop_wait() helper function and use it
...
tevent_loop_wait should do the same for all backends.
It should loop as long as we have pending events.
metze
2009-03-17 19:58:57 +01:00
Stefan Metzmacher
0139befb91
tevent: check signal events first in event_loop_once
...
We also check for signal events directly before and after
the select/epoll calls.
metze
2009-03-17 19:58:56 +01:00
Stefan Metzmacher
3af7db3dce
tevent: let tevent_loop_once() just run one fd event
...
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
2009-03-17 19:58:55 +01:00
Volker Lendecke
b693f7f067
Remove some transitional code in writev_send
2009-03-17 17:31:22 +01:00
Volker Lendecke
54b9ad4f1f
Remove some unused code from async_req.[ch]
2009-03-16 20:45:55 +01:00
Stefan Metzmacher
752cf03bf7
talloc: change version to 1.3.0
...
metze
2009-03-16 11:14:54 +01:00
Stefan Metzmacher
6d4a13241a
talloc: add useful talloc_array_length() macro
...
metze
2009-03-16 11:14:53 +01:00
Stefan Metzmacher
a3998832db
talloc: add TALLOC_ZERO()
...
metze
2009-03-16 11:14:53 +01:00
Stefan Metzmacher
099d6f05cd
lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are available
...
metze
2009-03-16 11:14:52 +01:00
Jelmer Vernooij
4478756571
Strip /usr/include from include flags, so we don't end up including
...
the system tevent if it's too old.
2009-03-15 18:10:20 +01:00
Jelmer Vernooij
c223beee2a
Merge branch 'tdr' of /home/jelmer/samba4
2009-03-15 14:57:58 +01:00
Jelmer Vernooij
7972d82436
Remove -L/usr/lib from a couple more make variables.
2009-03-15 00:54:55 +01:00
Jelmer Vernooij
3eede51ecb
tdr: Remove dependency on lp_* so it can be used in both Samba 3 and
...
Samba 4.
2009-03-15 00:54:29 +01:00
Jelmer Vernooij
4638633308
Move tdr to top-level.
2009-03-14 21:57:44 +01:00
Stefan Metzmacher
868f3f5f32
tevent: change version to 0.9.4 as the ABI has changed
...
metze
2009-03-13 15:49:35 +01:00
Tim Prouty
a84f939f4f
tevent: Fix might be unitialized warning
2009-03-12 12:28:13 -07:00
Stefan Metzmacher
cb388882cf
tevent: add tevent_loop_until()
...
This is only a hack for samba4 and should not be used
in new code.
metze
2009-03-12 14:21:26 +01:00
Stefan Metzmacher
7142ef49bd
tevent: add tevent_loop_set_nesting_hook()
...
This is an ugly hack to let the s4 server work arround
some bugs related to nested events and uid changing.
metze
2009-03-12 14:21:26 +01:00
Stefan Metzmacher
06f88fe7a2
tevent: don't allow nested tevent_loop_once() anymore
...
Incompatible caller should use tevent_loop_allow_nesting()
function.
metze
2009-03-12 12:14:18 +01:00
Stefan Metzmacher
9932fd2d9a
tevent: pass __location__ to tevent_loop_once/wait()
...
metze
2009-03-12 12:12:34 +01:00
Stefan Metzmacher
880d9d6d8c
tevent: add tevent_set_abort_fn()
...
metze
2009-03-12 12:04:33 +01:00
Stefan Metzmacher
43a7d48d24
tevent: add tevent_signal_support()
...
Not every tevent backend supports signal events.
metze
2009-03-12 12:04:31 +01:00
Stefan Metzmacher
7a8b97ec2b
talloc: add talloc_set_abort_fn()
...
metze
2009-03-12 12:04:31 +01:00
Stefan Metzmacher
b96aa69dff
async_sock: fix truncating of the temporary iovec in writev_send/recv()
...
Volker: please check!
metze
2009-03-11 17:33:30 +01:00
Stefan Metzmacher
082bea67af
lib/replace: make sure we include <sys/uio.h> before socket_wrapper.h
...
This should fix the build on some hosts.
metze
2009-03-11 08:08:14 +01:00
Stefan Metzmacher
825949b810
tevent: add tevent_req_callback_data_void() macro
...
Callers can use it instead of tevent_req_callback_data()
if they use a non talloc private pointer.
metze
2009-03-10 16:44:44 +01:00
Stefan Metzmacher
09d1b2324c
tevent: add tevent_req_received() function
...
This function can be called as last action of a _recv()
function, it destroys the data attached to the tevent_req.
metze
2009-03-10 16:44:44 +01:00
Stefan Metzmacher
143b222546
socket_wrapper: wrap readv() and writev()
...
metze
2009-03-10 08:15:48 +01:00
Jelmer Vernooij
218ce0e805
Fix prototype mismatch.
2009-03-09 21:49:44 +01:00
Jelmer Vernooij
3b181564c5
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2009-03-09 21:42:13 +01:00
Stefan Metzmacher
5ff4cb580f
socket_wrapper: try to make ipv6 support more portable
...
The internal structure of in6_addr isn't always the same.
metze
2009-03-09 10:21:30 +01:00
Stefan Metzmacher
3679e82434
socket_wrapper: downgrade ipv6 sockets to ipv4 is in connect() if the dest is ipv4
...
We only do this if the socket isn't explicit bound yet.
metze
2009-03-08 17:22:26 +01:00
Stefan Metzmacher
f9156f6c77
socket_wrapper: correctly handle connected dgram sockets
...
metze
2009-03-08 17:22:25 +01:00
Stefan Metzmacher
81e2633e41
socket_wrapper: make it possible to bind to '::'
...
metze
2009-03-08 15:18:05 +01:00
Volker Lendecke
fe486d7b9f
Add "queue" to writev_send
...
Unless higher levels queue themselves somehow, writev will *always* be queued.
So the queueing should be done at the right level.
2009-03-08 11:20:59 +01:00
Jelmer Vernooij
f992416e23
Revert accidental reintroduction of void ** bug.
2009-03-08 06:57:52 +01:00
Andrew Bartlett
ebe5b28353
Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-devel
2009-03-05 11:11:19 +11:00
Andrew Bartlett
92bb91a611
Update talloc version so we don't fail on system talloc 1.2.0
...
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
2009-03-05 10:46:46 +11:00
Michael Adam
9d798494a9
s3:smbconf: move smbconf_share_exists checks into backend
...
Michael
2009-03-04 22:49:24 +01:00
Tim Prouty
f9636b0c01
socket wrapper: Fix 'might be used uninitialized' warning
2009-03-04 12:59:16 -08:00
Stefan Metzmacher
27cf23958b
socket_wrapper: add multiple interface support for ipv6
...
We use FD00::5357:5FXX in the same way we use 127.0.0.XX
metze
2009-03-04 08:32:33 +01:00
Stefan Metzmacher
b99bb962aa
socket_wrapper: add ipv6 pcap support
...
metze
2009-03-04 08:32:33 +01:00
Stefan Metzmacher
8ae34cc994
socket_wrapper: pass down sockaddr instead of sockaddr_in to prepare pcap support for ipv6
...
metze
2009-03-04 08:32:32 +01:00
Stefan Metzmacher
40da086fe0
socket_wrapper: prepare pcap support for ipv6 traffic
...
metze
2009-03-04 08:32:32 +01:00
Stefan Metzmacher
c51e5a23fb
socket_wrapper: don't crash if we get EAGAIN from real_recv()
...
This fixes a crash in the ldaps tests with socket wrapper pcap support.
metze
2009-03-04 08:32:31 +01:00
Stefan Metzmacher
b00204a461
lib/util: remove samba specific talloc_get_type_abort()
...
metze
2009-03-03 18:07:33 +01:00
Stefan Metzmacher
b6f479d441
talloc: add talloc_get_type_abort()
...
metze
2009-03-03 18:07:33 +01:00
Simo Sorce
67d41d0fc7
Make struct tevent_req opaque
...
Move struct tevent_req in tevent_internal, and ad getters and setters
for private data and the callback function.
This patch also renames 'private_state' into 'data'. What is held in this
pointer is in fact data and not a state like enum tevent_req_state.
Calling it 'state' is confusing.
The functions addedd are:
tevent_req_set_callback() - sets req->async.fn and req->async.private_data
tevent_req_set_print_fn() - sets req->private_print
tevent_req_callback_data() - gets req->async.private_data
tevent_req_data() - gets rea->data
This way it is much simpler to keep API/ABI compatibility in the future.
2009-03-02 11:02:09 -05:00
Jelmer Vernooij
c7b9757b8a
Import ISO-8859-1, 646 from Samba 3 iconv.
2009-03-02 04:12:57 +01:00
Jelmer Vernooij
7ab8f373c8
Use common header file for character set handling in Samba 3 and Samba 4.
2009-03-01 22:24:34 +01:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
4903d20c21
Merge branch 'master' of git://git.samba.org/samba into convenience
2009-03-01 16:41:57 +01:00
Jelmer Vernooij
09ac816b36
Merge branch 'master' of git://git.samba.org/samba into teventfix
...
Conflicts:
lib/tevent/pytevent.c
2009-03-01 16:39:35 +01:00
Jelmer Vernooij
235244f4cc
Avoid using tevent_util.h, which won't be available if we use the system
...
tevent.
2009-03-01 16:38:07 +01:00
Jelmer Vernooij
55903e6f91
Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.
2009-03-01 16:19:38 +01:00
Jelmer Vernooij
d776ac03c3
Move next_token_talloc() to top-level.
2009-03-01 16:16:16 +01:00
Jelmer Vernooij
9f6e2d6485
Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.
2009-03-01 12:59:58 +01:00
Jelmer Vernooij
9ffb6d2d9e
Add allow_badcharcnv argument to all conversion function, for
...
consistency with Samba 3.
2009-03-01 06:33:40 +01:00