1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-28 00:49:42 +03:00

59 Commits

Author SHA1 Message Date
Karolin Seeger
e08943f8d8 Fix warnings on SuSE 9.0.
The macros "[un]likely" are already defined on SuSE 9.0.
Patch from Volker.
(This used to be commit 30d181c92463aecd6e649330d3645d86d5a17e43)
2008-06-27 15:51:35 +02:00
Volker Lendecke
9ccbef219c Fix bug 5400
Thanks to Jason Mader!

Volker
(This used to be commit 87d8a63ce4e6dd91ea3193d0a2574520a5857be2)
2008-04-19 17:04:09 +02:00
Gerald W. Carter
72556d4c8c Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
(This used to be commit 359921acd436684a0b4cf76ba15f82a224d2c337)
2008-04-16 15:48:00 +02:00
Michael Adam
114fe09af7 Raise version of talloc from 1.1.0 to 1.2.0 after adding talloc pools.
Michael
(cherry picked from commit 38855a9f145b54d05f4a508562fc1a6595e0d895)
(This used to be commit 303a3eb128b410be0f4ebb936cd3b983e639c07f)
2008-02-13 01:40:12 +01:00
Jelmer Vernooij
3519e91a85 Make sure talloc.so is build before installing.
(cherry picked from commit 51769f5cfc0f3a9f85ea533598a1f769e108d075)
(This used to be commit da98f4d223997709b42b4f05ab94d564261f5aee)
2008-02-13 01:40:12 +01:00
Jelmer Vernooij
9a7e977a73 Fix out of tree builds.
(cherry picked from parts of commit 35c8ebdca2612b52cd3eb2aafd35041d17173722)

Michael
(This used to be commit a780c0594aeea3705d601a327aa04d9182060cbd)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
81a44cb699 Split actual content out of talloc Makefile into talloc.mk.
(cherry picked from commit 2b8939975267fc4774bccd2a35ea9a35129d0a2b)
(This used to be commit 7710d3dea350a85348d46747e4f4cde2b20741de)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
ff0065672e Split rules.mk out of Makefile.
(cherry picked from commit 75ffc2c50d70e6f4108c3e6843c8d2bb212f6d9e)
(This used to be commit 6f8165e4b064f37335e2b0b185ae6433c06a061a)
2008-02-13 01:40:11 +01:00
Michael Adam
38b92adebc Make versions in lib/talloc/config.mk and lib/talloc/configure.ac the same.
Not sure if we can produce one from the other, so I manually made
them equal for now.

Michael
(cherry picked from commit 1c14c457bea75fb3055712547cca501e8ef3fc20)
(This used to be commit 0d9ae82f51302c9755b6e50f1df88eb2a079f12a)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
defae9b501 build: Remove support for DESCRIPTION setting that is now unused.
(cherry picked from parts of commit 91d7ba5202e6c375456a42c2c6861f63c7fcfc20)

Michael
(This used to be commit 4b03f88c1ed8c1a2c1e5e7d461ca2d64a8d6a054)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
df202a4ec4 talloc/tdb: Use manually written pc file.
(cherry picked from parts of c8947fda23eb874a7694bdee1b4de605744c2769)

Michael
(This used to be commit 77664bc482071798571096a299e7d8b190f53797)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
3d33ad711c r26570: - Trim size of the swig-generated Python bindings by removing a bunch of {}'s.
- Start working on Python equivalents for various EJS tests.
- Fix regression in argument order for reg_diff_apply() in EJS bindings.

(cherry picked from talloc part of commit c550c03372cb260b78f6a6c132e70571bc4cb852)

Michael
(This used to be commit a146145c28cc355fed47b8a1f322311ffc1a51ab)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
5a9f0cabf6 r26454: Add simple SWIG macro for wrapping talloced types.
(cherry picked from talloc parts of commit 760fcc8bfa2a7cd7641465cb3bae889e9e0fbc75)

Michael
(This used to be commit f4c59316b9251477556dd22cdd246607f4dfa845)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
b59da67d2f r26292: Make sure swig directory exists.
(cherry picked from commit 7962d221fcb877c9fd3bbc890827338de54ca94a)
(This used to be commit d6198f2bd7d13b5f30bcc46e12026a00f52d9adc)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
6a7dff4a73 r26280: Fix installation if swig is not available.
(cherry picked from commit 3320bd401f7b669bd62f83bf16a1c16ad0543a5c)
(This used to be commit f1267f74a91374692c3564d783c527f94035b323)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
580bb2a6ad r26276: Install SWIG files if swig is present.
(cherry picked from talloc parts of commit dfd5b456f932268e2b1a82e2775037d356b9483e)

Michael
(This used to be commit 8276ec7596b41980aea3f93949edd224fe842fa5)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
461ad00b1f r26197: Add bindings for libsecurity.
(cherry picked from parts of commit 8625cd403ba3a7d2b1b1fccfeb5efd7e21de0135)

Michael
(This used to be commit 22d48224d3235403b916c98c92915165fe7ef330)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
fbc295fb37 r26187: Fix module name, indentation.
(cherry picked from parts of commit ef790ebf3a712dbbb85d6af65c804199c2c084fc)

Michael
(This used to be commit 8e35bbeac286c3b8d64d69ebe9bb4a8f5405a9c0)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
4e066d4f83 r26072: Import trivial SWIG wrapper for talloc.
(cherry picked from commit 02d259c2c45c03dbfcd16173df93d7ba96ed1419)
(This used to be commit 5938a732381abed9f5da1db505626b354fe7293e)
2008-02-13 01:40:10 +01:00
Stefan Metzmacher
68c7089552 r25987: libreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGS
metze

(cherry picked from parts of commit c179807165b84dd832ab64f794034960668e5957.
The changes to lib/replaces have already been merged.)

Michael
(This used to be commit 6c092918725019274cd26218168c5b551ab3c7d2)
2008-02-13 01:40:10 +01:00
Stefan Metzmacher
8943a43a4b r25973: talloc: fix usage of SONAMEFLAG
metze
(cherry picked from commit 7fecb8f3cd9f5f69dce7b9e566011e5de1e01a4a)
(This used to be commit ce3625a3866376d78edc23b137f41be72f07e5eb)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
12c81d1b55 r25953: AIX make doesn't support $^.
(cherry picked from parts of commit 91133d27110ee6447dbc64f1c8d52cb90ca1a86c)

Michael
(This used to be commit f231d03e53dcf291e0cb8870e531989ab855eae0)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
07a5bd6027 r25944: Fix handling of sonameflag on AIX, which doesn't have anything like that.
(cherry picked from parts of commit 228dd6830eb9c91287bb3e0233d8b3a404ff3676)

Michael
(This used to be commit 7a7dcd9b1265b8f031c9a5e9c4cfa89216827a28)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
850ec9eb3a r25884: Specify shldflags first, as required by some compilers.
(cherry picked from commit 40a8cd0d2fd4d10110243ee75ff92bef73bb06b9)
(This used to be commit 42b56f77ff88f8a9dccd7a8ac7df789d0223c945)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
5e914f2c13 r25882: Build shared library of talloc as well.
(cherry picked from commit 3692ba8299d4177289ca401fa467143ad14ccad4)
(This used to be commit ddfc86b71d7e6fa3d1bd6fcaca4f31dd262e84d2)
2008-02-13 01:40:10 +01:00
Volker Lendecke
138954e70e Fix a c++ warning
(This used to be commit ee905a085fff5410d02c3e5fa2664e989de4afd4)
2008-01-10 12:28:20 +01:00
Volker Lendecke
97a50593fe talloc_free_children can only reset pool if it's empty
(This used to be commit 0272b46515b4c4515d5cad8e86fab61d8e91e29e)
2008-01-10 12:28:20 +01:00
Volker Lendecke
4803cc5d3c Mark talloc_pool memory for valgrind
(This used to be commit d89e42f1d2faa018c584025296d6be8195cbcf20)
2008-01-10 12:28:20 +01:00
Volker Lendecke
1ed4fcb271 Implement talloc_pool()
A talloc pool is a chunk of memory that can be used as a context for further
talloc calls. Allocations with the pool as the parent just chew from that
memory by incrementing a pointer. If the talloc pool is full, then we fall back
to the normal system-level malloc(3) to get memory.

The use case for talloc pools is the transient memory that is used for handling
a single SMB request. Incrementing a pointer will be way faster than any malloc
implementation.

There is a downside of this: If you use talloc_steal() to move something out of
the pool, the whole pool memory is kept around until the last object inside the
pool is freed. So if you talloc_free() the pool, it might happen that the
memory is freed later. So don't hang anything off a talloc pool that should
live long.

Volker
(This used to be commit 287e29d988813007eeebc0c2bef3b46ab8bedee9)
2008-01-09 17:05:19 -08:00
Michael Adam
2e3ac4d3fe Add a comment.
Michael
(This used to be commit 3a4bf4b7c3081048f0d5491dae6610388c268c2f)
2008-01-09 01:35:43 +01:00
Michael Adam
ebb21268df Fix talloctort: move size check after referenced ptr check.
Michael
(This used to be commit 45b219642c529865a898625eeb0433c60b233867)
2008-01-09 01:34:21 +01:00
Volker Lendecke
0af2efcdc4 Don't shrink a talloc area if we have less than 1k to gain
(This used to be commit 28a72ebd4541fb54f284da49081345e54130c75a)
2008-01-09 00:10:16 +01:00
Stefan Metzmacher
10cb1b87ed r25230: sync lib/talloc with SAMBA_4_0
metze
(This used to be commit 84ebb6cac224cabf3856a632de80a8a9c687329b)
2007-10-10 12:30:52 -05:00
Jeremy Allison
47107b2cde r25164: Add talloc_asprintf_append_buffer() and the docs for it.
Jeremy.
(This used to be commit 2243a73d650319208aebbbaf65dfba2a508a7c10)
2007-10-10 12:30:47 -05:00
Jeremy Allison
4754b0ec65 r25116: Fix talloc_asprintf_append to do the right thing with
truncated strings.
Jeremy.
(This used to be commit 93c42fd9b52d9135d8c8b52e97cf342c1c5b5010)
2007-10-10 12:30:41 -05:00
Stefan Metzmacher
3b29c9cbed r24627: merge from SAMBA_4_0:
as TALLOC_ABORT() is defined to abort() by default
wrap it into a function so that the function name
in the backtrace shows what happens.

metze
(This used to be commit ddbe971030070ab1b9fc37b8b0ac44a3d9303fe4)
2007-10-10 12:30:11 -05:00
Andrew Tridgell
0726ed4f41 r23802: fixed URL in XML
(This used to be commit 256301a21a1f393b5a2b89d4dce47b7d4f7bf9be)
2007-10-10 12:28:28 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10 12:28:27 -05:00
Andrew Tridgell
674b835241 r23799: updated old Franklin Street FSF addresses to new URL
(This used to be commit 43cd589773148fe3d243892768ce187604dd0c33)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
9fa1c63578 r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit c676a971142d7176fd5dbf21405fca14515a0a76)
2007-10-10 12:28:26 -05:00
Andrew Tridgell
2c09988e46 r23790: LGPLv3+ conversion for our LGPLv2+ library code
(This used to be commit 1b78cace504f60c0f525765fbf59d9cc6506cd4d)
2007-10-10 12:28:25 -05:00
Jeremy Allison
2a9b4da0fa r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
(This used to be commit c2f7ab1c175ecff0cf44d0bbc4763ba9f7d7803f)
2007-10-10 12:28:21 -05:00
Stefan Metzmacher
dcc2fe7cb6 r22759: sync lib/talloc with samba4
metze
(This used to be commit 86c510e3198e03ed6efa61b27530bbb008f6802b)
2007-10-10 12:21:54 -05:00
Jeremy Allison
4ab6a8ebb7 r22564: Move the _strict -> _zeronull functions into lib/util.c
and out of talloc at tridge's request.
Jeremy.
(This used to be commit da78488b86c464b6861d36398cca7524ad5906fe)
2007-10-10 12:19:45 -05:00
Jeremy Allison
fdc0b87083 r22541: Added talloc_size_strict macro.
Jeremy.
(This used to be commit fcbfa2c99175780524d2258885410c79bbb12d6e)
2007-10-10 12:19:43 -05:00
Jeremy Allison
f3cf873c81 r22540: Added _strict varients of the macro calls - added
prototypes.
Jeremy.
(This used to be commit 06b47f3d72d0ca1c83842dff3425d8dacd283fff)
2007-10-10 12:19:43 -05:00
Jeremy Allison
c07643fa18 r22539: Added _strict varients of the talloc calls to
return NULL on size == 0 varients.
Jeremy.
(This used to be commit 1283da1bf8ebe458cf84ee4a703909945cdfcd88)
2007-10-10 12:19:43 -05:00
Stefan Metzmacher
3255daa188 r22366: sync lib/talloc/ with samba4
metze
(This used to be commit 7fab12b34a818f029f4285a59d6e49768b7f8e79)
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
d917f708e1 r22268: merge from samba4:
protect #define __location__ with an #ifndef

metze
(This used to be commit 4c93c05542c5a238b1b7a5cd9b75f9f852c0ad4d)
2007-10-10 12:19:23 -05:00
Andrew Tridgell
5f8840ec84 r21176: merged va_end() changes from Samba4
(This used to be commit 04f6f01dfeda2fa076209a94cdf8e59f6ce47008)
2007-10-10 12:17:45 -05:00