1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-21 20:23:50 +03:00
Commit Graph

181 Commits

Author SHA1 Message Date
Stefan Metzmacher
9f7406f795 r22267: protect #define __location__ with an #ifndef
metze
(This used to be commit 138ffd6d48)
2007-10-10 14:50:55 -05:00
Jelmer Vernooij
97416e6b01 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.
(This used to be commit 07652f65ce)
2007-10-10 14:48:04 -05:00
Andrew Tridgell
8538af1107 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
(This used to be commit 21eb316473)
2007-10-10 14:44:42 -05:00
Andrew Tridgell
1c211a2e43 r20650: revert a bunch of code I didn't mean to commit yet
(This used to be commit b3e2d49087)
2007-10-10 14:37:26 -05:00
Andrew Tridgell
f6274959ba r20647: add cluster code
(This used to be commit 5870830b99)
2007-10-10 14:37:24 -05:00
Stefan Metzmacher
90d106de8a r20195: fix typo
metze
(This used to be commit 9d06a4b6e2)
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
0d2bedbdd7 r20194: inline all static talloc functions
metze
(This used to be commit ee47b40441)
2007-10-10 14:29:21 -05:00
Stefan Metzmacher
bfbf6d546b r20193: - let talloc_parent_chunk() handle a NULL pointer
- use talloc_parent_chunk() in talloc_parent_name()
- add prototype of talloc_parent_name()

metze
(This used to be commit 85fc18f047)
2007-10-10 14:29:21 -05:00
Volker Lendecke
57b482c04f r19684: Talloc_guide text on multithreading by Remi Turboult
(This used to be commit 7b9b2e5358)
2007-10-10 14:25:32 -05:00
Jelmer Vernooij
dbe5084f8e 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.
(This used to be commit 82cb91e2dd)
2007-10-10 14:25:22 -05:00
Jelmer Vernooij
8f89522a3f r19570: Fix dependencies in pkg-config files.
(This used to be commit 1b04669852)
2007-10-10 14:24:54 -05:00
Andrew Tridgell
5438fc6c62 r19498: the autofree test cannot be run as part of smbtorture
(This used to be commit ebf1d523da)
2007-10-10 14:24:39 -05:00
Jelmer Vernooij
bc596cf917 r19495: Stop linking binaries twice (once before installation, once during build).
Make TORTURE-TALLOC and TORTURE-REPLACE builtin again rather than
separate binaries.
(This used to be commit 8913d60c72)
2007-10-10 14:24:39 -05:00
Andrew Tridgell
5ce18f91e0 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/
(This used to be commit 35908a2992)
2007-10-10 14:21:30 -05:00
Andrew Tridgell
5370afe8c2 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
(This used to be commit 8644708c3f)
2007-10-10 14:21:29 -05:00
Andrew Tridgell
cd2bc5854c 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.
(This used to be commit db273ef4dd)
2007-10-10 14:21:27 -05:00
Jelmer Vernooij
4517b7af0e 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'.
(This used to be commit 23f66efd56)
2007-10-10 14:21:22 -05:00
Jelmer Vernooij
b58deeea69 r19350: Properly list LOCAL-TALLOC under the "LOCAL" header.
Support directories for subcategories in tests.
Several small other fixes.
(This used to be commit bde00d9706)
2007-10-10 14:21:14 -05:00
Jelmer Vernooij
52e3f69a36 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.
(This used to be commit e1742c14a2)
2007-10-10 14:21:13 -05:00
Jelmer Vernooij
8773e743c5 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.
(This used to be commit 0eb6097305)
2007-10-10 14:21:12 -05:00
Simo Sorce
666a72e39a r19304: If you really want to look at the contents undef this one
(This used to be commit fe20ac404d)
2007-10-10 14:21:05 -05:00
Andrew Tridgell
18278a5560 r19118: get rid of a bunch of bool misuse warnings
(This used to be commit e620f44643)
2007-10-10 14:20:36 -05:00
Stefan Metzmacher
4ccdd53704 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
(This used to be commit 2be48c1b03)
2007-10-10 14:20:27 -05:00
Stefan Metzmacher
ee97148354 r18946: fix compiler warning
metze
(This used to be commit 4505958224)
2007-10-10 14:20:23 -05:00
Andrew Tridgell
f96b8c5391 r18601: updated web page for new talloc build method
(This used to be commit fbd8028080)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
e84ee4a6fd r18600: - fix shell syntax in tests for libraries
- add library test for libpopt
(This used to be commit 13878b7e7e)
2007-10-10 14:18:55 -05:00
Andrew Tridgell
550834c9df r18594: fail the configure step if the required library is not found for tdb,
talloc or libreplace
(This used to be commit 9f45f970f7)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
182ab7107c r18539: 'make distclean' should delete config.cache
(This used to be commit 5a8becb1be)
2007-10-10 14:18:43 -05:00
Andrew Tridgell
fafa8c3e47 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?
(This used to be commit 823cd3ab35)
2007-10-10 14:18:42 -05:00
Andrew Tridgell
c902a8927c r18521: implement volkers suggestion for avoiding the type punning warnings
(This used to be commit 9b9f058edb)
2007-10-10 14:18:41 -05:00
Stefan Metzmacher
d08fb7b1cc r18485: include libreplace.m4 in the aclocal.m4 files
and use the macros in configure.ac

metze
(This used to be commit 95d33e4d71)
2007-10-10 14:18:36 -05:00
Andrew Tridgell
05cdd9ccaf 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.
(This used to be commit 254cbf09de)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
1a59784451 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.
(This used to be commit 200756017e)
2007-10-10 14:18:29 -05:00
Andrew Tridgell
e6b457d550 r18283: libreplace.m4 needs to be early in configure.ac in other packages too
(This used to be commit 03f9c67c06)
2007-10-10 14:18:01 -05:00
Stefan Metzmacher
a46e12d0e0 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
(This used to be commit 135d096776)
2007-10-10 14:17:50 -05:00
Jelmer Vernooij
1869a8cc66 r18163: Remove defines for BOOL, False and True
(This used to be commit 6f5e7df6f2)
2007-10-10 14:17:44 -05:00
Stefan Metzmacher
6150443532 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
(This used to be commit 38f9e90a12)
2007-10-10 14:17:43 -05:00
Andrew Tridgell
ed356c7989 r18143: the 'showflags' convention from Samba is useful for the other packages
(This used to be commit a4d1f1d222)
2007-10-10 14:17:40 -05:00
Stefan Metzmacher
eb1def379e r18142: add make distclean to talloc build
metze
(This used to be commit c8342c9ae5)
2007-10-10 14:17:39 -05:00
Andrew Tridgell
a983b06d37 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)
(This used to be commit 77d1a468e0)
2007-10-10 14:17:36 -05:00
Stefan Metzmacher
3c6ce57101 r18100: actually make usage of libreplace :-)
metze
(This used to be commit 357882e6ec)
2007-10-10 14:17:16 -05:00
Stefan Metzmacher
7a29fb6dd7 r18096: try to make tcc happy and don't the same struct names in a global and
a local scope

metze
(This used to be commit b787259365)
2007-10-10 14:17:16 -05:00
Stefan Metzmacher
bf0250c621 r18089: sometimes autoconf picks up some old stuff:
- remove configure and config.h.in
- cleanup after autoconf and autoheader are done

metze
(This used to be commit 8246d8ecd2)
2007-10-10 14:17:14 -05:00
Andrew Tridgell
9105f1323b r18086: here too
(This used to be commit e485b25a39)
2007-10-10 14:17:14 -05:00
Andrew Tridgell
6c1bcc6521 r18083: i should sleep more ....
(This used to be commit 9bc583cf6c)
2007-10-10 14:17:13 -05:00
Andrew Tridgell
1acb65fdef r18082: bring talloc in line with new conventions
(This used to be commit 7f7c85fa2f)
2007-10-10 14:17:13 -05:00
Andrew Tridgell
c75b6b92c8 r18080: added distclean target to talloc
(This used to be commit 1185dd044b)
2007-10-10 14:17:12 -05:00
Andrew Tridgell
f9cdcd2eca r18077: move some configure tests out of talloc that are now in libreplace
(This used to be commit b5d519eb1e)
2007-10-10 14:17:12 -05:00
Andrew Tridgell
9b10009938 r18076: convert talloc to the new libreplace system
(This used to be commit 968a4e97cf)
2007-10-10 14:17:12 -05:00
Stefan Metzmacher
10d58661be r18064: merge from samba3
metze
(This used to be commit c60deff667)
2007-10-10 14:17:10 -05:00