Stefan Metzmacher
b934f509ed
lib/torture: fix depency to map_nt_error_from_unix()
...
This should fix the build on Mac OS 10
metze
2009-02-26 17:47:00 +01:00
Stefan Metzmacher
3a1f24f286
tevent: add tevent_queue infrastructure
...
metze
2009-02-26 14:22:12 +01:00
Volker Lendecke
4d22554e98
Add tevent_ntstatus
2009-02-26 13:04:33 +01:00
Michael Adam
bd121b532c
s3:libsmbconf: add transactions to the libsmbconf api
...
This is useful for wrapping higher level aggregate operations
in transactions. The text backend implementations just return
WERR_OK, the registry backend implementatoins use the
regdb_transaction_start|commit|cancel routines just added.
Michael
2009-02-26 11:05:23 +01:00
Volker Lendecke
26f238466c
Speed up "net conf list"
...
With 1000 shares in the registry, this changed the time of "net conf list" from
1.1 seconds to .6 seconds.
Signed-off-by: Michael Adam <obnox@samba.org>
2009-02-26 11:05:21 +01:00
Stefan Metzmacher
c21ae8d1bf
libreplace: make it possible to disable socket_wrapper via -DSOCKET_WRAPPER_DISABLE=1
...
metze
2009-02-26 10:48:10 +01:00
Stefan Metzmacher
e17df483fb
lib/tdb: if we know pwrite and pread are thread/fork safe tdb_reopen_all() should be a noop
...
The reason for tdb_reopen_all() is that the seek pointer on fds are shared between
parent and child.
metze
2009-02-25 13:57:11 -08:00
Stefan Metzmacher
e2f37ec106
tevent: add private_print function feature to tevent_req
...
metze
2009-02-25 14:30:55 +01:00
Stefan Metzmacher
13ac0dc456
tevent: add tevent_req_poll() function
...
metze
2009-02-25 14:08:36 +01:00
Volker Lendecke
423c1d88fc
Remove async_req based async_send
2009-02-25 13:04:19 +01:00
Volker Lendecke
00ad0c4a43
Remove async_req based async_recv
2009-02-25 13:04:18 +01:00
Volker Lendecke
9e3178e838
Attempt to fix the OpenChange build -- sorry for the break
2009-02-25 11:02:48 +01:00
Volker Lendecke
25df6d7413
Add more conventional async_recv
2009-02-24 20:40:48 +01:00
Volker Lendecke
a60480b71a
Add more conventional async_send
2009-02-24 20:40:48 +01:00
Volker Lendecke
08f028f179
Remove unused param_connect struct
2009-02-24 20:40:48 +01:00
Volker Lendecke
bbbdfa2056
Remove unused recvall
2009-02-24 20:40:48 +01:00
Volker Lendecke
4021029cdd
Add async read_packet
2009-02-24 20:40:47 +01:00
Volker Lendecke
f9df355bef
Fix async writev
2009-02-24 20:40:47 +01:00
Volker Lendecke
e50075a580
Remove async sendall
2009-02-24 20:40:47 +01:00
Volker Lendecke
76c6330dfb
Add async writev
2009-02-24 20:40:47 +01:00
Volker Lendecke
39976035eb
Convert async_connect to tevent_req
2009-02-24 20:40:47 +01:00
Volker Lendecke
70814474f5
tevent.h requires bool and uint[16|32|64]_t
2009-02-24 20:40:46 +01:00
Volker Lendecke
c50233695e
Add tevent_req_is_unix_error
2009-02-24 20:40:46 +01:00
Steven Danneman
8d63c596a0
Refactored sys_fork() and sys_pid() into shared util library
...
This fixes a bug in 116ce19b
, where we didn't clear the pid cache in
become_daemon() and thus the /var/run/smbd.pid didn't match the actual
pid of the parent process.
Currently S4 will clear the pid cache on fork but doesn't yet take
advantage of the pid cache by using sys_pid() instead of the direct
get_pid().
2009-02-23 21:17:12 -08:00
Jeremy Allison
faa1100d22
More warning fixes for Solaris.
...
Jeremy.
2009-02-23 16:22:43 -08:00
Björn Jacke
cd6ae0de52
all BSDs use this evironment variable
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-02-23 09:43:23 +01:00
Tim Prouty
39b508e38e
Fix shadowed declaration warning
2009-02-21 14:00:05 -08:00
Jelmer Vernooij
c9a057bc04
pytevent: Fix include path - tevent_util is not installed.
2009-02-21 19:08:24 +01:00
Steven Danneman
116ce19b10
Moved become_daemon() and close_low_fds() to shared util lib
2009-02-20 16:30:12 -08:00
Stefan Metzmacher
975a881d54
tevent: add tevent_wakeup_send/recv()
...
This can be used as tevent_req based timer event.
metze
2009-02-18 10:31:36 +01:00
Stefan Metzmacher
7f6618a3de
tevent: rename tevent_req_set_timeout() => tevent_req_set_endtime()
...
This makes more clear what the function does.
metze
2009-02-18 10:31:35 +01:00
Kai Blin
612c5e746b
async_sock: Use tevent_timeval instead of timeval functions
2009-02-17 09:19:31 +01:00
Kai Blin
48b874e376
tevent: Rename ev_timeval* functions to tevent_timeval, export them.
...
Also add tevent_timeval_add() and tevent_timeval_current_ofs()
to help not depending on lub/util/time.c for things that just need tevent
2009-02-17 09:19:31 +01:00
Stefan Metzmacher
406e6d6114
tevent: fix compiler warning in pytevent.c
...
metze
2009-02-16 09:53:49 +01:00
Stefan Metzmacher
6211162d3e
lib/tevent: change to LGPLv3+
...
metze
2009-02-16 08:53:25 +01:00
Volker Lendecke
f0440d0d56
Add missing prototype for "tevent_req_print"
2009-02-14 22:00:44 +01:00
Volker Lendecke
d39849ddcd
Fix a warning and a bug: pipe(2) can fail
2009-02-14 22:00:44 +01:00
Volker Lendecke
01aff219dd
Add two variable assignments to shut up gcc
2009-02-14 22:00:43 +01:00
Stefan Metzmacher
946573aaed
tevent: raise version to 0.9.3
...
- aio events are removed
- tevent_req infrastructure was added
metze
2009-02-13 18:55:21 +01:00
Stefan Metzmacher
113651c517
lib/tevent: add tevent_req infrastructure
...
This is almost a copy of the async_req code,
which will be removed later.
metze
2009-02-13 18:37:01 +01:00
Stefan Metzmacher
f337974ed5
lib/tevent: add tevent_req.c as copy of lib/async_req/async_req.c
...
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
fa2461ae73
lib/tevent: expose ev_timeval_zero() for internal usage
...
metze
2009-02-13 16:02:14 +01:00
Stefan Metzmacher
1d949fe742
lib/tevent: remove broken tevent_aio support
...
It makes no sense to support aio events because,
the current implementation was based on IOCB_CMD_EPOLL_WAIT
which never made it into the main kernel tree.
The native linux aio can be used with select/epoll
using eventfd(), which means we can implement aio
with fd events and implement aio outside of tevent.
metze
2009-02-13 16:02:13 +01:00
Volker Lendecke
0844cca1d5
Replace get_myname() with the talloc version from v3-3-test
2009-02-13 12:15:03 +01:00
Volker Lendecke
c2f7f1b40b
Fix Coverity ID 707 (RESOURCE_LEAK)
2009-02-13 10:21:03 +01:00
Björn Jacke
dc9387ec42
enable IPv6 support for NetBSD, FreeBSD
...
most systems include netinet/in.h via netdb.h but *BSD don't.
2009-02-11 10:19:12 -08:00
Tim Prouty
1696298aad
s3 async: Fix the build on systems that have ETIMEDOUT but not ETIME
...
Fallback on EAGAIN
2009-02-09 13:23:44 -08:00
Jelmer Vernooij
0afa0ab442
Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4"
...
lib/util already has discard_const_p.
This reverts commit 0cb430c22e
.
2009-02-09 17:48:30 +01:00
Kai Blin
b8cafc5ad2
async_sock: Map ASYNC_REQ_TIMEOUT to ETIMEDOUT instead of ETIME
...
Also, fall back to EIO if ETIMEDOUT is not present
2009-02-09 12:13:58 +01:00
Kai Blin
c3b9b6c8aa
async_sock: Use unix errnos instead of NTSTATUS
...
This also switches wb_reqtrans to use wbcErr instead of NTSTATUS as it would
be pointless to convert to errno first and to wbcErr later.
2009-02-09 08:36:08 +01:00