1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-21 03:17:08 +03:00

14 Commits

Author SHA1 Message Date
Günther Deschner
2ec2eefc70 Remove unused marshalling for NTSVCS_GET_HW_PROFILE_INFO.
Guenther
2008-02-18 01:38:37 +01:00
Günther Deschner
ddb3838be1 Remove unused marshalling for NTSVCS_HW_PROFILE_FLAGS.
Guenther
2008-02-18 01:37:40 +01:00
Günther Deschner
bc1df536fa Remove unused marshalling for NTSVCS_GET_DEVICE_LIST_SIZE.
Guenther
2008-02-18 00:31:14 +01:00
Günther Deschner
8971afaf74 Remove unused marshalling for NTSVCS_VALIDATE_DEVICE_INSTANCE.
Guenther
2008-02-17 23:45:03 +01:00
Günther Deschner
58970cc6a8 Remove unused marshalling for NTSVCS_GET_VERSION.
Guenther
2008-02-17 23:43:45 +01:00
Jeremy Allison
f35a266b3c RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Volker Lendecke
6585ea2cb7 r24809: Consolidate the use of temporary talloc contexts.
This adds the two functions talloc_stackframe() and talloc_tos().

 * When a new talloc stackframe is allocated with talloc_stackframe(), then
 * the TALLOC_CTX returned with talloc_tos() is reset to that new
 * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
 * happens: The previous talloc_tos() is restored.
 *
 * This API is designed to be robust in the sense that if someone forgets to
 * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
 * resets the talloc_tos().

The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.

The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.

This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)

So, never do a

tmp_ctx = talloc_init("foo");

anymore, instead, use

tmp_ctx = talloc_stackframe()

:-)

Volker
2007-10-10 12:30:24 -05:00
Andrew Tridgell
87c91e4362 r23801: The FSF has moved around a lot. This fixes their Mass Ave address. 2007-10-10 12:28:27 -05:00
Jeremy Allison
407e6e695b r23779: Change from v2 or later to v3 or later.
Jeremy.
2007-10-10 12:28:20 -05:00
Jeremy Allison
3df99006f8 r22577: Change all of parse/*.c to use standard form. Fix some
marshalling bugs.
Jeremy.
2007-10-10 12:19:46 -05:00
Jeremy Allison
9dafb7f48c r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
2007-10-10 11:19:14 -05:00
Jeremy Allison
5057e90db3 r16371: Fix Klocwork #1048.
Jeremy.
2007-10-10 11:18:50 -05:00
Gerald Carter
f10aa9fb84 r10781: merging eventlog and svcctl code from trunk 2007-10-10 11:04:53 -05:00
Gerald Carter
939c3cb5d7 r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00