1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-07 20:23:50 +03:00
Commit Graph

46 Commits

Author SHA1 Message Date
Jelmer Vernooij
d6198f2bd7 r26292: Make sure swig directory exists.
(cherry picked from commit 7962d221fc)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
f1267f74a9 r26280: Fix installation if swig is not available.
(cherry picked from commit 3320bd401f)
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
8276ec7596 r26276: Install SWIG files if swig is present.
(cherry picked from talloc parts of commit dfd5b456f9)

Michael
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
22d48224d3 r26197: Add bindings for libsecurity.
(cherry picked from parts of commit 8625cd403b)

Michael
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
8e35bbeac2 r26187: Fix module name, indentation.
(cherry picked from parts of commit ef790ebf3a)

Michael
2008-02-13 01:40:11 +01:00
Jelmer Vernooij
5938a73238 r26072: Import trivial SWIG wrapper for talloc.
(cherry picked from commit 02d259c2c4)
2008-02-13 01:40:10 +01:00
Stefan Metzmacher
6c09291872 r25987: libreplace: rename AC_LD_SHLDFLAGS into AC_LIBREPLACE_SHLD_FLAGS
metze

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

Michael
2008-02-13 01:40:10 +01:00
Stefan Metzmacher
ce3625a386 r25973: talloc: fix usage of SONAMEFLAG
metze
(cherry picked from commit 7fecb8f3cd)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
f231d03e53 r25953: AIX make doesn't support $^.
(cherry picked from parts of commit 91133d2711)

Michael
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
7a7dcd9b12 r25944: Fix handling of sonameflag on AIX, which doesn't have anything like that.
(cherry picked from parts of commit 228dd6830e)

Michael
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
42b56f77ff r25884: Specify shldflags first, as required by some compilers.
(cherry picked from commit 40a8cd0d2f)
2008-02-13 01:40:10 +01:00
Jelmer Vernooij
ddfc86b71d r25882: Build shared library of talloc as well.
(cherry picked from commit 3692ba8299)
2008-02-13 01:40:10 +01:00
Volker Lendecke
ee905a085f Fix a c++ warning 2008-01-10 12:28:20 +01:00
Volker Lendecke
0272b46515 talloc_free_children can only reset pool if it's empty 2008-01-10 12:28:20 +01:00
Volker Lendecke
d89e42f1d2 Mark talloc_pool memory for valgrind 2008-01-10 12:28:20 +01:00
Volker Lendecke
287e29d988 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
2008-01-09 17:05:19 -08:00
Michael Adam
3a4bf4b7c3 Add a comment.
Michael
2008-01-09 01:35:43 +01:00
Michael Adam
45b219642c Fix talloctort: move size check after referenced ptr check.
Michael
2008-01-09 01:34:21 +01:00
Volker Lendecke
28a72ebd45 Don't shrink a talloc area if we have less than 1k to gain 2008-01-09 00:10:16 +01:00
Stefan Metzmacher
84ebb6cac2 r25230: sync lib/talloc with SAMBA_4_0
metze
2007-10-10 12:30:52 -05:00
Jeremy Allison
2243a73d65 r25164: Add talloc_asprintf_append_buffer() and the docs for it.
Jeremy.
2007-10-10 12:30:47 -05:00
Jeremy Allison
93c42fd9b5 r25116: Fix talloc_asprintf_append to do the right thing with
truncated strings.
Jeremy.
2007-10-10 12:30:41 -05:00
Stefan Metzmacher
ddbe971030 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
2007-10-10 12:30:11 -05:00
Andrew Tridgell
256301a21a r23802: fixed URL in XML 2007-10-10 12:28:28 -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
Andrew Tridgell
43cd589773 r23799: updated old Franklin Street FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
c676a97114 r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 12:28:26 -05:00
Andrew Tridgell
1b78cace50 r23790: LGPLv3+ conversion for our LGPLv2+ library code 2007-10-10 12:28:25 -05:00
Jeremy Allison
c2f7ab1c17 r23780: Find and fix more GPL2 -> GPL3.
Jeremy.
2007-10-10 12:28:21 -05:00
Stefan Metzmacher
86c510e319 r22759: sync lib/talloc with samba4
metze
2007-10-10 12:21:54 -05:00
Jeremy Allison
da78488b86 r22564: Move the _strict -> _zeronull functions into lib/util.c
and out of talloc at tridge's request.
Jeremy.
2007-10-10 12:19:45 -05:00
Jeremy Allison
fcbfa2c991 r22541: Added talloc_size_strict macro.
Jeremy.
2007-10-10 12:19:43 -05:00
Jeremy Allison
06b47f3d72 r22540: Added _strict varients of the macro calls - added
prototypes.
Jeremy.
2007-10-10 12:19:43 -05:00
Jeremy Allison
1283da1bf8 r22539: Added _strict varients of the talloc calls to
return NULL on size == 0 varients.
Jeremy.
2007-10-10 12:19:43 -05:00
Stefan Metzmacher
7fab12b34a r22366: sync lib/talloc/ with samba4
metze
2007-10-10 12:19:29 -05:00
Stefan Metzmacher
4c93c05542 r22268: merge from samba4:
protect #define __location__ with an #ifndef

metze
2007-10-10 12:19:23 -05:00
Andrew Tridgell
04f6f01dfe r21176: merged va_end() changes from Samba4 2007-10-10 12:17:45 -05:00
Stefan Metzmacher
c718eb7a7c r20197: merge talloc fixes from samba4:
- make most static functions inline
- handle NULL pointers in talloc_parent_chunk()
- use talloc_parent_chunk() in talloc_parent_name()
  to fix a bug found by the IBM checker

metze
2007-10-10 12:16:31 -05:00
Herb Lewis
e710a7d39a r20131: get rid of a few no previous prototype warnings 2007-10-10 12:16:26 -05:00
Volker Lendecke
842599a7fd r19774: Fix typo 2007-10-10 12:15:54 -05:00
Volker Lendecke
36a7bf738a r19666: Talloc_guide text on multithreading by Remi Turboult 2007-10-10 12:15:45 -05:00
Andrew Tridgell
ced12bd6d8 r19431: merge recent talloc performance improvements from Samba4 2007-10-10 12:15:35 -05:00
Andrew Tridgell
65e1500ae6 r19125: merge from samba4 2007-10-10 12:15:14 -05:00
Stefan Metzmacher
f5b0924f97 r18996: merge from samba4:
- fix bug 4078
- talloc_free(talloc_autofree_context()); should not result
  in a SIGABORT on exit
- add a test for this, but this test can also pass in the standalone build
  and samba3, as samba4 uses talloc_autofree_context()

metze
2007-10-10 12:14:54 -05:00
Stefan Metzmacher
4cd59d47c8 r18952: fix compiler warning (merge from samba4)
metze
2007-10-10 12:14:50 -05:00
Stefan Metzmacher
d49ffbc19b r18810: use a copy of samba4's talloc under lib/talloc/
to make mergeing easier.

metze
2007-10-10 12:01:02 -05:00