1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

1695 Commits

Author SHA1 Message Date
Günther Deschner
87fec1450f lib: add strlen_m_term_null from s3.
Guenther
2009-01-16 00:28:45 +01:00
Jelmer Vernooij
0cbce777a3 Fix indentation for some configure options. 2009-01-15 21:17:56 +01:00
Michael Adam
6f53a487b4 nss_wrapper.pl: fix "Use of uninitialized value $i in array element" messages
I just saw this in "make test" after "SMBD OUTPUT:"...

Michael
2009-01-12 13:04:40 +01:00
Stefan Metzmacher
5d19187d3d tevent: use for() loops instead of while() loops
metze
2009-01-12 09:23:05 +01:00
Tim Prouty
cd5039b188 tevent: Fix build break 2009-01-11 11:00:50 -08:00
Bo Yang
de4812ea1c Fix tevent_common_context_destructor to remove all events instead of just the first one
Signed-off-by: Bo Yang <boyang@novell.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-01-11 15:26:47 +01:00
Stefan Metzmacher
49a6d757b4 s4:debug: make setup_logging() a bit more compatible with samba3
In samba3 the 2nd argument is bool interactive.
E.g ndrdump uses true there which used to map to DEBUG_FILE
in samba4, it maps to DEBUG_STDOUT now, which is better.

In the end end samba3 should also use the samba4 version of
setup_logging()

metze
2009-01-09 13:10:07 +01:00
Jelmer Vernooij
078879735b Print the failed value in the time tests. 2009-01-08 12:45:57 +01:00
Jelmer Vernooij
ba5d6e6d70 Avoid using a utility header for Python replacements included in Samba,
since this will not be shipped with talloc/tdb/tevent/etc.
2009-01-08 12:20:20 +01:00
Tim Prouty
61a23c5eea s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4 2009-01-07 15:03:16 -08:00
Stefan Metzmacher
4e7f0a8851 tevent: don't try to dereference fde->event_ctx when the event context doesn't exists anymore
metze
2009-01-07 06:36:23 +01:00
Jelmer Vernooij
a97c9bab44 Add dependency to talloc in tevent pc file. 2009-01-06 15:53:50 +01:00
Andrew Bartlett
a7e7fa8490 Ensure libreplace is included into the tevent python bindings
Without this, the samba4.tevent.python test fails

Andrew Bartlett
2009-01-06 22:44:45 +11:00
Jelmer Vernooij
d2c70d24e1 py: Properly increase the reference counter of Py_None. 2009-01-06 04:13:57 +01:00
Stefan Metzmacher
e83a55c356 tevent: add some debugging for timer events, that mostly matches samba3
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
b09718fef2 tevent: add tevent_context destructor that unlinks the events from the context
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
e240ca5bdd tevent: don't crash if te->event_ctx is NULL
metze
2009-01-05 22:44:54 +01:00
Stefan Metzmacher
ceac26008c tevent: keep a linked list of fd_events
metze
2009-01-05 22:44:53 +01:00
Stefan Metzmacher
b24924d6a6 tevent: keep a linked list of signal events
metze
2009-01-05 22:44:53 +01:00
Stefan Metzmacher
a99f76960d tevent: make tevent_debug() a noop if ev is NULL
metze
2009-01-05 22:44:52 +01:00
Volker Lendecke
6572eff183 Attempt to fix the build on netbsd5 2009-01-05 22:10:25 +01:00
Stefan Metzmacher
beb8b8fc2d tevent: fix tevent_add_timer() and tevent_add_aio() macros
metze
2009-01-05 10:53:39 +01:00
Stefan Metzmacher
033428d7da tevent: move samba4 stuff from libtevent.m4 to samba.m4
metze
2009-01-04 18:57:18 +01:00
Stefan Metzmacher
e058e51d63 tevent: completely initialize tevent_fd structs
This fixes crash bugs... I forgot to commit and squash
this to commit e45ed828d0

metze
2009-01-04 09:39:17 +01:00
Stefan Metzmacher
c652b42612 tevent: raise version to 0.9.2 after AUTOCLOSE changes
metze
2009-01-03 19:58:55 +01:00
Stefan Metzmacher
67810019a0 tevent: remove TEVENT_FD_AUTOCLOSE feature
TEVENT_FD_AUTOCLOSE adds a dependency to SOCKET_WRAPPER,
which is bad. Callers should use tevent_fd_set_close_fn() now.

metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
2c8a10fe88 tevent: remove dependency to SOCKET_WRAPPER via "system/network.h"
metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
193eba85a9 tevent: add tevent_fd_set_auto_close()
tevent_fd_set_auto_close() is a simple wrapper
arround tevent_fd_set_close_fn() with a callback
that uses plain close(2).

metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e45ed828d0 tevent: add tevent_fd_set_close_fn()
Let callers specify a close function
as an alternative to TEVENT_FD_AUTOCLOSE.

metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e928d863e2 tevent: move some common tevent_fd related functions into tevent_fd.c
metze
2009-01-03 19:58:50 +01:00
Stefan Metzmacher
1a26b67ee3 tevent: specify argument names for the event handlers
metze
2009-01-03 19:58:49 +01:00
Stefan Metzmacher
7dff14df46 tevent: fix standalone make test
metze
2009-01-03 19:58:49 +01:00
Stefan Metzmacher
b00f6d169c tevent: raise version to 0.9.1
This 0.9.1 isn't compatible with 0.9.0,
but it makes only sense to raise the major version
after we have reached 1.0.0.

metze
2009-01-03 09:14:23 +01:00
Jeremy Allison
11576353f6 Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-01-02 11:39:04 -08:00
Jeremy Allison
2234173220 Fix warnings in make test code.
Jeremy.
2009-01-02 11:38:24 -08:00
Stefan Metzmacher
73ef1773be tevent: only provide compat macros if the caller wants them
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
2176295b02 tevent: change pytevent to tevent_*
metze
2009-01-02 18:16:54 +01:00
Stefan Metzmacher
784b2dc8d0 tevent: use TEVENT_FD_* instead of EVENT_FD_*
metze
2009-01-02 18:16:53 +01:00
Stefan Metzmacher
4f04b06ac2 tevent: rename ev_debug_ops => tevent_debug_ops
And related changes, but we keep compat macros

metze
2009-01-02 18:16:53 +01:00
Stefan Metzmacher
d79fc2ffcd tevent: rename events => tevent in tevent.pc
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
227f799dee tevent: pass down handler_name and location to the backend layer
metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
49acf9799a tevent: make tevent_add_*() macros arround _tevent_add_*()
This passes some additional debug information into
the events system to make it easier to find bugs.

metze
2009-01-02 18:16:52 +01:00
Stefan Metzmacher
b12e78e645 tevent: use HAVE_EPOLL instead of HAVE_EVENTS_EPOLL
metze
2009-01-02 18:16:51 +01:00
Stefan Metzmacher
d9529a331a tevent: rename event_register_backend() => tevent_register_backend()
And fix the callers and there init functions.

metze
2009-01-02 18:16:51 +01:00
Stefan Metzmacher
0a73e8b334 tevent: rename event_context_init* => tevent_context_init*()
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
7db6399069 tevent: rename event_[s|g]et_fd_flags => tevent_fd_[s|g]et_flags
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
d33b6aeff3 tevent: rename event_loop_* => tevent_loop_*
metze
2009-01-02 18:16:50 +01:00
Stefan Metzmacher
8bdc947993 tevent: rename event_set_default_backend() => tevent_set_default_backend()
metze
2009-01-02 18:16:49 +01:00
Stefan Metzmacher
0ffed7d992 tevent: use libreplace headers instead of system headers
metze
2009-01-02 18:16:49 +01:00
Stefan Metzmacher
3f8f99eaec s4:tevent: move event_context_find() to tevent_s4.c
metze
2009-01-02 18:16:48 +01:00
Jeremy Allison
07e0094365 Fix all warnings in source3 with gcc4.3.
Jeremy.
2008-12-31 18:06:57 -08:00
Tim Prouty
0cb430c22e s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4 2008-12-30 16:19:42 -08:00
Stefan Metzmacher
c2dc2e0b46 lib/tevent: fix standalone make distclean realdistclean
Bug report by Brad Hards <bradh@frogmouth.net>.

metze
2008-12-30 08:58:52 +01:00
Stefan Metzmacher
183c379fe5 s4:lib/tevent: rename structs
list=""
list="$list event_context:tevent_context"
list="$list fd_event:tevent_fd"
list="$list timed_event:tevent_timer"

for s in $list; do
	o=`echo $s | cut -d ':' -f1`
	n=`echo $s | cut -d ':' -f2`
	r=`git grep "struct $o" |cut -d ':' -f1 |sort -u`
	files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4`
	for f in $files; do
		cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp
		mv $f.tmp $f
	done
done

metze
2008-12-29 20:46:40 +01:00
Stefan Metzmacher
7bf5768a52 lib/tevent: rename event_* => tevent_* in the header file
We have compat macros to keep the callers happy.

metze
2008-12-29 08:42:00 +01:00
Stefan Metzmacher
83bcc4e027 lib/tevent: libtevent will change a lot until it's version 1.0.0
metze
2008-12-24 13:59:00 +01:00
Jelmer Vernooij
30bdb68c9e Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-12-23 23:26:32 +01:00
Jelmer Vernooij
dcc4081f75 Fix more compiler warnings. 2008-12-23 23:22:57 +01:00
Jelmer Vernooij
bd64688c6a Fix more compiler warnings in various places. 2008-12-23 22:57:11 +01:00
Jelmer Vernooij
32e03f9fa5 Install tevent_internal.h, as Samba 4 needs it. 2008-12-23 22:57:00 +01:00
Jelmer Vernooij
5c75b65ca1 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-12-23 22:12:23 +01:00
Jelmer Vernooij
ef80d1b794 Fix use of "time offset" parameter, and add test to make sure I don't break it again :-) 2008-12-23 22:10:34 +01:00
Jelmer Vernooij
31dc07ee28 pytevent: Add missing file. 2008-12-23 20:13:17 +01:00
Jelmer Vernooij
8b24da201b Allow using external libtevent. 2008-12-23 19:59:57 +01:00
Jelmer Vernooij
22703bf3ff standalone: Use more variables, preparing to include these files from main
Samba 4 makefile.
2008-12-23 19:44:11 +01:00
Jelmer Vernooij
465f78021e Move Samba4-specific file out of common libtevent. 2008-12-23 19:28:22 +01:00
Jeremy Allison
aaea68791c In gcc version 4.3.2 we get warnings for functions declared with
attribute warn_unused_result. Start to fix these.
Jeremy.
2008-12-22 20:08:14 -08:00
Jelmer Vernooij
bbc95fb1a8 ldb: Fix linking against tevent library (rather than events)
replace: Fix copyright for dlfcn.c.
2008-12-23 04:18:31 +01:00
Jelmer Vernooij
86cee0b28c pytalloc: Add some comments, use talloc object location in repr rather
than python object location.
2008-12-23 04:06:21 +01:00
Jelmer Vernooij
998d588192 python/tevent: Remove use of pytalloc.h. 2008-12-23 03:25:51 +01:00
Jelmer Vernooij
e6d5552250 Fix prefixing swig library directory with prefix. 2008-12-23 01:40:08 +01:00
Jelmer Vernooij
e9deb75759 Fix installation of standalone tevent Python module. 2008-12-22 23:55:01 +01:00
Jelmer Vernooij
6704c27a78 Fix standalone build of tdb python module, update ignores for standalone tdb. 2008-12-22 23:39:30 +01:00
Jelmer Vernooij
c023828962 Fix missing symbols issues when building with shared libraries. 2008-12-22 21:03:09 +01:00
Jelmer Vernooij
50b0c5325e Never build tevent modules as shared objects. 2008-12-22 17:56:28 +01:00
Jelmer Vernooij
29dd98be09 Remove unused Samba4-specific init functions for libtevent. 2008-12-22 17:43:46 +01:00
Jelmer Vernooij
6efb7ff981 Fix various Python-related bugs. 2008-12-21 07:34:27 +01:00
Jelmer Vernooij
eeb25cf548 Fix more introduced regressions in new bindings. 2008-12-21 04:36:16 +01:00
Jelmer Vernooij
2e7a6cb6bf py: Fix initialisation of subtypes, fix segfaults. 2008-12-21 03:08:14 +01:00
Jelmer Vernooij
c1a9b68623 Create and use convenience function for creating new talloc-wrapping Python Objects, support subtypes of DCE/RPC interfaces properly 2008-12-21 00:37:31 +01:00
Jelmer Vernooij
5688f9b13e Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-12-20 21:21:19 +01:00
Jelmer Vernooij
ec80992ef5 Fix tevent python module build as part of samba 4. 2008-12-20 21:19:48 +01:00
Jelmer Vernooij
28f80dbb7c Stop using SWIG for ldb Python bindings. 2008-12-20 19:54:13 +01:00
Jelmer Vernooij
1f4bd4b82c Fix standalone compilation of events library. 2008-12-20 19:23:30 +01:00
Jelmer Vernooij
383e7c4d16 Add missing files for standalone build. 2008-12-20 18:06:31 +01:00
Jelmer Vernooij
a57b1aa0f1 Initial work using manual Python bindings for LDB, rather than SWIG-generated ones. 2008-12-19 01:22:07 +00:00
Jelmer Vernooij
6fe6983e4c Make sure to not close tdb database more than once. 2008-12-18 20:42:50 +00:00
Jelmer Vernooij
8c1ede0b32 Remove swig use from tdb standalone build. 2008-12-18 19:49:53 +00:00
Jelmer Vernooij
2da551bbcc Implement missing functions in pytdb. 2008-12-18 19:41:02 +00:00
Jelmer Vernooij
2a61fd41e9 Add simple manually written replacement for the tdb module. 2008-12-18 18:57:21 +00:00
Stefan Metzmacher
b97f17ddf1 lib/util: make it possible to use debug.h with using xfile.h
metze
2008-12-17 13:31:29 +01:00
Stefan Metzmacher
46eda79090 s4:lib/tevent: add lib/events/ compat and let things compile
metze
2008-12-17 13:31:29 +01:00
Stefan Metzmacher
504f8816e3 s4:lib/events: move to toplevel directory as lib/tevent/
This commit will not compile on its own.

metze
2008-12-17 13:31:28 +01:00
Tim Prouty
e48a5cd5d4 s3/s4: Fix "shadows a global declaration" warning 2008-12-16 08:34:53 -08:00
Holger Hetterich
42366bcbbd Added a simple tdb integrity check to tdbtool. The command "check" runs traverse on the currently open tdb, and returns the number of entries if the integrity check is successful. 2008-12-16 13:58:48 +01:00
Andrew Tridgell
936d76802f imported the tdb_repack() code from CTDB
The tdb_repack() function repacks a TDB so that it has a single
freelist entry. The file doesn't shrink, but it does remove all
freelist fragmentation. This code originated in the CTDB vacuuming
code, but will now be used in ldb to cope with fragmentation from
re-indexing
2008-12-16 14:38:17 +11:00
Andrew Tridgell
2e4247782b make tdbbackup use transactions
tdbbackup was originally written before we had transactions, and it
attempted to use its own fsync() calls to make it safe. Now that we
have transactions we can do it in a much safer (and faster!) fashion
2008-12-16 14:36:56 +11:00
Tim Prouty
1eb743ab8e s3: Change sockaddr util function names for consistency
Also eliminates name conflicts with OneFS system libraries
2008-12-03 10:40:20 -08:00
Andreas Schneider
b39611c36b Fix circular dependency error with autoconf 2.6.3.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
2008-11-26 16:44:50 +01:00
Tim Prouty
363fe11536 s3/s4 build: Fix "might be unitialized" warning 2008-11-20 18:04:42 -08:00
Tim Prouty
2b85288e82 s3 build: Fix incomplete types warnings 2008-11-20 13:11:59 -08:00
Tim Prouty
1115b7b342 s3/s4 build: Fix execinfo and sasl build error when the libs/headers are in non-standard locations.
These configure checks have the correct flags at configure time, so
let's pass them through so they are used at compile time.
2008-11-18 17:43:51 -08:00
Jelmer Vernooij
1c07c30d31 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-11-18 01:36:02 +01:00
Jelmer Vernooij
ab55ecb881 Explicitly include samba4 includes.h to fix the build. 2008-11-18 01:35:10 +01:00
Andrew Bartlett
3d0a3c1078 Add helpful function for comparison of DATA_BLOB elements 2008-11-17 10:12:13 +11:00
Stefan Metzmacher
64b6d2d3e3 lib/util: hex_encode_talloc(): fix error path and set talloc name
metze
2008-11-16 16:24:33 +01:00
Stefan Metzmacher
45cf68ce8f s4:torture: fix the build with auto dependencies
metze
2008-11-16 16:21:25 +01:00
Jelmer Vernooij
0e553a06ce Remove unused init function in subunit code. 2008-11-16 01:36:17 +01:00
Jelmer Vernooij
8beecd42f2 Move torture directory to top-level. 2008-11-16 00:58:08 +01:00
Jelmer Vernooij
badfac4412 Move libtorture to top-level. 2008-11-16 00:55:35 +01:00
Jelmer Vernooij
b327c0a2da Samba3: Remove more configure tests already done by libreplace. 2008-11-02 17:39:41 +01:00
Jelmer Vernooij
29177203e5 Rename class to "cls" since the first is a keyword name in C++. Thanks,
Brad.
2008-11-02 04:50:32 +01:00
Jelmer Vernooij
57a60f0920 Move lp_*() calls a bit higher up the calls tack. 2008-11-01 22:13:47 +01:00
Jelmer Vernooij
fa7bb8ac53 Remove convert_string_talloc_descriptor, add iconv_talloc(). 2008-11-01 20:56:27 +01:00
Jelmer Vernooij
e5081d6dad Move ABS() to libutil. 2008-11-01 20:44:12 +01:00
Jelmer Vernooij
1b05be1039 ALlow util/debug.h to be included more than once. 2008-11-01 15:21:31 +01:00
Jelmer Vernooij
d880faae92 Fix includes in installed version of talloc_stack.h. 2008-11-01 15:13:00 +01:00
Jelmer Vernooij
cd55fdd445 Fix return type of readlink(). 2008-11-01 04:36:24 +01:00
Jelmer Vernooij
31fa08dcbd Merge branch 'master' of /home/jelmer/samba3
Conflicts:
	lib/replace/README
	lib/replace/libreplace.m4
	lib/replace/replace.c
	source3/include/proto.h
	source3/lib/system.c
2008-11-01 04:02:47 +01:00
Jelmer Vernooij
5a56c0adf2 Use dup2() replacement from libreplace. 2008-11-01 03:58:14 +01:00
Jelmer Vernooij
6a2caa34b2 Remove sys_chroot() - libreplace already provides an alternative. 2008-11-01 03:46:09 +01:00
Jelmer Vernooij
a6d537bb6c Move sys_realpath() to libreplace. 2008-11-01 03:42:27 +01:00
Jelmer Vernooij
38d67363ac Move sys_lchown() to libreplace. 2008-11-01 03:39:20 +01:00
Jelmer Vernooij
e8cda43e17 Move sys_symlink() to libreplace. 2008-11-01 03:35:58 +01:00
Jelmer Vernooij
dbda9adfaf Move sys_readlink() to libreplace. 2008-11-01 03:33:39 +01:00
Jelmer Vernooij
bbbe6ab722 Move sys_link to libreplace. 2008-11-01 03:30:47 +01:00
Jelmer Vernooij
161d70a57a Move sys_chown() to rep_chown(). 2008-11-01 03:27:45 +01:00
Jelmer Vernooij
dfc78b1dc2 Only provide valgrind_strlen prototype when it's being compiled in. 2008-11-01 03:27:41 +01:00
Jelmer Vernooij
9de80e7abc Samba3: Include util.h header file rather than having custom prototypes. 2008-11-01 03:14:43 +01:00
Jelmer Vernooij
ce67cf0456 Install additional libutil headers. 2008-11-01 01:29:12 +01:00
Andrew Tridgell
55d55d9d9b finished adding UTF16_MUNGED charset
Changed the approach for the charset to go via utf16, which makes a
bit more sense to read. 

Added a testsuiite for UTF16_MUNGED as part of LOCAL-ICONV
2008-10-31 15:41:34 +11:00
Andrew Tridgell
391264a100 added a new charset for string2key
This charset follows the rules for converting random buffers to utf8
strings, matching the way windows does it. This should allow us to be
compatible for the generation of AES keys
2008-10-31 13:51:37 +11:00
Jelmer Vernooij
aafe9ca1aa Fix definition of environ on Mac OS X (bugzilla: #5412). 2008-10-27 23:39:53 +01:00
Jelmer Vernooij
9de5172a20 Remove duplicate check for volatile, move all utime-checks to
libreplace.
2008-10-27 23:23:15 +01:00
Jelmer Vernooij
0218669d62 Remove include/local.h and move defines to more appropriate places. 2008-10-24 17:53:38 +02:00
Jelmer Vernooij
23302413b3 Remove unused include param/param.h. 2008-10-24 16:37:56 +02:00
Jelmer Vernooij
f7692d16e3 Remove more global_loadparm instances, fix syntax errors. 2008-10-24 16:12:14 +02:00
Jelmer Vernooij
c3415b3e57 Add version of next_codepoint without iconv_convenience. 2008-10-24 16:00:43 +02:00
Jelmer Vernooij
61013deff8 Remove dependency of charset code on loadparm. 2008-10-24 14:45:31 +02:00
Jelmer Vernooij
37d885c51a Remove iconv_convenience argument from convert_string{,talloc}() but
make them wrappers around convert_string{,talloc}_convenience().
2008-10-24 14:26:46 +02:00
Jelmer Vernooij
5d146d0178 Avoid retrieving iconv convenience during loops. 2008-10-24 04:39:09 +02:00
Jelmer Vernooij
922a29992e Remove iconv_convenience parameter from simple string push/pull
functions.
2008-10-24 03:40:09 +02:00
Jelmer Vernooij
0f043c197c Move pytalloc to talloc directory. 2008-10-24 02:52:51 +02:00
Jelmer Vernooij
7ec58471df Split up codepoints code, use consistent _m suffix. 2008-10-24 02:51:03 +02:00
Jelmer Vernooij
5e4767b532 Rename string_replace_w to string_replace_m, which is more correct. 2008-10-24 01:19:33 +02:00
Jelmer Vernooij
420781bf46 Remove unnecessary include, improve function name. 2008-10-24 01:18:56 +02:00
Jelmer Vernooij
09a63accb8 Move charset library to top level. 2008-10-24 00:06:35 +02:00
Jelmer Vernooij
22f566c39b Move set_sockaddr_port to libutil. 2008-10-23 21:08:13 +02:00
Jelmer Vernooij
fe36fe8c3e Use common net utility code (address and sockaddr manipulation). 2008-10-23 20:41:15 +02:00
Jelmer Vernooij
d1bc7e56d0 Rename same_net to same_net_v4 for consistency with Samba 3. 2008-10-23 19:56:09 +02:00
Jelmer Vernooij
d70efa57ce Merge branch 'master' of git://git.samba.org/samba
Conflicts:
	lib/util/asn1_proto.h
2008-10-23 18:04:16 +02:00
Jelmer Vernooij
2f265feb17 Inline asn1_proto.h since the API is stable and public. 2008-10-23 18:03:20 +02:00
Jelmer Vernooij
d805c714bb Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 17:51:30 +02:00
Volker Lendecke
3f0406f609 Optimize x_fread to speed up the smbclient put command 2008-10-23 17:45:52 +02:00
Jelmer Vernooij
cf659fa4fe Import talloc_stack into util library. 2008-10-23 17:27:30 +02:00
Jelmer Vernooij
44b728958a Use common error definitions. 2008-10-23 15:35:21 +02:00
Jelmer Vernooij
94c522b1ab Import NTSTATUS defines from Samba 3. 2008-10-23 03:29:20 +02:00
Günther Deschner
9994cbffa7 s3-build: temporarily add asn1_proto file.
Jelmer, how can we get this autogenerated from samba3 in the non merged-build
case ?

Guenther
2008-10-22 21:58:00 +02:00
Günther Deschner
5d805425b9 lib-util: merge from s3 asn1.
Guenther
2008-10-22 21:37:36 +02:00
Günther Deschner
d81a9a9837 lib-util: fix c++ compile warning.
Guenther
2008-10-22 21:37:36 +02:00
Jelmer Vernooij
4ba0453c3c Fix AC_SEARCH_LIBS_EXT() usage. 2008-10-21 18:33:38 +02:00
Jelmer Vernooij
87ec1d2532 Make sure prototypes are always included, make some functions static and
remove some unused functions.
2008-10-20 18:59:51 +02:00
Jelmer Vernooij
01a902f599 Fix crypto test. 2008-10-20 18:59:45 +02:00
Jelmer Vernooij
0dfd5601a0 Move discard_const hack to memory.hso it can be used by Samba 3. 2008-10-20 17:15:17 +02:00
Jelmer Vernooij
93e52145a8 Provide two symbols to allow ndrdump compiled by Samba 3 to be used for
Samba 4.
2008-10-20 13:24:16 +02:00
Jelmer Vernooij
68bb6e56ba Rename BAD to BAD_DATA since the first is already defined on SunOS. 2008-10-20 10:45:42 +02:00
Jelmer Vernooij
620a27bdf1 Don't assume crypt.h is present even if crypt() is. 2008-10-20 10:38:03 +02:00
Jelmer Vernooij
974ab9d2f9 Use _EXT version of autoconf macro. 2008-10-19 15:47:36 +02:00
Jelmer Vernooij
6ba693b5de Make sure crypt libs get included. 2008-10-19 14:54:16 +02:00
Jelmer Vernooij
e09c0c1185 Merge branch 'master' of ssh://git.samba.org/data/git/samba into crypt 2008-10-19 14:27:08 +02:00
Jelmer Vernooij
085e7b0b6c Fix segfault when using DEBUG() in the merged build. 2008-10-19 14:14:55 +02:00
Jelmer Vernooij
069437a2fa Just call talloc_free directly rather than through a helper function. 2008-10-19 13:52:56 +02:00
Jelmer Vernooij
8e704e4107 Move more functions out of util_str.c into the shared util.c. 2008-10-19 12:38:16 +02:00
Jelmer Vernooij
c484b0465c Move SMB-specific attribute function to SMB client library. 2008-10-19 10:45:02 +02:00
Günther Deschner
7966b00b3a lib/util: fix strhex_to_data_blob to use data_blob_talloc.
Jelmer, I'm pretty sure you wanted to do this. Please check.

Guenther
2008-10-18 22:46:37 +02:00
Günther Deschner
98089dfccf crypto: fix remaining strhex_to_data_blob callers.
Jelmer, please check.

Guenther
2008-10-18 21:07:42 +02:00
Jelmer Vernooij
17b12ee183 Add extra parameter consistent with samba3. 2008-10-18 19:03:19 +02:00
Jelmer Vernooij
2243479b74 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-18 18:30:10 +02:00
Jelmer Vernooij
6a89b59ca6 Add TALLOC_CTX pointer to strhex_to_data_blob for consistency with Samba
3.
2008-10-18 18:09:04 +02:00
Jelmer Vernooij
33032d591f Move ufc to libreplace. 2008-10-18 17:49:41 +02:00
Jelmer Vernooij
63de2d9823 Move substitute functions to a different file. 2008-10-18 15:56:45 +02:00
Jelmer Vernooij
23c95c9119 Add libutil README file. 2008-10-18 15:49:11 +02:00
Jelmer Vernooij
b3b6d8f3f9 Fix const, dupes. 2008-10-18 15:00:18 +02:00
Jelmer Vernooij
2d89b52be8 Use separate make variables for libutil and libcrypto. 2008-10-18 14:28:40 +02:00
Jelmer Vernooij
519458a2fa Use shared util.c. 2008-10-18 14:27:13 +02:00
Jelmer Vernooij
9d9f5b44ed Use common detection function for zlib. 2008-10-18 14:14:44 +02:00
Jelmer Vernooij
fcce58cc61 Add extra argument free_on_fail to realloc_array() in Samba 4, as used by Samba 3. 2008-10-18 14:12:56 +02:00
Jelmer Vernooij
3189d14152 Use the new memory macro file from Samba 3. 2008-10-18 14:07:51 +02:00
Jelmer Vernooij
dc5dc3b469 Move some of the memory utility macros to a separate header (for now). 2008-10-18 13:59:21 +02:00
Jelmer Vernooij
0132423a09 Share libndr.h between Samba 3 and Samba 4. 2008-10-15 00:35:13 +02:00
Jelmer Vernooij
3bd73c926e Define inttypes macros if not provided by system. 2008-10-14 04:12:53 +02:00
Jelmer Vernooij
b96329f4f9 Define __STDC_FORMAT_MACROS, required for PRIu64 define (among others)
from inttypes.h.
2008-10-14 03:42:54 +02:00
Jelmer Vernooij
fd443f819e Use common fusage implementation. 2008-10-14 02:16:27 +02:00
Tim Prouty
abe443a65e Remove extraneous comment from 0a33d8bd31 2008-10-13 15:10:23 -07:00
Tim Prouty
0a33d8bd31 Check for f_frsize when using statvfs
Add a configure test for the availability of f_frsize in struct
statvfs (for broken platforms that define statvfs but still have
f_bsize/f_iosize). Ported from source3's fsusage:
commit 472519eb69
2008-10-13 14:24:08 -07:00
Jelmer Vernooij
65d5b1e7b4 Test maxsize parameter to file_load() as used in Samba 3. 2008-10-13 16:40:27 +02:00
Jelmer Vernooij
eaba778416 Add test for data_blob_string_const_null. 2008-10-13 16:29:19 +02:00
Jelmer Vernooij
aa982895e5 Add data_blob_string_const_null() function that includes the terminating
null byte and use it in Samba 3.

This matches the behaviour prior to my data_blob changes.
2008-10-13 05:20:26 +02:00
Günther Deschner
d5a11f9679 fix build warnings.
Guenther
2008-10-13 00:40:57 +02:00
Jelmer Vernooij
3994c42f19 Fix number of arguments for file_load() functions. 2008-10-12 19:46:38 +02:00
Jelmer Vernooij
cbe4f1b4fa Move zlib to top-level root. 2008-10-12 18:29:36 +02:00
Jelmer Vernooij
3b0a1b0363 Make util_tdb.h static since it is now used by Samba3. 2008-10-12 17:50:41 +02:00
Jelmer Vernooij
1b99d8fbb5 Use common util_file code. 2008-10-12 17:34:43 +02:00
Jelmer Vernooij
7d371c684d Sync util_tdb implementations. 2008-10-12 16:53:17 +02:00
Jelmer Vernooij
a52e729f30 Move rbtree.[ch] to lib/util. 2008-10-12 16:27:00 +02:00
Jelmer Vernooij
a19929dac1 Add more tests to datablob testsuite. 2008-10-12 05:59:50 +02:00
Jelmer Vernooij
c4d3dc849f Add extra const. 2008-10-12 02:27:38 +02:00
Jelmer Vernooij
d7371dae24 Add one-test testsuite for datablob. 2008-10-12 01:56:11 +02:00
Jelmer Vernooij
771e25b63b Avoid problems with paranoid malloc checker. 2008-10-12 01:48:22 +02:00
Jelmer Vernooij
348be5f1e4 Share data_blob implementation. 2008-10-12 01:46:15 +02:00
Jelmer Vernooij
218f482fbf Use common strlist implementation in Samba 3 and Samba 4. 2008-10-12 00:56:56 +02:00
Jelmer Vernooij
cb78d4593b Cope with changed signature of http_timestring(). 2008-10-11 23:57:44 +02:00
Jelmer Vernooij
75a36a9a54 Add some simple tests for lib/util/time.c 2008-10-11 23:25:35 +02:00
Jelmer Vernooij
bb33097fb7 Make sure x_fdup compiles on Samba 4. 2008-10-11 22:23:07 +02:00
Jelmer Vernooij
e439b3e7ab Use xfile from common lib/util in Samba 3.
Conflicts:

	source3/Makefile.in
2008-10-11 21:52:55 +02:00
Jelmer Vernooij
7a27c07a27 Remove duplicate copy of dlinklist.h. 2008-10-11 21:48:00 +02:00
Jelmer Vernooij
5c44ed6954 Clean up properly. 2008-10-11 21:33:15 +02:00
Jelmer Vernooij
9565999755 Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
Jelmer Vernooij
caa4e42860 Move lib/util from source4 to top-level libutil.
Conflicts:

	source4/Makefile
2008-10-11 21:05:38 +02:00
Jelmer Vernooij
621cf3c9bf Use data_blob() for now, since it seems to be the only function available in both Samba 3 and Samba 4. 2008-10-11 21:02:13 +02:00
Jelmer Vernooij
a85f663485 Make sure to allocate copy for arc4 data, to avoid problems freeing
later.
2008-10-11 20:26:40 +02:00
Jelmer Vernooij
033bc4682b Prevent errors with data_blob() being a macro in s4 and function in s3. 2008-10-11 16:17:14 +02:00
Jelmer Vernooij
f8a02a1a80 Fix subunit files location after cherrypicks. 2008-10-08 03:33:38 +02:00
Jelmer Vernooij
df4e9c7066 Fix path apparently gone wrong by cherrypick. 2008-10-08 02:23:51 +02:00
Jelmer Vernooij
f9facb5120 Move all subunit files to lib directory. 2008-10-08 02:22:39 +02:00
Jelmer Vernooij
99b2089752 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-08 02:21:49 +02:00
Jelmer Vernooij
8da78b7325 Move subunit helper utility to specific subunit directory. 2008-10-08 02:19:59 +02:00
Tim Prouty
abf00f710d Changed variable name from f19086872e to match v3-[23]-test 2008-10-07 11:00:54 -07:00
Tim Prouty
f19086872e Fixed "declaration shadows global declaration" warnings.
The patch simply uses a more descriptive variable name for tcp_seq.

../lib/socket_wrapper/socket_wrapper.c:753: warning: declaration of 'tcp_seq' shadows a global declaration
/usr/include/netinet/tcp.h:40: warning: shadowed declaration is here
../lib/socket_wrapper/socket_wrapper.c: In function `swrap_marshall_packet':
../lib/socket_wrapper/socket_wrapper.c:919: warning: declaration of 'tcp_seq' shadows a global declaration
/usr/include/netinet/tcp.h:40: warning: shadowed declaration is here
2008-10-06 17:13:28 -07:00
Jelmer Vernooij
ca44340891 Fix some syntax errors for use with ReST. 2008-10-01 18:06:55 +02:00
Stefan Metzmacher
8b7199e7b2 lib/tdb: increase the version number after some critial changes
The tdb_transaction/traverse interaction fixes are critical.

metze
2008-09-29 04:15:11 +02:00
Jelmer Vernooij
f10d8b8415 Add separate header file for arcfour. 2008-09-24 18:49:58 +02:00
Jelmer Vernooij
e3ef8803ee Fix include paths. 2008-09-24 16:10:53 +02:00
Jelmer Vernooij
2413a72006 Use shared copy of hmac5 implementation. 2008-09-24 15:44:34 +02:00
Jelmer Vernooij
6925202bde Move source4/lib/crypto to lib/crypto. 2008-09-24 15:30:23 +02:00
Stefan Metzmacher
2019a98e46 lib/talloc: move main() out of testsuite.c
metze
2008-09-22 00:20:39 +02:00
Stefan Metzmacher
05525071e0 libreplace: move main() out of testsuite.c
metze
2008-09-22 00:09:12 +02:00
Simo Sorce
3235e25425 Add shared-build target to tdb.
Useful to build multiple standalone libraries that depend on each other
without having to install them to the final install dir during the build.
2008-09-19 18:07:53 -04:00
Simo Sorce
e07400525f Add shared-build target to talloc.
Useful to build multiple standalone libraries that depend on each other
without having to install them to the final install dir during the build.
2008-09-19 18:07:37 -04:00
Simo Sorce
49b89633f1 Fix standalone builds adjusting to new relative path.
Add shared-build target to libreplace.
Useful to build multiple standalone libraries that depend on each other
without having to install them to the final install dir during the build.
2008-09-19 18:06:46 -04:00
Jelmer Vernooij
186d2d83cb Provide tdb.open and ldb.open python functions. 2008-09-19 12:47:52 +02:00
Jelmer Vernooij
a07239ba03 Fix finding of popt sources for systems that don't have popt. 2008-09-17 15:44:16 +02:00
Jelmer Vernooij
7106cd9fd5 Fix merged build. 2008-09-17 14:25:25 +02:00
Jelmer Vernooij
d6983b2e45 Add simple README file. 2008-09-17 14:20:56 +02:00
Jelmer Vernooij
94855cd692 Move common libraries from root to lib/. 2008-09-17 14:11:12 +02:00