Andrew Tridgell
bc45451ddd
r14288: - make the snprintf call in talloc portable to older solaris boxes
...
- fixed an error found sing the beam analyser
2007-10-10 13:57:08 -05:00
Volker Lendecke
4d0aa6f525
r14131: Fix Coverity bug # 127
2007-10-10 13:56:53 -05:00
James Peach
1ab4674196
r13400: Only return NULL from talloc_asprintf if vsnprintf returns an
...
error (ie. zero is not an error).
2007-10-10 13:51:52 -05:00
James Peach
23782f899a
r13397: Propagate the error return from vsnprintf to trap the case where
...
we aren't linked against a C99 vsnprintf.
2007-10-10 13:51:52 -05:00
Andrew Tridgell
7a0e7074f6
r12633: expose talloc_vasprintf_append()
2007-10-10 13:49:10 -05:00
Jelmer Vernooij
b24f2583ed
r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
...
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
2007-10-10 13:47:45 -05:00
Andrew Tridgell
ed90975bf5
r11984: LGPL on header and testsuite as well
2007-10-10 13:46:55 -05:00
Andrew Tridgell
5bdd50fa38
r11983: make talloc LGPL. This makes more sense given that ldb depends on
...
talloc, and ldb is now LGPL
2007-10-10 13:46:54 -05:00
Volker Lendecke
aad52d9a5f
r11869: talloc has been ported :-)
2007-10-10 13:46:38 -05:00
Jelmer Vernooij
0b54405685
r11377: Add support for building LIBRARY elements as shared libraries:
...
- Adds -rpath bin/ so you don't have to install Samba in order to use compiled binaries.
- Writes out pkg-config files when building shared libs
- Supports automatic fallback to MERGEDOBJ (which is the default) or
OBJ_LIST (if ld -r is not supported)
Building with shared libs reduces the size of the Samba binaries from
197 Mb to 60 Mb (including libraries) on my system (GCC4, with debugging).
To build with shared libraries support enabled, run:
LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY ./config.status
init functions don't get called correctly yet when using shared libs, so
you won't be able to actually run anything with success :-)
Once init functions are done, I'll look at support for loading shared
modules once again.
Based on a patch by Peter Novodvorsky (nidd on IRC).
2007-10-10 13:45:28 -05:00
Jelmer Vernooij
b4745032a2
r11303: Support defining and installing public headers for libraries.
...
Support installing libraries.
Get rid of pkg-config file (will be autogenerated later on).
2007-10-10 13:45:16 -05:00
Jelmer Vernooij
98d1f9b1dc
r11300: Treat libraries as a special kind of subsystem
...
(one that can also be built as a library and installed).
2007-10-10 13:45:15 -05:00
Jelmer Vernooij
24e1030090
r11244: Relative path names in .mk files
2007-10-10 13:45:06 -05:00
Jelmer Vernooij
7fffc5c917
r11214: Remove scons files (see http://lists.samba.org/archive/samba-technical/2005-October/043443.html )
2007-10-10 13:45:03 -05:00
Andrew Tridgell
f31a2376f3
r10726: fix to talloc_parent() from Michael O'Brien
2007-10-10 13:39:25 -05:00
Jelmer Vernooij
b53313dc51
r10586: Add MergedObject() builder. Default to Library() rather
...
then StaticLibrary()
2007-10-10 13:39:08 -05:00
Andrew Tridgell
d4af4b11ae
r10525: change from AC_CHECK_TYPES() to AC_CHECK_TYPE() for intptr_t, so the
...
type is always available, which means we need less #ifdefs
2007-10-10 13:39:01 -05:00
Jelmer Vernooij
4f0d7f75b9
r10348: Add scons scripts for remaining subsystems. Most subsystems build now,
...
but final linking still fails (as does generating files asn1, et, idl and proto
files)
2007-10-10 13:38:30 -05:00
Tim Potter
540a3649e8
r10328: Add more emacs python-mode markers.
2007-10-10 13:38:28 -05:00
Jelmer Vernooij
829568d759
r10323: Add first bits required for getting compile with scons working. This does
...
not work yet and can exist parallel with the existing build system.
2007-10-10 13:38:25 -05:00
Jelmer Vernooij
2f481ac93c
r8985: Automatically generate make dependency rules for
...
the asn1 and error table files.
This removes the need for HEIMDAL_EXTERNAL
2007-10-10 13:31:04 -05:00
Andrew Tridgell
0e5b89b1e8
r8443: added talloc.3 to the tree to try to allow talloc to build on systems without xsltproc
2007-10-10 13:23:03 -05:00
Andrew Tridgell
46632e2048
r8127: fixed code in function error
2007-10-10 13:19:12 -05:00
Andrew Tridgell
689a9ccf91
r8126: - moved to 16 byte alignment for talloc. This is in response to a bug
...
report from robert collins.
- updated talloc guide to reflect the fact that over the last few
months talloc overhead compared to malloc has dropped, probably due
to a bunch of small changes. It now costs about 4% more than malloc
on my box
2007-10-10 13:19:12 -05:00
Andrew Tridgell
563058e78b
r8032: added loop detection into talloc. Robert Collins found a way to make a
...
memory loop with talloc_unlink(), so now we detect it and handle it
2007-10-10 13:19:00 -05:00
Jelmer Vernooij
fd3f463643
r7943: Add 'make manpages', fix 'make installman' and 'make uninstallman'.
...
Not part of the "all" make target yet, as it requires xsltproc
2007-10-10 13:18:53 -05:00
Simo Sorce
7ccf21ab4e
r7936: new ldb_dn_explode and ldb_dn_casefold functions and co
2007-10-10 13:18:52 -05:00
Andrew Tridgell
5760ed20ee
r7781: finding the parent of a talloc ptr is trickier than it looks due to the two-way
...
tree nature of the data structure. I think I've finally got it right
also added talloc_show_parents() for debugging
2007-10-10 13:18:36 -05:00
Andrew Tridgell
ee3fe42fb1
r7780: fixed a bug in talloc_find_parent_byname()
2007-10-10 13:18:35 -05:00
Andrew Tridgell
bdb55c7a10
r7778: added talloc_find_parent_bytype() and talloc_find_parent_byname()
...
These provide a way to find a parent of a ptr that is of a given
type. I will be using this to find the event context in smbd, relying
on the fact that everything is a child of the top level event
context. I did look at the alternatives, and found that passing the
event context to just about every call in smbd was getting way too
complex (we need to get it to anything that can do a ldb operation, as
that can invoke ldap).
So this method avoids a global, and seems to work nicely
2007-10-10 13:18:35 -05:00
Derrell Lipman
77fc2036a0
r7556: fixed typo in documentation
2007-10-10 13:18:08 -05:00
Andrew Tridgell
257027a571
r6845: make the talloc header align to 40 bytes, which costs us an extra 4
...
bytes per allocation, but makes it much more portable
2007-10-10 13:16:50 -05:00
Andrew Tridgell
aac86583a9
r6831: talloc now requires config.h (this fixes ldb build)
2007-10-10 13:16:49 -05:00
Andrew Tridgell
57c8db4f9a
r6830: put header checks in config.m4 so when it is included by other projects the right
...
configure checks are done
2007-10-10 13:16:48 -05:00
Jelmer Vernooij
f46c532883
r6828: More portability fixes
2007-10-10 13:16:48 -05:00
Andrew Tridgell
450ac2e4de
r6812: more talloc portability tweaks
2007-10-10 13:16:46 -05:00
Andrew Tridgell
c8a274c873
r6808: - test for gcov not needed
...
- samba malloc wrapper avoidance not needed now we don't use includes.h
- make testsuite work when BOOL, True, False already defined
2007-10-10 13:16:46 -05:00
Jelmer Vernooij
3541ebe31b
r6807: Fix in-tree build of talloc testsuite
2007-10-10 13:16:46 -05:00
Jelmer Vernooij
c2ce09d380
r6804: Add config.h for talloc (and use it)
2007-10-10 13:16:45 -05:00
Andrew Tridgell
235f5c510b
r6802: - fixed CFLAGS
...
- don't fail if we don't have xsltproc
2007-10-10 13:16:45 -05:00
Andrew Tridgell
7af0c547e0
r6741: prevent talloc_strndup() from reading one byte past the end of a buffer,
...
giving valgrind errors
2007-10-10 13:16:40 -05:00
Jelmer Vernooij
cbd7af4fcf
r6664: Obey overrided CC in the Makefile
...
(should fix build on several buildfarm hosts)
2007-10-10 13:16:33 -05:00
Andrew Tridgell
b7fbe2173d
r6663: only use -Wall for gcc
2007-10-10 13:16:33 -05:00
Andrew Tridgell
2f78428cfd
r6662: add an installcheck target for talloc
2007-10-10 13:16:33 -05:00
Andrew Tridgell
9318744fd4
r6661: fix up talloc autoconf to have a chance of working on the build farm
2007-10-10 13:16:32 -05:00
Volker Lendecke
777c489cad
r6660: Sorry for the spam... I think now I've got a version that should compile on
...
trunk, 3_0 and 4_0.
Volker
2007-10-10 13:16:32 -05:00
Simo Sorce
34671674ee
r6650: keep style consistent
2007-10-10 13:16:32 -05:00
Simo Sorce
df40184782
r6645: Add talloc_get_size() function.
...
Sometimes it is usefull to know this data.
Simo.
2007-10-10 13:16:32 -05:00
Jelmer Vernooij
62550eac1e
r6622: Add talloc manpage in DocBook XML, based on SGML version by Garry Williams
2007-10-10 13:16:32 -05:00
Volker Lendecke
9fa26d2c97
r6513: Commit talloc_free_children.
...
Volker
2007-10-10 13:16:21 -05:00