summaryrefslogtreecommitdiffstats
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/util: Add back control of mmap and hash size in tdb for top level buildAndrew Bartlett2011-10-133-15/+13
| | | | | | | | This passes down a struct loadparm_context to allow these parameters to be checked. This may be s3 or s4 context, allowing the #if _SAMBA_BUILD_ macro to go away safely. Andrew Bartlett
* s3:utils change data_blob_dup_talloc() to take a DATA_BLOB by valueGregor Beck2011-10-121-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* build: Reduce build systems to just top level waf and autoconfAndrew Bartlett2011-10-071-7/+6
| | | | | | | | | The s3-waf build system is a key component of the top level build, but with this commit is is no longer available directly. This reduces the number of build system combinations in master as we prepare for the Samba 4.0 release. Andrew Bartlett
* lib/util: consolidate module loadingAndrew Bartlett2011-10-062-32/+36
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Oct 6 08:52:30 CEST 2011 on sn-devel-104
* modules: standardise on samba_init_module as the hook symbol to resolveAndrew Bartlett2011-10-062-4/+4
|
* lib/util: Use only init_module_fn typedef in module loadingAndrew Bartlett2011-10-062-3/+2
|
* lib/util: Remove unused module loading functionsAndrew Bartlett2011-10-062-14/+2
|
* lib/util: consolidate module loading into common codeAndrew Bartlett2011-10-063-0/+314
| | | | | | This creates a samba-modules private libary that handles the details. Andrew Bartlett
* lib/util: make sure panic action can attach a debugger on ubuntu (>=10.10)Stefan Metzmacher2011-10-041-0/+7
| | | | | | | | By default user processes can't attach a debugger to a process. So explicitly allow that for all child processes, before calling the panic action script. metze
* net: Don't register link local addresses with DNSKai Blin2011-09-242-0/+24
|
* build: Fix waf build on MacOS XAndrew Bartlett2011-09-231-1/+1
| | | | | | | | | | | The -framework CoreFoundation is required by the charset_macosxfs module The system/time.h header is required to access the replacement clock_gettime() Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Sep 23 10:58:02 CEST 2011 on sn-devel-104
* build: avoid util.h as a public header name due to conflict with MacOSAndrew Bartlett2011-09-233-3/+3
|
* lib/util: move some timespec helpers from source3 to the toplevelStefan Metzmacher2011-09-232-0/+127
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Sep 23 00:15:31 CEST 2011 on sn-devel-104
* lib/util/charset: remove charset module loadingAndrew Bartlett2011-09-209-172/+105
| | | | | | | | | | | | | Now that the 'table' modules are gone, there is no reason for there to be charset modules at all. This builds the macosxfs and weird modules into the binary at the appropriate times, and changes the tests to test instead the difference between the remaining internal handlers and iconv(). Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Sep 20 06:27:06 CEST 2011 on sn-devel-104
* lib/util/charcnv: Remove broken internal CP850 and CP464 modulesAndrew Bartlett2011-09-204-364/+0
| | | | | | | | These modules are now known to be faulty, and Samba 3.6.0 didn't include support for them, so we now require a system iconv if you wish to support these character sets for the non-ASCII range. Andrew Bartlett
* tdb_compat: adapt to tdb2 API change.Rusty Russell2011-09-141-1/+3
| | | | | | | Add the ecode arg to all the log functions, and log it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* lib/util/charset: the comparsion must be against our charset modulesAndrew Bartlett2011-09-101-2/+2
| | | | | | | | | There is little point testing this against the system iconv. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Sep 10 15:45:42 CEST 2011 on sn-devel-104
* lib/util/charset Use name of ISO-8859-1 that matches our internal implementationAndrew Bartlett2011-09-101-44/+44
|
* lib/util/charset: Improve toture assertions in iconv testAndrew Bartlett2011-09-101-1/+14
|
* lib/util/charset Run charset sets with and without the system iconvAndrew Bartlett2011-09-103-14/+28
| | | | | | | | We need to know that we can load the samba-provided modules, and that they are correct. However, we must mark a number of tests as knownfail due to errors in our internal iconv modules. Andrew Bartlett
* lib/util/charset: add back loading of charset modulesAndrew Bartlett2011-09-102-34/+64
| | | | | | | | | | | | | | For autoconf builds these remain as modules, for waf builds they are built into the charset library. This is required to provide the CP850 charset when iconv is not available. The charset modules static for the waf builds because with proper shared libs, there isn't the same need for these to be in seperate .so files. The modules are also not produced if a system iconv is found, except for developers, to allow testing of both code paths. Andrew Bartlett
* lib: added base64_decode_data_blob_talloc()Andrew Tridgell2011-09-082-2/+19
| | | | | | its nice to be able to allocate on other than NULL Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Fix bug 8433, segfault in iconv.cVolker Lendecke2011-09-011-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Sep 1 18:25:34 CEST 2011 on sn-devel-104
* wafsamba: Require public libraries to have a pc file specified, or ↵Jelmer Vernooij2011-08-211-1/+2
| | | | explicitly specified that they don't need one.
* util: add function to extend anonymous shared memorySimo Sorce2011-08-142-0/+65
|
* lib-util: Make create_unlink_tmp argument optionalSimo Sorce2011-08-101-1/+6
| | | | | | Use tmpdir() if no dir is provided. Signed-off-by: Andreas Schneider <asn@samba.org>
* lib-util: Make useful function a common utility.Simo Sorce2011-08-102-0/+37
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* libutil: use AI_ADDRCONFIG only when AI_NUMERIC is not definedSimo Sorce2011-08-101-5/+11
| | | | | | | This flag prevents startup w/o ip addresses assigned to any interface. If AI_NUMERIC is passed it should be safe to avoid it. Signed-off-by: Andreas Schneider <asn@samba.org>
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-081-1/+2
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* libsamba-util: Build in libbitmap.Jelmer Vernooij2011-07-261-8/+1
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Jul 26 14:45:27 CEST 2011 on sn-devel-104
* charset: Make name lowercase everywhere.Jelmer Vernooij2011-07-232-6/+6
|
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-202-0/+7
| | | | | | | | | The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Change debug priority order: DEBUG_STDOUT now overrides DEBUG_FILEAndrew Bartlett2011-07-201-1/+1
| | | | Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Second part of fix for bug 8310 - toupper_ascii() is broken on big-endian ↵Jeremy Allison2011-07-192-0/+12
| | | | | | | | | | | | | | | systems. Re-add: smb_ucs2_t toupper_w(smb_ucs2_t v); and ensure it is called whenever we are operating on smb_ucs2_t variables. I'd like to make the definition of smb_ucs2_t incompatible with int and codepoint_t so they can't be mixed, but that's a patch for another time. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jul 19 23:48:05 CEST 2011 on sn-devel-104
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-193-43/+1
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
* lib/util/attr: add _UNUSED_ marcoStefan Metzmacher2011-07-141-2/+7
| | | | metze
* s4-fault: changed to use %d for PID, instead of %PID%Andrew Tridgell2011-07-131-1/+1
| | | | | | this matches the s3 behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s3-param use common struct parmlist_entry to hold parametric optionsAndrew Bartlett2011-07-081-0/+1
| | | | | | This will allow struct loadparm_service to be shared in future. Andrew Bartlett
* lib/util Move bitmap.c to lib/utilAndrew Bartlett2011-07-083-1/+176
|
* s3:libsmb: remove unused clistr_push_fn()Stefan Metzmacher2011-07-071-6/+0
| | | | metze
* s3:libsmb: remove unused clistr_pull_fn()Stefan Metzmacher2011-07-071-6/+0
| | | | metze
* libcli/smb move enum protocol_types to a common headerAndrew Bartlett2011-07-062-15/+1
|
* S3: Fix some nonempty blank linesVolker Lendecke2011-07-031-3/+3
|
* lib/util/string_wrappers: move everything into one ↵Stefan Metzmacher2011-06-301-18/+8
| | | | | | | | | HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS block metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 30 14:29:41 CEST 2011 on sn-devel-104
* lib: Allow NULL converted_size in convert_string_tallocVolker Lendecke2011-06-241-2/+6
|
* lib/util/charset: Remove autodetection of charset from LOCALEAndrew Bartlett2011-06-231-31/+0
| | | | | | | | | | | | | | | | In the past, our LOCALE would set the display charset of Samba. The display charset has now been removed. This patch removes the support code that detected the locale from the environment. We cannot safely have 'unix charset' follow the locale (at it creates files on disk and entries in databases that must not vary), so this code is unused. As an example, imagine a database is manipulated in the administrator's locale, and then read by smbd starting up in the system default locale. Or smbd restarted by the administrator rather than a startup script. Both of these situations could corrupt databases or filenames on disk. Andrew Bartlett
* lib/util/charset: Remove 'display charset'Andrew Bartlett2011-06-235-103/+61
| | | | | | | | | | | | | | | | | As discussed in 'CH_DISPLAY and gettext' on the samba-technical list: http://lists.samba.org/archive/samba-technical/2011-June/078190.html Setting this to a value other than 'unix charset' does not make sense, as any system where the filesytem charset does not equal the terminal charset will already have problems with programs as simple as 'ls'. It also means that our output could not be pasted as our input in interactive programs or onto our command line, as we never did translate in the DISPLAY -> UNIX direction. The d_printf() calls are retained in case we need to revisit this, and to support display_set_stderr(). Andrew Bartlett
* lib/util: Restore CH_UNIX as source charset for d_printf()Andrew Bartlett2011-06-211-1/+1
| | | | | | | | | | | | | | | I'm changed this during the change to use the d_printf() code in common, but should not have. However, there is a puzzle: What is the right source charset? Translated strings in our .mo and .msg files are in UTF8, but strings such as file names on remote servers are in UNIX (whatever that is). I can't see how this actually works properly when either CH_DISPLAY or CH_UNIX are other than UTF8! Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Remove display_cd from d_printf()Andrew Bartlett2011-06-211-7/+0
| | | | | | | | | | The setting of the display charset is now done by convert_string_talloc() selecting the right charset based on CH_DISPLAY. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* lib/util Remove samba-util-common!Andrew Bartlett2011-06-211-44/+12
| | | | | | | All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett