1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

2937 Commits

Author SHA1 Message Date
James Peach
66cc0b1e21 r22952: Make sure we look at extra_cflags when building custom targets.
(This used to be commit 2d990cd37410cec03fa96767b0cf84d7c17ca9c4)
2007-10-10 14:52:31 -05:00
Michael Adam
3e5335063a 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
(This used to be commit 7afa8d2a4707e999a380e747ccaae1de53a00251)
2007-10-10 14:52:30 -05:00
Andrew Tridgell
a2b2502585 r22832: merged the latest tdb changes from ctdb to Samba4
(This used to be commit a88ab4fa3a07c31bc45c612043f9e096f384eda4)
2007-10-10 14:52:22 -05:00
Andrew Tridgell
ecc54f900f 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.
(This used to be commit f1ad216de13b154a1f8747a44b0970dcc47a784a)
2007-10-10 14:52:21 -05:00
Andrew Tridgell
bc02bba449 r22829: system/select.h needs to bring in epoll.h for epoll usage in
lib/events
(This used to be commit 2c9d0b57f9cef96ac0878a9761f3c15774fda336)
2007-10-10 14:52:21 -05:00
Jelmer Vernooij
c3b00b471a r22827: Change license to LGPL (discussed with tridge).
(This used to be commit 1193c759622edd9e6843d9b7f53d9532748ce8a0)
2007-10-10 14:52:21 -05:00
Stefan Metzmacher
2dacfdf099 r22789: fix loading of internal samba4 modules
metze
(This used to be commit f6740c8b7abdaa65c8467220bf2d14e21fe71053)
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
cc26fe9b74 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
(This used to be commit a90202abca26c0da5425a2f3dd8494077c3290fd)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
7ef755d150 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
(This used to be commit 5cd100de829b75b83e49bd572a33a267cf86f215)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
aa4ab6d3c1 r22757: test if calling talloc_free() works on parent elements from within a destrutor
metze
(This used to be commit 305117fae0b4692b27b9cc7204fc59fb1312eabb)
2007-10-10 14:52:15 -05:00
Jelmer Vernooij
31b47acf52 r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace.
(This used to be commit 1152a4f56d7402bf3aa00b5b108c5c6c668cec6b)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
68b531e817 r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
(This used to be commit b54584dfabee77ec7743cab431bda9765057a295)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
56ab0cd77c r22746: fix the build of the sqlite module
metze
(This used to be commit cd958034df67a606492b69e55f1f4bc5fa95383b)
2007-10-10 14:52:08 -05:00
Stefan Metzmacher
7a919bede7 r22743: set the talloc name to the string...
metze
(This used to be commit d907fb26a7b0a6543a4bf0b848327a0b7d0da9fa)
2007-10-10 14:52:08 -05:00
Stefan Metzmacher
84ea1aa3fc r22723: fix compiler warnings
metze
(This used to be commit d8440f0579a87e7edff466269bc1dfab8796af34)
2007-10-10 14:52:07 -05:00
Stefan Metzmacher
9dba7d7613 r22722: fix dependencies
metze
(This used to be commit 0397eca102e17d2da726d1669e3ff6d925e50e89)
2007-10-10 14:52:07 -05:00
Jelmer Vernooij
ca72dbec9a r22699: Reduce amount of magic required for popt detection.
(This used to be commit 05ca6ecef70b0e66348b479badcb77d0a0bef9f2)
2007-10-10 14:52:03 -05:00
Jelmer Vernooij
b3a4fd11e9 r22698: Support using system tdb, when available.
(This used to be commit 4d3f02e845577be4a995398dbc5322da8d470009)
2007-10-10 14:52:03 -05:00
Jelmer Vernooij
30baa7f39e r22697: Support building with external talloc.
(This used to be commit 3a2f9e0977bc311daa8171ea709a9cbcdd0a0c85)
2007-10-10 14:52:02 -05:00
Simo Sorce
31d28c5b8c r22696: Make sure this is an ascii char
spotted by Volker
(This used to be commit e24812016f60f506f0df2cb5ba8c2c6987f7da40)
2007-10-10 14:52:02 -05:00
Volker Lendecke
d6121458b0 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.
(This used to be commit 75ba82dee052fa5f4141e66e1cb748101aa95d71)
2007-10-10 14:52:02 -05:00
Jelmer Vernooij
bb71fc3856 r22687: use DESTDIR.
(This used to be commit 0b34da929f2a482c6470a18a6b365634cb1f5b22)
2007-10-10 14:52:02 -05:00
Jelmer Vernooij
9b03417172 r22684: Fix native Samba build.
(This used to be commit 582e743e68a1dbfafe06e7e283ff998140149ae7)
2007-10-10 14:52:01 -05:00
Jelmer Vernooij
e0e8fc3db4 r22682: Fix standalone ldb build when parent directory name != ldb.
(This used to be commit 532f28724dcc9e0fe7051e27d145469398041101)
2007-10-10 14:52:01 -05:00
Jelmer Vernooij
52fb06edc2 r22681: Fix standalone ldb build when parent directory name != ldb.
(This used to be commit 1093875d59f1ea9b8bd82277d4f9d8366e584952)
2007-10-10 14:52:00 -05:00
Jelmer Vernooij
9fc5647043 r22668: Fix ldb build
(This used to be commit 331a0f608f3ae2199a8e3290d79d3a0623fb8a35)
2007-10-10 14:51:59 -05:00
Jelmer Vernooij
1477b7a24f r22665: Change version back to 0.9.
(This used to be commit 5037373c4c788ed5a74fbc90a190dd8245fe2029)
2007-10-10 14:51:59 -05:00
Stefan Metzmacher
6c6c5927a1 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);
}
(This used to be commit 4db64b4ce2320b88d648078cbf86385f6fb44f1f)
2007-10-10 14:51:58 -05:00
Stefan Metzmacher
e4161f9dee r22658: - add AC_GNU_SOURCE macro for systems which don't have it
(sles8)
- fix compiler warning on some systems

metze
(This used to be commit 2097ac64fc5b2b7e9a8221861a788c4a5f44948a)
2007-10-10 14:51:58 -05:00
Jelmer Vernooij
f239b809b4 r22642: Allow standalone build to work without tdb or talloc checked out, but
provided by the system.
(This used to be commit bdde74055121ac538f6006750c94b514e962619d)
2007-10-10 14:51:57 -05:00
Jelmer Vernooij
8f786106a5 r22637: Install tdbbackup and tdbdump again.
(This used to be commit 8197cb975ec8ed92f10782cef20ff4373d6d6965)
2007-10-10 14:51:57 -05:00
Andrew Tridgell
19a6878380 r22634: make the events system much less dependent on the samba4 build system
(This used to be commit b0c8c1cd21e3f91431504d70a4bc0d3c6dee6071)
2007-10-10 14:51:56 -05:00
Andrew Tridgell
20a0206a10 r22632: merged volkers select events fix
(This used to be commit 216aa06fe634f98dce3f157e67303e90ddb70e2d)
2007-10-10 14:51:56 -05:00
Stefan Metzmacher
de9768764d r22629: if irpc gets freed within event_loop_once() we crash...
so deferr the freeing

metze
(This used to be commit 3a30bc0d6137fe2b7440106b35dd0a9175cc8057)
2007-10-10 14:51:56 -05:00
Stefan Metzmacher
f7e0935727 r22622: make it possible to pass the config file via 'SMB_CONF_PATH' envvar
very usefull for make testenv!

this makes it also possible to pass a config file to smbscript

metze
(This used to be commit f65fcd764b656ba9953d88dc7b002e4977af5011)
2007-10-10 14:51:54 -05:00
Stefan Metzmacher
2c65bbc984 r22610: fix build with included popt
metze
(This used to be commit aece281c3b99252d55a4b7ced6548101a45361a8)
2007-10-10 14:51:52 -05:00
Jelmer Vernooij
b481b29a1a r22602: s/HAVE_SOCKET_IPV6/HAVE_IPV6/ to match the define used by Heimdal.
(This used to be commit 5ff665b6531fdb4c7e56c49b7f923546d93b384c)
2007-10-10 14:51:50 -05:00
Jelmer Vernooij
42cf31f3c6 r22600: Update bzr ignores, put right version in .pc files, prepare for support of system versions of tdb, talloc.
(This used to be commit 9b991ce9ca28b3d88c778305ec5f681506162637)
2007-10-10 14:51:50 -05:00
Jelmer Vernooij
2ea1896591 r22598: Simplify includes for replace.
(This used to be commit e72cec408e832e0f6ce05c38febdd56de501dbf7)
2007-10-10 14:51:49 -05:00
Jelmer Vernooij
c9cf06b146 r22596: Set _CFLAGS variables rather than putting knowledge in the ldb Makefile.
This should make it easier to allow use of system tdb or talloc libs using
pkg-config.
(This used to be commit a3ec90a2635d47e5c073e873c15daab4a8ef5400)
2007-10-10 14:51:48 -05:00
Jelmer Vernooij
b0411352a8 r22595: Add version numbers.
(This used to be commit 54cc097e0f8ca880c6c370e712ce427cefb16f08)
2007-10-10 14:51:48 -05:00
Jeremy Allison
522f9ace14 r22563: As tridge requested remove the _strict calls - for Samba3 I'm moving
to a separate file.
Jeremy.
(This used to be commit 80706cf98d31593a899652acb2cdedaa8bf3dfab)
2007-10-10 14:51:44 -05:00
Andrew Bartlett
6736106581 r22559: Make the ad2OLschema tool case insensitive.
Andrew Bartlett
(This used to be commit ddcca38c65c12a4e6a49151296ab36a458c53cb6)
2007-10-10 14:51:44 -05:00
Andrew Bartlett
f34c57f4fc r22557: Simo has long bugged me that the paths in the sam.ldb partitions were
not relative to the location of the sam.ldb, but instead
lp_private_dir().

This fixes that issue.

Andrew Bartlett
(This used to be commit c0fd6f63399d55a1938e31ae7b10689cc02ff2fa)
2007-10-10 14:51:43 -05:00
Jeremy Allison
ca3a7a5578 r22541: Added talloc_size_strict macro.
Jeremy.
(This used to be commit 219e1cae7792a5da886212f335ed11a35f28b3eb)
2007-10-10 14:51:40 -05:00
Jeremy Allison
3477721278 r22540: Added _strict varients of the macro calls - added
prototypes.
Jeremy.
(This used to be commit ba1a66cc6febed8b9c809c59562414675df5f74e)
2007-10-10 14:51:40 -05:00
Jeremy Allison
b06fc3b53c r22539: Added _strict varients of the talloc calls to
return NULL on size == 0 varients.
Jeremy.
(This used to be commit 1ef269067ca501e2a4ded4ca8654c6a6cc26f385)
2007-10-10 14:51:39 -05:00
Jelmer Vernooij
4adf0b62a3 r22518: Create pkgconfig dir.
(This used to be commit 17e9c56a75264e77a9cab130890ad97618442301)
2007-10-10 14:51:36 -05:00
Jelmer Vernooij
781575f508 r22517: Use DESTDIR
(This used to be commit 4614da125fe3ce87ab59bc583aa95fa73beebaab)
2007-10-10 14:51:36 -05:00
Jelmer Vernooij
78cf175165 r22516: Use DESTDIR
(This used to be commit d0f8d46813ea0b633cb40c9a77b90f34307cb2ab)
2007-10-10 14:51:36 -05:00