1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00
Commit Graph

191 Commits

Author SHA1 Message Date
Jelmer Vernooij
e72cec408e r22598: Simplify includes for replace. 2007-10-10 14:51:49 -05:00
Jelmer Vernooij
a3ec90a263 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.
2007-10-10 14:51:48 -05:00
Jeremy Allison
80706cf98d r22563: As tridge requested remove the _strict calls - for Samba3 I'm moving
to a separate file.
Jeremy.
2007-10-10 14:51:44 -05:00
Jeremy Allison
219e1cae77 r22541: Added talloc_size_strict macro.
Jeremy.
2007-10-10 14:51:40 -05:00
Jeremy Allison
ba1a66cc6f r22540: Added _strict varients of the macro calls - added
prototypes.
Jeremy.
2007-10-10 14:51:40 -05:00
Jeremy Allison
1ef269067c r22539: Added _strict varients of the talloc calls to
return NULL on size == 0 varients.
Jeremy.
2007-10-10 14:51:39 -05:00
Jelmer Vernooij
17e9c56a75 r22518: Create pkgconfig dir. 2007-10-10 14:51:36 -05:00
Jelmer Vernooij
4614da125f r22517: Use DESTDIR 2007-10-10 14:51:36 -05:00
Jelmer Vernooij
846cfcf44d r22514: Add version numbers to tdb and talloc (required so they can be packaged independent of Samba for Debian). 2007-10-10 14:51:35 -05:00
Stefan Metzmacher
6780c23427 r22365: prepare merge to samba3
metze
2007-10-10 14:51:07 -05:00
Stefan Metzmacher
138ffd6d48 r22267: protect #define __location__ with an #ifndef
metze
2007-10-10 14:50:55 -05:00
Jelmer Vernooij
07652f65ce r21297: Remove the GTK+ tools and library from the main repository. They are now maintained separately in bzr at http://people.samba.org/bzr/jelmer/samba-gtk
This also adds some more headers to the list that is installed and a couple of extra #include lines so these
headers can be used externally without problems.
2007-10-10 14:48:04 -05:00
Andrew Tridgell
21eb316473 r21174: many thanks to Paul Wayper for pointing out that C99 requires a
matching va_end() for each va_copy(). This doesn't matter for most
architectures, but there could be some obscure ones where it does
matter.

some of this should be ported to Samba3
2007-10-10 14:44:42 -05:00
Andrew Tridgell
b3e2d49087 r20650: revert a bunch of code I didn't mean to commit yet 2007-10-10 14:37:26 -05:00
Andrew Tridgell
5870830b99 r20647: add cluster code 2007-10-10 14:37:24 -05:00
Stefan Metzmacher
9d06a4b6e2 r20195: fix typo
metze
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
ee47b40441 r20194: inline all static talloc functions
metze
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
85fc18f047 r20193: - let talloc_parent_chunk() handle a NULL pointer
- use talloc_parent_chunk() in talloc_parent_name()
- add prototype of talloc_parent_name()

metze
2007-10-10 14:29:21 -05:00
Volker Lendecke
7b9b2e5358 r19684: Talloc_guide text on multithreading by Remi Turboult 2007-10-10 14:25:32 -05:00
Jelmer Vernooij
82cb91e2dd r19636: Add URLs to ldb and talloc pkg-config files.
Always build and install .pc files as they make sense for static libs
as well.
2007-10-10 14:25:22 -05:00
Jelmer Vernooij
1b04669852 r19570: Fix dependencies in pkg-config files. 2007-10-10 14:24:54 -05:00
Andrew Tridgell
ebf1d523da r19498: the autofree test cannot be run as part of smbtorture 2007-10-10 14:24:39 -05:00
Jelmer Vernooij
8913d60c72 r19495: Stop linking binaries twice (once before installation, once during build).
Make TORTURE-TALLOC and TORTURE-REPLACE builtin again rather than
separate binaries.
2007-10-10 14:24:39 -05:00
Andrew Tridgell
35908a2992 r19434: we need to force line buffering as the new torture code doesn't create
a pty in the piped_child() code

Jelmer, if you want to fix this on platforms that support it, see the
forkpty() call, or see
http://junkcode.samba.org/ftp/unpacked/junkcode/rline/
2007-10-10 14:21:30 -05:00
Andrew Tridgell
8644708c3f r19412: some rather strange looking changes to talloc that gain us about 50%
in the talloc benchmark. These changes were driven by some cachegrind
profiles, with the biggest improvements coming from inlining some
functions.

I don't think it would be a good idea to start spreading inline and
likely()/unlikely() in other parts of Samba, as the benefit in most
code will be very small, but talloc() is such a speed critical part of
Samba that I think these changes are worthwhile
2007-10-10 14:21:29 -05:00
Andrew Tridgell
db273ef4dd r19405: the talloc speed test suite was not giving an accurate picture of the
cost of talloc versus malloc. The size parameter in the test suite was
constantly increasing, leading to a worst case for malloc. It is far
more common to have talloc calls of 100 bytes or lower, so change the
benchmark to reflect this.

This makes talloc look much worse - on my laptop I now get:

talloc: 5615164 ops/sec
malloc: 14337130 ops/sec

I'm working on improving that.
2007-10-10 14:21:27 -05:00
Jelmer Vernooij
23f66efd56 r19381: Print out the specific tests that failed after a smbtorture run.
Support listing known failures as a list of wildcards in the file
`KNOWN_FAILURES'.
2007-10-10 14:21:22 -05:00
Jelmer Vernooij
bde00d9706 r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Support directories for subcategories in tests.
Several small other fixes.
2007-10-10 14:21:14 -05:00
Jelmer Vernooij
e1742c14a2 r19343: Add support for external scripts/binaries that write results using the
'subunit' protocol. This allows us to easily plug EJS scripts or binaries that
can't depend on -ltorture into smbtorture. The protocol is very simple:

- write "comments" to stderr

Example output on stdout:
test: foo
success: foo
test: bar
success: bar
test: blah
failure: blah [
dummy.c:30: Expression 1 != 2 failed!
]
test: blie
skip: blie [
Iconv support not built in
]

I've already converted the talloc testsuite.
2007-10-10 14:21:13 -05:00
Jelmer Vernooij
0eb6097305 r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grained
output in the testsuite rather than just True or False for a
set of tests.

The aim is to use this for:
 * known failure lists (run all tests and detect tests that
						started working or started failing). This
   would allow us to get rid of the RPC-SAMBA3-* tests
 * nicer torture output
 * simplification of the testsuite system
 * compatibility with other unit testing systems
 * easier usage of smbtorture (being able to run one test
						and automatically set up the environment for that)

This is still a work-in-progress; expect more updates over the next couple of
days.
2007-10-10 14:21:12 -05:00
Simo Sorce
fe20ac404d r19304: If you really want to look at the contents undef this one 2007-10-10 14:21:05 -05:00
Andrew Tridgell
e620f44643 r19118: get rid of a bunch of bool misuse warnings 2007-10-10 14:20:36 -05:00
Stefan Metzmacher
2be48c1b03 r18995: - fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
  in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
  and samba3, as samba4 uses talloc_autofree_context()

metze
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
4505958224 r18946: fix compiler warning
metze
2007-10-10 14:20:23 -05:00
Andrew Tridgell
fbd8028080 r18601: updated web page for new talloc build method 2007-10-10 14:18:55 -05:00
Andrew Tridgell
13878b7e7e r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
2007-10-10 14:18:55 -05:00
Andrew Tridgell
9f45f970f7 r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
2007-10-10 14:18:54 -05:00
Andrew Tridgell
5a8becb1be r18539: 'make distclean' should delete config.cache 2007-10-10 14:18:43 -05:00
Andrew Tridgell
823cd3ab35 r18535: move the AC_CANONICAL_HOST and host specific flag tests into
libreplace. This should fix the standalone build of tdb on HPUX, where
we need to blacklist mmap.

Unfortunately this requires that we have a copy of config.guess and
config.sub in each of our project subdirectories. I tried to find a
way to use something like AC_CONFIG_AUX_DIR($libreplacedir) and just
put config.{guess,sub} in the lib/replace/ directory, but I couldn't
figure out how to do that in a way that kept autoconf happy for each
of our separate builds. Any autoconf guru out there see a way to do
this?
2007-10-10 14:18:42 -05:00
Andrew Tridgell
9b9f058edb r18521: implement volkers suggestion for avoiding the type punning warnings 2007-10-10 14:18:41 -05:00
Stefan Metzmacher
95d33e4d71 r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
2007-10-10 14:18:36 -05:00
Andrew Tridgell
254cbf09de r18439: 2nd try at a talloc_move() api. This type with the ** ptr interface
exposed.

Unfortunately this generates a large number of type punning
warnings. We'll have to find some magic to hide those.
2007-10-10 14:18:29 -05:00
Andrew Tridgell
200756017e r18435: added a function talloc_move() which is like talloc_steal(), but is
meant for moving pointers between structures. The difference is that
talloc_move() will zero the source pointer, thus ensuring you don't
reference the pointer in the old context.

talloc_move() is appropriate in some, but not all cases where we use
talloc_steal() now. The interface came out of a discussion with
Jeremy.
2007-10-10 14:18:29 -05:00
Andrew Tridgell
03f9c67c06 r18283: libreplace.m4 needs to be early in configure.ac in other packages too 2007-10-10 14:18:01 -05:00
Stefan Metzmacher
135d096776 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
2007-10-10 14:17:50 -05:00
Jelmer Vernooij
6f5e7df6f2 r18163: Remove defines for BOOL, False and True 2007-10-10 14:17:44 -05:00
Stefan Metzmacher
38f9e90a12 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
2007-10-10 14:17:43 -05:00
Andrew Tridgell
a4d1f1d222 r18143: the 'showflags' convention from Samba is useful for the other packages 2007-10-10 14:17:40 -05:00
Stefan Metzmacher
c8342c9ae5 r18142: add make distclean to talloc build
metze
2007-10-10 14:17:39 -05:00
Andrew Tridgell
77d1a468e0 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
2007-10-10 14:17:36 -05:00