1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

309 Commits

Author SHA1 Message Date
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 0cb430c22e9c0af2248fbc15ce97a4d760df189d.
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
Stefan Metzmacher
e6bb55c3d5 lib/tdb: don't generate a static library for the samba4 build
We also don't do this for talloc and ldb.

metze
2009-02-03 10:24:38 +01:00
Volker Lendecke
d3f9b0fab6 Next step disentangling async_req from NTSTATUS
Now I need to document this :-)
2009-02-02 20:15:03 +01:00
Volker Lendecke
cfc27ece10 Attempt to fix "make test" on host "tridge" 2009-02-02 15:39:13 +01:00
Stefan Metzmacher
886df1ac86 lib/tevent: the python bindings don't use swig anymore
metze
2009-02-02 15:16:08 +01:00
Stefan Metzmacher
662e05f7a9 lib/tdb: the python bindings don't use swig anymore
metze
2009-02-02 15:16:08 +01:00
Stefan Metzmacher
8249a467e3 lib/tevent: s/private/private_data
metze
2009-02-02 13:09:18 +01:00
Stefan Metzmacher
48a0721606 lib/util: s/new/pn in idtree.c
metze
2009-02-02 13:09:16 +01:00
Stefan Metzmacher
5e6e370c4e lib/util: s/class/dclass
metze
2009-02-02 13:09:16 +01:00
Simo Sorce
10c907bcdb Fix headers, only ldb.h is required 2009-02-01 13:06:13 -05:00
Volker Lendecke
c14b7e648b Split up async_req into a generic and a NTSTATUS specific part 2009-02-01 19:05:39 +01:00
Stefan Metzmacher
412b89afba lib/replace: move MAXHOSTNAMELEN to system/network.h
Some platforms define it in netdb.h, so we should
define the replace after including metdb.h.

metze
2009-01-31 09:32:14 +01:00
Simo Sorce
de4f7c0787 Do not install private headers 2009-01-30 20:12:50 -05:00
Tim Prouty
2c2545d45a s3 build: Remove unused fstat check to fix a bunch of HAVE_FSTAT warnings 2009-01-30 14:41:07 -08:00
Stefan Metzmacher
84ca20a6b5 lib/tevent: include replace.h in pytevent.c
This fixes the build on Tru64.

metze
2009-01-30 19:39:34 +01:00
Stefan Metzmacher
3718cf294a lib/tdb: include replace.h and system/filesys.h in pytdb.c
This fixes the build on Tru64.

metze
2009-01-30 19:38:59 +01:00
Stefan Metzmacher
2f8a398296 lib/talloc: include replace.h in pytalloc.c
This fixes the build on Tru64.

metze
2009-01-30 19:38:09 +01:00
Stefan Metzmacher
c28952c555 lib/replace: check if we have dirfd()
Note: we only use this internally and don't replace it by default.

metze
2009-01-30 18:42:08 +01:00
Stefan Metzmacher
24a1b556fc s4:lib/util: fix the build
metze
2009-01-30 18:42:08 +01:00
Stefan Metzmacher
94cb0835ca s4:build: kill DEFAULT_HEADERS variable
metze
2009-01-30 17:38:40 +01:00
Simo Sorce
4e0a619701 Fix standalone configure scripts 2009-01-30 01:02:23 -05:00
Jeremy Allison
77bac5b78c Fix coverity CID#66. Resource leak in error path.
Jeremy.
2009-01-29 17:16:34 -08:00