summaryrefslogtreecommitdiff
path: root/lib/util
AgeCommit message (Collapse)AuthorFilesLines
2011-03-30Fix convert_string() to take a *converted_size arg. and return a bool.Jeremy Allison3-34/+45
Makes these interfaces much harder to misuse and easier to ensure error checking. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 30 23:59:37 CEST 2011 on sn-devel-104
2011-03-30lib/util/charset Add tests for convert_string_talloc_handle()Andrew Bartlett3-0/+431
Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 30 13:02:47 CEST 2011 on sn-devel-104
2011-03-30lib/util Move base64 functions into lib/util/base64.cAndrew Bartlett4-3/+155
Andrew Bartlett
2011-03-30lib/util/charset Remove pointless static bool initialisedAndrew Bartlett1-5/+0
2011-03-30s3-messages: only include messages.h where needed.Günther Deschner1-0/+1
Guenther
2011-03-30lib/util/util_pw: share more code between lib/util/util_pw.c and ↵Günther Deschner2-8/+12
source3/lib/username.c Guenther
2011-03-30lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner3-0/+94
Guenther
2011-03-30lib/util/util_pw: temporary rename of getpwnam_alloc and getpwuid_alloc.Günther Deschner1-2/+2
Guenther
2011-03-29debug: ignore debug_set_logfile() with a blank stringAndrew Tridgell1-1/+5
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Mar 29 07:03:58 CEST 2011 on sn-devel-104
2011-03-29lib: removed a spurios declaration of 'logfile'Andrew Tridgell1-1/+0
we don't have a global logfile variable any more Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-03-25charcnv: ensure convert_string_error doesn't conflict with s3 functionAndrew Tridgell1-5/+5
use _handle for handle based functions Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Mar 25 05:22:24 CET 2011 on sn-devel-104
2011-03-25lib/util/charset rename iconv_convenience to iconv_handleAndrew Bartlett6-79/+79
This better reflects what this structure is Andrew Bartlett
2011-03-25charcnv: added convert_string_error()Andrew Tridgell1-33/+57
this will allow us to remove conv_silent Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-03-25unistr: moved some UCS2 macros into util_unistrAndrew Tridgell1-9/+0
we need to move towards eliminating smb_ucs2_t. This moves a couple of the related macros into the only file they are used in Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-03-25libcli: created smb_constants.hAndrew Tridgell1-0/+1
this starts the (long!) process of moving some of the SMB constants into common files. This just moves the FLAGS2_ defines, which are needed for common string routines (for FLAGS2_UNICODE_STRINGS)
2011-03-25lib: remove unused pieces of string_wrappers.hAndrew Tridgell1-6/+0
2011-03-25lib: move the string wrappers from source3/include to common lib/utilAndrew Tridgell1-0/+132
this will allow the common charcnv library to use the string wrappers Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-03-24charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell4-44/+36
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-24charset: remove another allow_badcharcnv check Andrew Tridgell1-3/+0
better to fail only if there is a bad character
2011-03-23lib/util: Merge basic string length and comparison functionsAndrew Bartlett5-343/+427
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-23charcnv: remove the automatic fail on allow_badcharcnv trueAndrew Tridgell1-5/+0
we should just fail the call if the string really is bad
2011-03-23fault: fixed smb_panic() prototypesAndrew Tridgell1-2/+0
Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Mar 23 01:51:44 CET 2011 on sn-devel-104
2011-03-23fault: moved fault.c into common libraryAndrew Tridgell1-2/+2
2011-03-23fault: switch s4 to use the common fault.cAndrew Tridgell2-237/+1
2011-03-23fault: get fault.c ready for use by s4Andrew Tridgell2-299/+74
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-23fault: moved s3 fault.c to top levelAndrew Tridgell1-0/+380
2011-03-23fault: rename fault.c to fault_s4.cAndrew Tridgell2-11/+11
this is in preparation for merging the s3 fault code into common
2011-03-19lib/: Fix prototypes for functions.Jelmer Vernooij1-2/+2
2011-03-17lib-util: put data_blob back in the public librarySimo Sorce1-2/+2
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-15lib: fixed header pathsAndrew Tridgell1-8/+8
this is a public header, and needs to use sane paths for the public header creation
2011-03-15talloc: use <talloc.h> not "talloc.h"Andrew Tridgell1-1/+1
this ensures we use the right header
2011-03-10lib/util/fault.c - "call_backtrace" - no need to have "backtrace_size" as size_tMatthias Dieter Wallnöfer1-1/+1
The function "backtrace" returns an "int".
2011-03-04debug: fixed a valgrind errorAndrew Tridgell1-1/+4
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-03lib/util: LIBCRYPTO is in common already, so add it to samba-util-common.Günther Deschner1-2/+2
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-01lib/util: new merged debug systemAndrew Bartlett7-426/+1461
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-01lib/util move debug.[ch] out of the wayAndrew Bartlett3-1/+1
This will allow a modified version of the s3 debug system to be the new common debug system. Andrew Bartlett
2011-03-01lib/util/time: Merge time functions from source3/lib/time.cAndrew Bartlett2-0/+76
2011-02-28tdb: Use <tdb.h> to include tdb so system headers are found when building ↵Jelmer Vernooij2-2/+2
against system tdb.
2011-02-28Use <tevent.h> so the system tevent gets included, if enabled.Jelmer Vernooij2-3/+3
2011-02-28Remove sys_select[_intr]Volker Lendecke2-158/+0
2011-02-28s3: Add sys_poll_intrVolker Lendecke2-0/+27
2011-02-28s3: Add sys_pollVolker Lendecke2-0/+81
2011-02-27s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke1-3/+3
All callers had to cast this anyway Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
2011-02-23lib/util/charset: ICONV_WRAPPER needs talloc.Günther Deschner1-1/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 23 12:46:33 CET 2011 on sn-devel-104
2011-02-23build: move idtree.c into samba-util-commonAndrew Tridgell1-3/+2
2011-02-23build: moved more files into samba-util-commonAndrew Tridgell1-11/+11
this removes UTIL_SRC from the s3 waf build, as it is now all in common with samba-util-common
2011-02-23build: created samba-util-common libraryAndrew Tridgell1-30/+21
this library will contain files that can be built in common between s3 and s4. Both samba-util and samba-util3 depend on it. Currently this library needs to be marked as allow_undefined_symbols, in order to allow s4 to build it. We can remove that flag once we have all the needed symbols in common Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22s3:auth: change num_groups to from size_t to uint32_tStefan Metzmacher2-4/+4
This will help with the change from UNIX_USER_TOKEN to security_unix_token metze
2011-02-21Fix missing dependency on libreplace.Jelmer Vernooij1-1/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 21 01:17:33 CET 2011 on sn-devel-104
2011-02-18lib/util/charset Add back setlocale(), but only when called from binariesAndrew Bartlett2-3/+24
When called from a library, we don't want to call this, as we may overwrite some of our calling program's context. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104