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

233 Commits

Author SHA1 Message Date
Andrew Tridgell
968a4e97cf r18076: convert talloc to the new libreplace system 2007-10-10 14:17:12 -05:00
Stefan Metzmacher
c60deff667 r18064: merge from samba3
metze
2007-10-10 14:17:10 -05:00
Jelmer Vernooij
fe7ca4b145 r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
2007-10-10 14:17:05 -05:00
Volker Lendecke
cd495d8931 r18027: Fix some 64-bit warnings 2007-10-10 14:17:04 -05:00
Stefan Metzmacher
2493f670d3 r17966: remove all generated files
metze
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
64ba7ffdb8 r17965: make talloc build more portable
metze
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
87d88b3a47 r17964: try to support sun* hosts
metze
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
161f2c04f7 r17963: fix install logic for talloc.3
metze
2007-10-10 14:16:58 -05:00
Stefan Metzmacher
18b4ae591a r17960: try to use gmake if present on IRIX
metze
2007-10-10 14:16:57 -05:00
Stefan Metzmacher
d1dd3df5e4 r17958: as talloc_init() enabled null tracking, we should avoid to use it
in smbtorture, and in the LOCAL-TALLOC we should reset the null tracking

also make bin/smbtorture //url/foo LOCAL-TALLOC LOCAL-TALLOC possible

metze
2007-10-10 14:16:57 -05:00
Stefan Metzmacher
23c6c7a27c r17957: don't try to use an internet connection when generating the manpage
and only install the manpage if we build it

metze
2007-10-10 14:16:57 -05:00
Stefan Metzmacher
ff8d044c2e r17952: merge changes from samba3
metze
2007-10-10 14:16:56 -05:00
Stefan Metzmacher
5697841e29 r17950: sync talloc with samba3
metze
2007-10-10 14:16:56 -05:00
Stefan Metzmacher
b199557b35 r17907: - add a generic talloc_report_depth_cb() function which takes a callback
to do the actual report.
- make the talloc_report_depth_file() a wrapper of it
- and talloc_report() and talloc_report_full() are wrapper of
  talloc_report_depth_file()

metze
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
972a84f220 r17905: fix c++ warnings
metze
2007-10-10 14:16:53 -05:00
Stefan Metzmacher
933d1b47ad r17895: - talloc_increase_ref_count() can fail
- make talloc_reference() typesafe when gcc >= 3 is used

metze
2007-10-10 14:16:53 -05:00
Stefan Metzmacher
7cab4285b1 r17893: add a function to disable the null_context
metze
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
6955ffe454 r17892: fix the last talloc c++ warning
metze
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
fb73ce8d43 r17891: remove c++ warnings from talloc
metze
2007-10-10 14:16:52 -05:00
Stefan Metzmacher
bfca83c91e r17886: add talloc_ptrtype() and talloc_array_ptrtype(),
see the manpage what they do:-)

metze
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
155cd6b882 r17885: use _TALLOC_TYPEPF() consitently
metze
2007-10-10 14:16:51 -05:00
Stefan Metzmacher
bb79542edb r17883: check if talloc_asprintf() works correct
metze
2007-10-10 14:16:50 -05:00
Stefan Metzmacher
669d1e5f92 r17712: fix compiler warning
metze
2007-10-10 14:16:29 -05:00
Andrew Tridgell
14a8faa164 r17685: talloc.pc is in the build directory 2007-10-10 14:16:24 -05:00
Andrew Tridgell
07401300ff r17683: to pick up config.h we need -I. as well for talloc 2007-10-10 14:16:23 -05:00
Andrew Tridgell
c137a7049e r17681: fixed standalone talloc build to support building in a separate
directory
2007-10-10 14:16:23 -05:00
Andrew Tridgell
8236a0ac5e r17645: gcc 4.1.x has started producing "value computed is not used" warnings
in very annoying ways for talloc_steal. This rather strange looking
cpp approach avoids these warnings. It's really a problem in gcc, but
better to do this than put up with the huge flood of warnings.
2007-10-10 14:16:19 -05:00
Andrew Tridgell
662f01f8ba r17578: in standalone talloc build ensure we get intptr_t if available (which
makes the discard_const stuff nicer)
2007-10-10 14:15:38 -05:00
Stefan Metzmacher
3be930b81d r17413: add a new case for the this:
top->level1->level2->level3

level3 has a deny destructor
talloc_free(level1)

result: top->level3

metze
2007-10-10 14:15:22 -05:00
Stefan Metzmacher
b091d182fe r17264: - remove unused includes from talloc
- check explicit check for varargs.h as fallback from stdarg.h
  and fail the build if both are not present

metze
2007-10-10 14:10:25 -05:00
Stefan Metzmacher
195754b169 r17263: export talloc_free_children()
metze
2007-10-10 14:10:24 -05:00
Stefan Metzmacher
196803a6c6 r17257: make the size_t is to small error more verbose
(hopefully nobody will ever see this:-)

metze
2007-10-10 14:10:24 -05:00
Stefan Metzmacher
ed5ffc7bfc r17241: substitude @datarootdir@ with old autoconf versions:-)
metze
2007-10-10 14:10:23 -05:00
Jelmer Vernooij
c575dee5c7 r17238: Add datarootdir (required for newer autoconf versions) 2007-10-10 14:10:22 -05:00
Stefan Metzmacher
f47b7bb656 r17176: remove off_t from talloc. size_t is large enough to hold
the max amount of memory of one process

metze
2007-10-10 14:10:16 -05:00
Stefan Metzmacher
f94198c2a8 r17157: bail out if sizeof(size_t) < sizeof(void *)
metze
2007-10-10 14:10:14 -05:00
Stefan Metzmacher
58e124ade3 r17156: check for the size of a pointer
metze
2007-10-10 14:10:14 -05:00
Stefan Metzmacher
2977e7097a r17109: - use AC_SYS_LARGEFILE so that type sizes are the same when talloc
is build standalone and inside samba
- add configure checks for the some type sizes for debugging

metze
2007-10-10 14:10:13 -05:00
Stefan Metzmacher
c5672a54a0 r17062: make correct use of talloc destructors, and make the code much simpler
should I merge that aslo to samba3?

metze
2007-10-10 14:10:10 -05:00
Stefan Metzmacher
0559222b62 r17061: - remove the currect talloc chunk from it's parent before freeing the children
this fixes an endless loop bug!
- reenable the test for this

should I merge this to samba3?

metze
2007-10-10 14:10:09 -05:00
Stefan Metzmacher
4c68e315e2 r16922: move some macros out of talloc.h as the don't belong to talloc
metze
2007-10-10 14:10:01 -05:00
Stefan Metzmacher
3db6bd8715 r16447: print the result of talloc_set_parent()
trying to find the bug on HPUX

metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
7aa07a1e0b r16446: talloc_set_name() allocates and can fail...
pass the error to the callers

metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
972634b202 r16445: print out values
metze
2007-10-10 14:09:15 -05:00
Stefan Metzmacher
f3cd971ab7 r16442: if we want to use CHECK_SIZE(NULL, 3)
we need null tracking, so enable it explicit before running any tests

metze
2007-10-10 14:09:14 -05:00
Andrew Tridgell
bba33a976b r15856: fixed talloc_asprintf_append() on solaris 2007-10-10 14:08:33 -05:00
Andrew Tridgell
babbff5f77 r15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()
type safe. This only works on recent gcc versions. With other
compilers it reverts to a non-typesafe cast

The patch also ensures that talloc_free() does not change error on
systems where free() can change errno
2007-10-10 14:08:32 -05:00
Andrew Tridgell
e00ff9f35e r15828: a talloc steal optimisation spotted by metze 2007-10-10 14:08:29 -05:00
Andrew Tridgell
70531dcaee r15824: fixed a subtle talloc bug to do with memory context loops. When you
have a structure that references one of its parents, and a parent of
that parent is freed, then the whole structure should be freed, not
just the reference.

this was found by the change notify code, as a side effect of fixing
the memory leak yesterday
2007-10-10 14:08:28 -05:00
Jelmer Vernooij
adc8a019b6 r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
2007-10-10 14:04:18 -05:00