1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

15050 Commits

Author SHA1 Message Date
Volker Lendecke
bdb52e4d58 Mark talloc_pool memory for valgrind
(This used to be commit 6deca23b6c66616fbf5ba004e9b778aa68790df6)
2008-02-11 15:07:46 +01:00
Volker Lendecke
7a9033fb2d 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 60ef9a84f0bd18d48e453c08aa420d17275e0881)
2008-02-11 15:07:46 +01:00
Michael Adam
81abb395e0 Add a comment.
Michael
(This used to be commit 2a2c28584cdb65fcea8563eb3bf21fea497fdff3)
2008-02-11 15:07:46 +01:00
Michael Adam
af406133c1 Fix talloctort: move size check after referenced ptr check.
Michael
(This used to be commit a0caedb94f6f7c62ae706e35a4c0b2876f74978d)
2008-02-11 15:07:46 +01:00
Volker Lendecke
44cb6a81f2 Don't shrink a talloc area if we have less than 1k to gain
(This used to be commit 0c829e6ee6f43299cc5889c2af3d0402256da0d0)
2008-02-11 15:07:46 +01:00
Jelmer Vernooij
b4c81c0c18 Make data about what subsystems/libraries are enabled available in the mkconfig.mk file.
(This used to be commit 4cc93a98f984d322e41f403169cfa4945b469935)
2008-02-11 14:41:28 +01:00
Michael Adam
f890d1daea Fix the build: remove reference to inexistent header samba3_proto.h
Michael
(This used to be commit 3b9b396292077b2d3ff1fb1712462b767cc2bf81)
2008-02-11 14:27:33 +01:00
Jelmer Vernooij
4d31177407 Fix accidently introduced typo.
(This used to be commit 6c7aa271b1cb0f5604be54f1aa26e1e3531c8f36)
2008-02-11 13:58:04 +01:00
Jelmer Vernooij
a699941796 Ignore mkconfig.mk file, which is autogenerated.
(This used to be commit 71dc1d5d1db7e5e3cb4245c20df739926c1e8514)
2008-02-11 13:54:12 +01:00
Jelmer Vernooij
08c8d3b992 Remove Samba 3 backwards compatibility code in C.
This code is no longer used, and equivalent code already exists in Python
(scripting/python/samba/samba3.py)
(This used to be commit c16212e8bf5343496ea4b3afc30a8b4d3a0afe2d)
2008-02-11 13:51:09 +01:00
Jelmer Vernooij
0a6dc21955 Remove tests for Samba 3 EJS code.
(This used to be commit 7aff2ddd8ca1ff68fc704fdb139d81d6daa51115)
2008-02-11 13:38:07 +01:00
Jelmer Vernooij
af007e5837 Use SMB_CONF_PATH environment variable inside tests rather than hardcoded paths.
(This used to be commit eb04de69c0e319e18b148191946808f81e1cc8c4)
2008-02-11 13:20:24 +01:00
Jelmer Vernooij
e4165448d7 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-python
(This used to be commit 35f5c8294e9f3b304987597d4bcfc75fdda05982)
2008-02-11 13:10:11 +01:00
Kai Blin
de03c4a3ea autoconf: We build Samba from git now, not from SVN.
(This used to be commit 4557b34d82e16038db903278ea64313a9d731d61)
2008-02-11 11:58:43 +01:00
Jelmer Vernooij
d82b6dd09a Fix switching of hives in regshell (#5254)
(This used to be commit 5f33545c78e13871d622c0a5a0ded789bf624869)
2008-02-11 11:48:43 +01:00
Kai Blin
176f32cc97 provision: Fix new user creation.
Spotted by nobody88 in IRC.
(This used to be commit 38d4e2407afb942de21379dc886f9e4c5532a2b9)
2008-02-11 10:38:19 +01:00
Stefan Metzmacher
dbba1925d1 pidl/Samba3::ServerNDR: use talloc_tos() instead of NULL
metze
(This used to be commit 99d6f49340d6f190ac318af939eeec17c29f1bbd)
2008-02-11 08:44:56 +01:00
Jelmer Vernooij
b090c02166 Fix case.
(This used to be commit 67074ff4aa06d56fb84752d39132d33d5599ca7f)
2008-02-11 01:15:54 +01:00
Jelmer Vernooij
8ba668bb05 Move some more variables to static .mk file.
(This used to be commit a72d3ffaded5624732972708c305b8f84f47fed7)
2008-02-11 01:02:16 +01:00
Jelmer Vernooij
1813b711c4 Automatically write AC_SUBST() vars to mkconfig.mk and use them.
(This used to be commit a22bb7725b0b825a90e955f883a34341e9f0f69e)
2008-02-11 00:21:20 +01:00
Jelmer Vernooij
73be46cf45 Move some variables to a separate .mk file that could also be included by a non-smb_build build system.
(This used to be commit f44b838b682760e54aa981fe2e991495395d2394)
2008-02-10 23:32:31 +01:00
Jelmer Vernooij
432574366f Start working on generating .mk file from configure for inclusion in Makefile.
(This used to be commit 091f1e7314f05253ae1c10b3d04557be584ed19f)
2008-02-10 22:58:03 +01:00
Jelmer Vernooij
84a269410c Make formatting a bit more ReST-valid.
(This used to be commit ea718a0c0b1efd73020da6d5a362b371afd8e371)
2008-02-10 22:24:09 +01:00
Jelmer Vernooij
321e9a5ada Change README to be ReST-compatible.
(This used to be commit 20c15884c84151d01f50cdba571b3ba4be1a9fd8)
2008-02-10 22:14:08 +01:00
Jelmer Vernooij
cac225ba7d More syntax fixes, use more standard python functions.
(This used to be commit ea07509b4a9335a3b3fe6f6da1124fd1aab33c96)
2008-02-10 00:56:55 +01:00
Jelmer Vernooij
f75d624129 Start working on python conversion of minschema.
(This used to be commit 239a1616644321e2d1e64985ea3f3c4971997228)
2008-02-10 00:21:41 +01:00
Jelmer Vernooij
2cf29aebff Add tests for upgrade of WINS database.
(This used to be commit 7777611c0f32a693f0fa057c130e4ea491658f6b)
2008-02-09 22:29:42 +01:00
Jelmer Vernooij
63aa4b9021 Remove unused define.
(This used to be commit 64d6d729135e1b3b19c9bdbbe973fcdaca15e8b3)
2008-02-09 20:47:12 +01:00
Jelmer Vernooij
0af38050dd Merge branch 'v4-0-trivial' into v4-0-python
Conflicts:

	source/scripting/python/config.m4
(This used to be commit 6a43b5e895444235c869b008de98e4b21bcdcfd9)
2008-02-09 20:38:07 +01:00
Jelmer Vernooij
1342b265ca Fix typo.
(This used to be commit 80dbf04266d15833f7eb18704cfece1f95965e83)
2008-02-09 20:09:58 +01:00
Jelmer Vernooij
ec106a1421 Merge branch 'v4-0-trivial' into v4-0-python
(This used to be commit b874f07175ae38a041f53f0e4ac6a4050dcefeae)
2008-02-09 20:06:54 +01:00
Jelmer Vernooij
1a2544a24c Fix tests.
(This used to be commit e4d7cd8ba77aa05c11dad457c3f2c2c6252c5966)
2008-02-09 19:16:44 +01:00
Jelmer Vernooij
93bb85d293 Split up tests a bit, output subunit.
(This used to be commit 501259ff31641bf52e337b597881d1fedc6b2a63)
2008-02-09 19:04:14 +01:00
Jelmer Vernooij
cf287aa831 Add docstring.
(This used to be commit 073ed0dd1cc8fae9eb4a2f7ff6763124917c56e8)
2008-02-09 17:42:31 +01:00
Jelmer Vernooij
0b922fb6cb Ignore Python apidocs, vim swap files.
(This used to be commit 13a7dfb90066a52e0d90dbed5fe2c82c4af6092c)
2008-02-09 17:41:50 +01:00
Jelmer Vernooij
2fa4c15858 Fix syntax of docstrings, set project name when generating Python API documentation.
(This used to be commit 68f13d87eb034fdbc712169f2d1b1a0475751ec5)
2008-02-09 17:37:42 +01:00
Jelmer Vernooij
7a402da97e registry: Fix warning.
(This used to be commit dad809030478a85ac13a73bce9c07314792f01c2)
2008-02-09 17:18:51 +01:00
Jelmer Vernooij
b5bfabf152 Move nmblookup blackbox test closer to the code it tests.
(This used to be commit 3f24136b56d281580410bf69841c6dece5508d17)
2008-02-09 17:17:21 +01:00
Jelmer Vernooij
c8c9d70221 Move first_prereq test to m4 code.
(This used to be commit c0fef09c5d88158b620f38b6f74498a8b6323bd9)
2008-02-09 17:07:02 +01:00
Jelmer Vernooij
9fccd83613 Move some static makefile variables to rules.mk.
(This used to be commit 3c64fc7dc631a79154957e45f8961e2ee519743f)
2008-02-09 16:41:44 +01:00
Julien Kerihuel
c60d0a10ea pidl: Allow fixed size arrays inside unions.
(This used to be commit c9c115647893478e21134f8c703e0f52e2478882)
2008-02-09 16:26:16 +01:00
Jelmer Vernooij
d696a50452 Fix test count after pointer_default_top() removal.
(This used to be commit 9a4b9facc869a8f7363932a591437251b44cd7bb)
2008-02-09 16:25:34 +01:00
Jelmer Vernooij
fdef91b484 Move more make code to rules.mk
(This used to be commit 5ade1a951685665164037138cb92e5b2db2a8b52)
2008-02-09 16:23:02 +01:00
Jelmer Vernooij
460ac1c585 Use mkinclude (makes the Makefile a bit shorter), use double-colon for phony makefile targets.
(This used to be commit ea7d389bcc284d2e9eeff79bce5c285269099ad3)
2008-02-09 16:05:55 +01:00
Jelmer Vernooij
70762fe16b Support 'mkinclude' command in .mk files.
(This used to be commit ee7f54c86d2b467869db8dea33f60e19ed3c742f)
2008-02-09 16:01:53 +01:00
Jelmer Vernooij
8fdd13f18a Remove unused path update.
(This used to be commit 1868a42108012183aa78fe5d4f524d45f4505a3e)
2008-02-09 15:43:28 +01:00
Jelmer Vernooij
c61dc38494 Re-enable python support in BECOME-DC test.
(This used to be commit ed44fd59bfa289bcef82e0650ccda381efb52268)
2008-02-09 15:42:19 +01:00
Jelmer Vernooij
d1b40b4ee5 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-trivial
(This used to be commit f7521525e42d62e96cc6f55fb1b23644a60fc36d)
2008-02-09 15:04:03 +01:00
Jelmer Vernooij
be2be0779e Ignore kinit with pkinit test failures for now.
(This used to be commit 94dedaf6ed55b146a0123407137f7ee4cfd41283)
2008-02-09 14:42:55 +01:00
Jelmer Vernooij
0938fad4f1 torture: Merge util.c into util_smb.c
(This used to be commit d19d27f406c0377d98c9fe9da9284dcebd373bb7)
2008-02-09 14:26:46 +01:00