1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-15 16:23:49 +03:00
Commit Graph

3159 Commits

Author SHA1 Message Date
Andrew Bartlett
01d54d13dc r23177: Add in a new provision-backend script. This helps set up the OpenLDAP or Fedora DS backend.
This required a new mkdir() call in ejs.

We can now provision just the schema for ad2oLschema to operate on
(with provision_schema(), without performing the whole provision, just
to wipe it again (adjustments to 'make test' to come soon).

Andrew Bartlett
2007-10-10 14:53:00 -05:00
Jelmer Vernooij
222acbe33b r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl 2007-10-10 14:52:59 -05:00
Jelmer Vernooij
db065db67a r23158: Set version to 1.0.1. 2007-10-10 14:52:58 -05:00
Jelmer Vernooij
cb92da2679 r23157: Add news file for talloc. 2007-10-10 14:52:58 -05:00
Andrew Tridgell
80002cd12a r23153: a first cut at a fix for the dgram flood problem that volker
found. Not sure this is the best solution, but it should work.
2007-10-10 14:52:58 -05:00
Michael Adam
54193c4638 r23123: Fix two utterly simply typos that broke the whole build farm...
Michael
2007-10-10 14:52:51 -05:00
Michael Adam
9781b13fd3 r23118: Make inet_pton and inet_ntop available through lib/replace.
The code for inet_pton.c and inet_ntop.c is taken from
the rsync code.

I will put this into 3_0 and 3_0_26 too, but let's sort
the readahead issue in lib/replace of 3_0 first...

Michael
2007-10-10 14:52:51 -05:00
Michael Adam
943acd688d r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
2007-10-10 14:52:49 -05:00
Andrew Bartlett
607e8409f8 r23064: Clarify comment and indent 2007-10-10 14:52:46 -05:00
Andrew Tridgell
ffb8b49316 r23059: reject_free needs to be initialised 2007-10-10 14:52:45 -05:00
Andrew Tridgell
e862cf17b8 r23021: test some boundary conditions for idtree, after I saw some suspicious
behaviour
2007-10-10 14:52:40 -05:00
Andrew Tridgell
1fe20a4555 r23013: fixed a bug in the string_replace_w() test that caused OpenBSD to die 2007-10-10 14:52:39 -05:00
Stefan Metzmacher
4e32aafb9e r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
in all other places too...

metze
2007-10-10 14:52:36 -05:00
Andrew Tridgell
ec6900171d r22988: fixed 2 bugs in our unsetenv() replacement code
1) you must not free the memory, as it is possible the memory did not
 come from malloc (try it under valgrind to test)

 2) the old code didn't cope with duplicate environment variables

I hope this will fix some of the build farm errors on irix, and maybe solaris
2007-10-10 14:52:36 -05:00
Andrew Tridgell
d28fc5f87f r22985: don't do checkins late at night ....
thanks to Volker for spotting this!
2007-10-10 14:52:35 -05:00
Andrew Tridgell
146303d91b r22971: fix build on systems without epoll 2007-10-10 14:52:34 -05:00
Andrew Tridgell
603d8b6f17 r22970: the events code calls close(), which needs to use socket_wrapper.h in
the build farm
2007-10-10 14:52:34 -05:00
Andrew Tridgell
4f84e6d569 r22968: andrew bartlett pointed out that the parent process could add a fd to
the epoll context which would then appear in the children. To fix this
we need to check for pid changes in more places. Luckily on platforms
where we have epoll(), getpid() is very very cheap.
2007-10-10 14:52:33 -05:00
Andrew Tridgell
a69f285998 r22964: log an error on epoll_create failing on reopen 2007-10-10 14:52:32 -05:00
Andrew Tridgell
aeca07659a r22963: fixed the epoll/fork interaction in the epoll and aio backends 2007-10-10 14:52:32 -05:00
Andrew Tridgell
d57aaf5ba6 r22960: added a SOCKET_FLAG_NOCLOSE to allow us to tell the socket layer that
we will handle the close of the socket
2007-10-10 14:52:31 -05:00
Andrew Tridgell
6d06132ea9 r22959: cope with a rather interesting interaction between epoll() and
fork(). See
http://junkcode.samba.org/ftp/unpacked/junkcode/epoll_fork.c for why
this is needed
2007-10-10 14:52:31 -05:00
James Peach
2d990cd374 r22952: Make sure we look at extra_cflags when building custom targets. 2007-10-10 14:52:31 -05:00
Michael Adam
7afa8d2a47 r22931: Fix logic in detection of the need to replace dlopen and friends.
Originally, dlfcn.o was only added to LIBREPLACEOBJ if dlopen
was found in libdl but header dlfcn.h was not appropriate.

Michael
2007-10-10 14:52:30 -05:00
Andrew Tridgell
a88ab4fa3a r22832: merged the latest tdb changes from ctdb to Samba4 2007-10-10 14:52:22 -05:00
Andrew Tridgell
f1ad216de1 r22830: merged the latest lib/events updates from ctdb to Samba4. This
includes a new EVENT_FD_AUTOCLOSE flag that prevents race conditions
where code using fd events might close a fd before releasing the
struct fd_event. That causes headaches for epoll.
2007-10-10 14:52:21 -05:00
Andrew Tridgell
2c9d0b57f9 r22829: system/select.h needs to bring in epoll.h for epoll usage in
lib/events
2007-10-10 14:52:21 -05:00
Jelmer Vernooij
1193c75962 r22827: Change license to LGPL (discussed with tridge). 2007-10-10 14:52:21 -05:00
Stefan Metzmacher
f6740c8b7a r22789: fix loading of internal samba4 modules
metze
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
a90202abca r22762: Some ldb_map changes:
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
5cd100de82 r22758: - add missing _talloc_set_name_const(ret, ret); to talloc_append_string()
- update manpage and add comments about _talloc_set_name_const(ret, ret);
  in all places which use them

metze
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
305117fae0 r22757: test if calling talloc_free() works on parent elements from within a destrutor
metze
2007-10-10 14:52:15 -05:00
Jelmer Vernooij
1152a4f56d r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace. 2007-10-10 14:52:09 -05:00
Stefan Metzmacher
b54584dfab r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
cd958034df r22746: fix the build of the sqlite module
metze
2007-10-10 14:52:08 -05:00
Stefan Metzmacher
d907fb26a7 r22743: set the talloc name to the string...
metze
2007-10-10 14:52:08 -05:00
Stefan Metzmacher
d8440f0579 r22723: fix compiler warnings
metze
2007-10-10 14:52:07 -05:00
Stefan Metzmacher
0397eca102 r22722: fix dependencies
metze
2007-10-10 14:52:07 -05:00
Jelmer Vernooij
05ca6ecef7 r22699: Reduce amount of magic required for popt detection. 2007-10-10 14:52:03 -05:00
Jelmer Vernooij
4d3f02e845 r22698: Support using system tdb, when available. 2007-10-10 14:52:03 -05:00
Jelmer Vernooij
3a2f9e0977 r22697: Support building with external talloc. 2007-10-10 14:52:02 -05:00
Simo Sorce
e24812016f r22696: Make sure this is an ascii char
spotted by Volker
2007-10-10 14:52:02 -05:00
Volker Lendecke
75ba82dee0 r22694: It seems that AIX 5.3 with XLC has difficulties with <ctype.h>. This is
an attempt to work around this: Maybe it helps if we include other stuff
first.

This raises a question however: Do we want the DN handling to be locale
dependent? isalpha() can return different things depending on the
current locale.
2007-10-10 14:52:02 -05:00
Jelmer Vernooij
0b34da929f r22687: use DESTDIR. 2007-10-10 14:52:02 -05:00
Jelmer Vernooij
582e743e68 r22684: Fix native Samba build. 2007-10-10 14:52:01 -05:00
Jelmer Vernooij
532f28724d r22682: Fix standalone ldb build when parent directory name != ldb. 2007-10-10 14:52:01 -05:00
Jelmer Vernooij
1093875d59 r22681: Fix standalone ldb build when parent directory name != ldb. 2007-10-10 14:52:00 -05:00
Jelmer Vernooij
331a0f608f r22668: Fix ldb build 2007-10-10 14:51:59 -05:00
Jelmer Vernooij
5037373c4c r22665: Change version back to 0.9. 2007-10-10 14:51:59 -05:00
Stefan Metzmacher
4db64b4ce2 r22661: optimize the handling of directly triggered timed events:
- if someone adds a timed_event with a zero timeval
  we now avoid serval gettimeofday() calls and the
  event handler doesn't get the current time when it's
  called, instead we also pass a zero timeval

- this also makes sure multiple timed events with a zero timeval
  are processed in the order there're added.

the little benchmark shows that processing 2000000 directly timed events
is now much faster, while avoiding syscalls at all!

> time ./evtest (with the old code)

real    0m6.388s
user    0m1.740s
sys     0m4.632s
> time ./evtest (with the new code)

real    0m1.498s
user    0m1.496s
sys     0m0.004s
metze@SERNOX:~/devel/samba/4.0/samba4-ci/source> cat evtest.c
#include <stdio.h>
#include <stdint.h>
#include <sys/time.h>
#include <talloc.h>
#include <events.h>

static void dummy_fde_handler(struct event_context *ev_ctx, struct fd_event *fde,
                              uint16_t flags, void *private_data)
{
}

static void timeout_handler(struct event_context *ev, struct timed_event *te,
                            struct timeval tval, void *private_data)
{
        uint32_t *countp = (uint32_t *)private_data;
        (*countp)++;
        if (*countp > 2000000) exit(0);
        event_add_timed(ev, ev, tval, timeout_handler, countp);
}

int main(void)
{
        struct event_context *ev;
        struct timeval tval =  { 0, 0 };
        uint32_t count = 0;
        ev = event_context_init(NULL);
        event_add_fd(ev, ev, 0, 0, dummy_fde_handler, NULL);
        event_add_timed(ev, ev, tval, timeout_handler, &count);
        return event_loop_wait(ev);
}
2007-10-10 14:51:58 -05:00