summaryrefslogtreecommitdiff
path: root/lib/util
AgeCommit message (Collapse)AuthorFilesLines
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
2011-02-18lib/util/charcnv Move iconv handle setup in commonAndrew Bartlett5-320/+366
We now use the struct smb_iconv_convenience at the core of all our iconv code, and use global_iconv_convenience for the callers that don't specify one. Andrew Bartlett
2011-02-18lib/util Remove #if _SAMBA_BUILD_ == 4 that isn't required any moreAndrew Bartlett1-2/+0
2011-02-18lib/util/charset Use top level iconv.c in source3Andrew Bartlett3-12/+90
The two files were very similar already, the only change required was to adopt the s3 module registration fucntion name. (NTSTATUS wasn't used as the charset code does not otherwise use that type). Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-02-18charset Remove use of {isupper,islower,toupper,tolower}_w functionsAndrew Bartlett1-0/+2
These now call the common _m functions that consider UTF16 code points. This removes the code which will make up a 'lame' table in memory, as this can just as correctly be handled by running the algorithm at runtime (which is to call toupper() and tolower() on characters < 128). When used, a top level waf build will always locate the correct table - in the build tree or outside - due to relinking the installed binary. Andrew Bartlett
2011-02-18lib/util Make UTIL_LDB conditional on an s4 buildAndrew Bartlett1-1/+2
This allows this file to be used in common.
2011-02-18s4-util: removed the valgrind_strlen() routineAndrew Tridgell2-18/+0
this was for a bug in valgrind from 7 years ago. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18libutil: make waf rules usable by s3 waf buildAndrew Tridgell1-38/+39
we need samba-util to be s4 only for now, because of the debug system differences Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18charset: allow s3 waf build to use lib/util/charsetAndrew Tridgell1-5/+6
the only conflict is with 'CHARSET' itself, which now builds conditionally on _SAMBA_BUILD_==4 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18lib/util/charset use get_dyn_CODEPAGEDIR(), which is in commonAndrew Bartlett1-2/+2
This is provided by the s3 and s4 dynconfig implementations. Andrew Bartlett
2011-02-18lib/util/charset split codepoints.c into it's own subsystemAndrew Bartlett1-3/+6
2011-02-18lib/util/charset use a path to dynconfig.h that works in s3 and s4Andrew Bartlett1-1/+1
2011-02-18lib/util/charset add functions isupper_m and islower_mAndrew Bartlett2-0/+19
2011-02-11waf: pure cosmetic reformatting of the two samba-util object lists (to ease ↵Günther Deschner1-1/+30
comparing). Guenther
2011-02-10ldb: use #include <ldb.h> for ldbAndrew Tridgell1-1/+1
thi ensures we are using the header corresponding to the version of ldb we're linking against. Otherwise we could use the system ldb for link and the in-tree one for include Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07s4-charset: use dyn_CODEPAGEDIR for location of upcase.dat/lowcase.datAndrew Tridgell1-12/+4
this matches samba3 behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-04charcnv: removed call to setlocale() (bug 7519)Andrew Tridgell1-10/+0
We don't need this setlocale() call, and it can break applications that use our libraries Thanks to Milan Crha for pointing this out Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Feb 4 06:51:01 CET 2011 on sn-devel-104
2011-01-20lib/util: add tests for anonymous_shared_allocate/free()Stefan Metzmacher1-0/+70
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jan 20 06:25:03 CET 2011 on sn-devel-104
2011-01-20lib/util: add anonymous_shared_free()Stefan Metzmacher2-2/+40
metze
2011-01-20lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/Stefan Metzmacher2-2/+2
metze
2011-01-20lib/util: fix rounding to page size in allocate_anonymous_shared()Stefan Metzmacher1-1/+5
metze
2010-12-22lib/util/time.c - make the "strftime" output locale independant ("%c" is not)Matthias Dieter Wallnöfer1-5/+4
So that it also works on Solaris.
2010-12-21s4-dns: disable segfault handling in dlz_bind9Andrew Tridgell2-2/+13
we don't want bind9 calling the Samba segv handler
2010-12-21lib/util/asn1.c - remove the "const" specifier from OIDMatthias Dieter Wallnöfer3-13/+14
There is no reason to have it "const" since it's an allocated thing.
2010-12-20lib: Protect against tevent nterror mismatchesVolker Lendecke1-3/+23
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Dec 20 00:12:02 CET 2010 on sn-devel-104
2010-12-17util_net: fix a comment typo in interpret_string_addr_internal()Michael Adam1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-12-14build: fix bad syntaxMatthieu Patou1-1/+1
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Tue Dec 14 20:55:17 CET 2010 on sn-devel-104
2010-12-11s4-smbtorture: Make test names lowercase and dot-separated.Jelmer Vernooij12-14/+13
This is consistent with the test names used by selftest, should make the names less confusing and easier to integrate with other tools. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 11 04:16:13 CET 2010 on sn-devel-104
2010-12-10build: finishing fixing broken libiconv on hpuxMatthieu Patou1-0/+2
2010-12-08build: Cope with broken libiconvMatthieu Patou1-1/+5
library iconv needs mbrtowc but some system didn't provide it (ie. HP-UX 11.0) Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Wed Dec 8 23:19:19 CET 2010 on sn-devel-104
2010-12-08s4-pkgconfig: add @LIB_RPATH@ to our link flagsAndrew Tridgell1-1/+1
this is only set when rpath is used on install. It ensures that applications that link against Samba libraries get the rpath right Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Dec 8 12:46:00 CET 2010 on sn-devel-104
2010-12-06Revert "lib/util:tests/time.c - "test_timestring" - fix it on Solaris"Matthias Dieter Wallnöfer1-5/+2
This reverts commit 654e0102ddb0acaaf45fb55c15818722235fcc9f. This should better be handled by the replace library. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Dec 6 12:17:31 CET 2010 on sn-devel-104
2010-12-06lib/util/fault.c - fix "pid_t" printf warning on SolarisMatthias Dieter Wallnöfer1-1/+1
According to "http://www.ibm.com/developerworks/linux/library/l-solar/" it's generally a 32bit "int" - therefore this cast should fit.
2010-12-06idtree: fix overflow for v. large ids on allocation and removalRusty Russell1-1/+1
Chris Cowan tracked down a SEGV in sub_alloc: idp->level can actually be equal to 7 (MAX_LEVEL) there, as it can be in sub_remove. (We unfairly blamed a shift of a signed var for this crash in commit 2db1987f5a3a). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User: Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date: Mon Dec 6 05:02:22 CET 2010 on sn-devel-104
2010-12-05lib/util:tests/time.c - "test_timestring" - fix it on SolarisMatthias Dieter Wallnöfer1-3/+5
Solaris returns "Thu Jan 01" and not "Thu Jan 1" - therefore proof for both. Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sun Dec 5 23:09:13 CET 2010 on sn-devel-104
2010-12-04Fix bug #3185 - testparm exits 0 if it can read the config file regardless ↵Holger Hetterich1-1/+1
of errors Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Dec 4 02:30:00 CET 2010 on sn-devel-104
2010-11-24lib/debug Add clarifying commentsAndrew Bartlett1-2/+2
2010-11-20waf:lib/util - add missing dependency on tallocMatthias Dieter Wallnöfer1-1/+1
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Sat Nov 20 23:35:48 CET 2010 on sn-devel-104