1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

1780 Commits

Author SHA1 Message Date
Andrew Tridgell
15e84a9a09 charcnv: removed the allow_badcharcnv and allow_bad_conv options to convert_string*()
we shouldn't accept bad multi-byte strings, it just hides problems

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
2011-03-24 01:47:26 +01:00
Andrew Tridgell
451856698f charset: remove another allow_badcharcnv check
better to fail only if there is a bad character
2011-03-24 01:01:04 +01:00
Matthias Dieter Wallnöfer
7d2d902d51 async_rec/async_sock.c - add an additional "const"
In order to suppress a build warning.

Acked-by: Volker and Metze

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Mar 23 10:26:23 CET 2011 on sn-devel-104
2011-03-23 10:26:23 +01:00
Andrew Bartlett
41051fd3d3 lib/util: Merge basic string length and comparison functions
These functions now use the codepoints for more accurate string
handling and now form common code.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Mar 23 08:21:54 CET 2011 on sn-devel-104
2011-03-23 08:21:54 +01:00
Andrew Tridgell
cd4306b01e charcnv: remove the automatic fail on allow_badcharcnv true
we should just fail the call if the string really is bad
2011-03-23 12:19:29 +11:00
Andrew Tridgell
6e8b6358ec fault: fixed smb_panic() prototypes
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Mar 23 01:51:44 CET 2011 on sn-devel-104
2011-03-23 01:51:44 +01:00
Andrew Tridgell
a65ba83ae6 fault: moved fault.c into common library 2011-03-23 11:03:58 +11:00
Andrew Tridgell
1ac079e3f6 fault: switch s4 to use the common fault.c 2011-03-23 11:03:57 +11:00
Andrew Tridgell
580997ede0 fault: get fault.c ready for use by s4
this moves the s3 specific dumpcore code into source3/lib/dumpcore.c,
and uses a function pointer to setup which smb_panic call to use
2011-03-23 11:03:57 +11:00
Andrew Tridgell
058c3bb923 fault: moved s3 fault.c to top level 2011-03-23 11:03:57 +11:00
Andrew Tridgell
cb2cc34eff fault: rename fault.c to fault_s4.c
this is in preparation for merging the s3 fault code into common
2011-03-23 11:03:57 +11:00
Jelmer Vernooij
a8eea9e946 lib/replace/test: Add missing include for prototype.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 19 16:45:56 CET 2011 on sn-devel-104
2011-03-19 16:45:56 +01:00
Jelmer Vernooij
df0b7f1c34 lib/: Fix prototypes for functions. 2011-03-19 03:20:05 +01:00
Jelmer Vernooij
f70a658b82 libreplace: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
Simo Sorce
5d55ae0a29 lib-util: put data_blob back in the public library
data_blob is defined ina public header, so it needs to be exposed in the public
library.

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Thu Mar 17 15:39:08 CET 2011 on sn-devel-104
2011-03-17 15:39:08 +01:00
Simo Sorce
2a608ba856 dcerpc: we do not need these as public headers
latest openchange doesn't need these headers either
fix _PRINTF_ATTRIBUTE in tdr.h, as it was failing to work after removing
proto.h due to side effects. PRINTF_ATTRIBUTE is ok and is define in talloc.h
which is included by tdr.h

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Wed Mar 16 23:45:20 CET 2011 on sn-devel-104
2011-03-16 23:45:20 +01:00
Andrew Tridgell
c56e3ccfc9 lib: don't install public headers if a private library
for talloc/tevent/tdb, only install headers if we are doing a
standalone build
2011-03-15 12:22:20 +11:00
Andrew Tridgell
5ca9db07f5 lib: fixed header paths
this is a public header, and needs to use sane paths for the public
header creation
2011-03-15 12:22:19 +11:00
Andrew Tridgell
7293c370d3 talloc: use <talloc.h> not "talloc.h"
this ensures we use the right header
2011-03-15 12:22:19 +11:00
Andrew Tridgell
7b948a39e1 tdb: use public_headers to install header files 2011-03-15 12:22:19 +11:00
Andrew Tridgell
0a0ebd73fb tdb: use system include style for system headers 2011-03-15 12:22:19 +11:00
Andrew Tridgell
a18a556237 tevent: use public_headers for tevent.h 2011-03-15 12:22:18 +11:00
Andrew Tridgell
e3e1eada45 talloc: use public_headers to install talloc.h and pytalloc.h
this allows them to be included in the test_headers.h generated header
2011-03-15 12:22:18 +11:00
Matthias Dieter Wallnöfer
f5ce61ea57 lib/util/fault.c - "call_backtrace" - no need to have "backtrace_size" as size_t
The function "backtrace" returns an "int".
2011-03-10 11:12:05 +01:00
Stefan Metzmacher
494d497b99 tevent: change version to 0.9.11
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar 10 10:24:49 CET 2011 on sn-devel-104
2011-03-10 10:24:49 +01:00
Stefan Metzmacher
b7d5ddfa61 tevent/poll: use fde->additional_flags to hold the array index
metze
2011-03-10 09:37:02 +01:00
Stefan Metzmacher
20284f2a84 tevent: change tevent_fd->additional_flags to uint64_t
metze
2011-03-10 09:37:02 +01:00
Stefan Metzmacher
a29999392a socket_wrapper: fix handling of addr and addrlen
metze
2011-03-09 12:27:25 +01:00
Andreas Schneider
d4867ef838 tevent: Fixed tevent_wakeup_send code example. 2011-03-09 09:28:27 +01:00
Stefan Metzmacher
2c7c3d03d5 lib/socket_wrapper: try to fix the build on solaris
struct msg does not contain msg_control, msg_controllen and msg_flags
on solaris.

metze
2011-03-04 21:19:05 +01:00
Andrew Tridgell
3560db3da3 debug: fixed a valgrind error
Thanks to Volker for spotting this one!

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Mar  4 03:09:52 CET 2011 on sn-devel-104
2011-03-04 03:09:52 +01:00
Günther Deschner
9167d70e77 libreplace: move "struct timespec" checks into libreplace (where timespec is already used).
Bjoern, Metze, please check.

Guenther
2011-03-04 00:28:27 +01:00
Stefan Metzmacher
a5d54579ea socket_wrapper: use swrap_sendmsg_before()/after() in swrap_writev()
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Mar  3 23:43:39 CET 2011 on sn-devel-104
2011-03-03 23:43:39 +01:00
Stefan Metzmacher
e831376f91 socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendmsg()
This also adds the same logic for broadcast as in swrap_sendto()
for SOCK_DGRAM.

metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
4a736f0fbe socket_wrapper: use swrap_sendmsg_before()/after() in swrap_send()
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
a2db6b4dba socket_wrapper: use swrap_sendmsg_before()/after() in swrap_sendto()
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
8c6d7d7b27 socket_wrapper: add swrap_sendmsg_before/after helper functions
Currently have almost the same logic in swrap_send(), swrap_sendto(),
swrap_writev() and swrap_sendmsg(), this helper functions
let combine all the logic in 2 places.

metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
c9ae810209 socket_wrapper: replace recvmsg() correctly
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
ec028b555b socket_wrapper: readv() should only work on connected sockets
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
7bdc3db9ea socket_wrapper: move swrap_ioctl() above the send*/recv* functions
metze
2011-03-03 22:57:26 +01:00
Stefan Metzmacher
0ad8d459c6 socket_wrapper: fix compiler warnings
metze
2011-03-03 22:57:25 +01:00
Stefan Metzmacher
e3c0d66110 socket_wrapper: don't allow connect() to the broadcast address
This will simplify other code later.

metze
2011-03-03 22:57:25 +01:00
Günther Deschner
875d9b8098 lib/util: LIBCRYPTO is in common already, so add it to samba-util-common.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Mar  3 18:08:30 CET 2011 on sn-devel-104
2011-03-03 18:08:30 +01:00
Andrew Bartlett
5f5ca913b7 lib/util: new merged debug system
This is the s3 debug system, with a number of changes to tidy it up
for common use.  The debug class system is simplified by the removal of the
ISSET table, the system no longer attempts to cope with assignment of
DEBUGLEVEL, and the full class table is always available (rather than
just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup.  It is also no longer
confusingly described as a hack, but as the initial table.

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Mar  1 04:32:12 CET 2011 on sn-devel-104
2011-03-01 04:32:12 +01:00
Andrew Bartlett
4acef317a0 lib/util move debug.[ch] out of the way
This will allow a modified version of the s3 debug system to be the
new common debug system.

Andrew Bartlett
2011-03-01 03:46:18 +01:00
Andrew Bartlett
608c8e7872 lib/util/time: Merge time functions from source3/lib/time.c 2011-03-01 02:13:22 +01:00
Jeremy Allison
410f9fad6c Fix "cast from pointer to integer of different size" warnings on a 64-bit machine. 2011-02-28 21:58:20 +01:00
Jelmer Vernooij
1a6fd61a41 tevent: Add lib/tevent as include directory. 2011-02-28 21:11:21 +01:00
Jelmer Vernooij
31d09b13d3 tdb: Use <tdb.h> to include tdb so system headers are found when building against system tdb. 2011-02-28 21:11:21 +01:00
Jelmer Vernooij
4a42272f09 tdr: Inline proto header to allow tdr.h to be used as it's a public header. 2011-02-28 21:11:21 +01:00