1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/lib/util
Volker Lendecke 5d7a183b9e lib: Add "strv" string handling routines
This is a little set of routines designed after the glibc argz
routines. It is supposed to eventually replace our inefficient string_list
routines. A talloc blob is an array of strings separated by the \0
character. See argz(3) on a Linux system for the ideas where this came
from. Based on talloc strv is simpler because talloc knows about the
size of the blob, so we don't have to explicitly maintain it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2014-12-16 18:56:03 +01:00
..
charset lib: Fix blank line endings 2014-12-09 04:12:07 +01:00
tests lib/util/tests: avoid some compiler warnings 2014-11-14 23:27:04 +01:00
asn1.c lib: util: Check *every* asn1 return call and early return. 2014-09-19 01:29:00 +02:00
asn1.h
attr.h lib/util/attr: add _UNUSED_ marco 2011-07-14 20:11:22 +02:00
base64.c lib: added base64_decode_data_blob_talloc() 2011-09-08 03:35:27 +02:00
become_daemon.c lib: Add daemon_status() to util library. 2014-09-17 10:51:36 +02:00
binsearch.h
bitmap.c lib/util: Simplify bitmap.c a bit 2012-11-07 15:32:24 +01:00
bitmap.h lib/util: Make "struct bitmap" abstract 2012-11-07 15:32:24 +01:00
blocking.c lib/util: Clean up includes for blocking.c 2014-10-04 00:11:20 +02:00
blocking.h lib/util: Clean up includes for blocking.c 2014-10-04 00:11:20 +02:00
byteorder.h byteorder: do not assume PowerPC is big-endian 2014-05-06 18:14:13 +02:00
charset_compat.h lib/util: Use charset_compat.h if SAMBA_UTIL_CORE_ONLY 2014-10-04 00:11:21 +02:00
close_low_fd.c lib: Make close_low_fd() independently linkable 2014-08-01 22:11:46 +02:00
close_low_fd.h lib: Make close_low_fd() independently linkable 2014-08-01 22:11:46 +02:00
data_blob.c lib: Fix signed/unsigned comparisons 2014-12-05 18:37:10 +01:00
data_blob.h data_blob.h: Add space between literal and string constant. 2014-11-10 06:09:04 +01:00
debug_s3.c loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *. 2012-07-18 15:07:23 +09:30
debug_s3.h Fix warning messages on Freebsd 4.6.2. 2011-06-02 10:10:39 -07:00
debug.c lib/util: Add RFC3339 timestamp support to timeval_str_buf() 2014-10-13 12:27:04 +02:00
debug.h debug: Standalone compile without includes.h 2014-09-19 18:11:11 +02:00
dlinklist.h dlinklist: Fix a typo 2014-04-02 17:11:37 +02:00
Doxyfile
dprintf.c lib/util/charset: Remove 'display charset' 2011-06-23 13:47:27 +02:00
fault.c lib/util: Clean up includes for fault.c 2014-10-04 00:11:21 +02:00
fault.h lib/util: Clean up includes for fault.c 2014-10-04 00:11:21 +02:00
fsusage.c build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more 2012-04-05 02:39:08 +02:00
genrand.c Fix signed/unsigned comparisons 2014-12-07 00:12:07 +01:00
getpass.c getpass: Don't fail if stdin is not a tty 2013-04-05 07:34:37 +02:00
idtree_random.c lib/util: Move idr_get_new_random() to new source file idtree_random.c 2014-09-19 18:11:11 +02:00
idtree_random.h lib/util: Move idr_get_new_random() to new source file idtree_random.c 2014-09-19 18:11:11 +02:00
idtree.c lib: Fix blank line endings 2014-12-09 04:12:07 +01:00
idtree.h lib/util: Move idr_get_new_random() to new source file idtree_random.c 2014-09-19 18:11:11 +02:00
mainpage.dox
memcache.c lib/util: move memcache.[ch] to the toplevel 'samba-util' library 2014-07-18 15:43:33 +02:00
memcache.h lib/util: move memcache.[ch] to the toplevel 'samba-util' library 2014-07-18 15:43:33 +02:00
memory.h
modules.c lib/util/modules.c: Remove #if SAMBA_BUILD_ == 3 now we only have the waf build 2013-05-28 12:17:12 +10:00
ms_fnmatch.c libcli/smb move enum protocol_types to a common header 2011-07-06 05:32:51 +02:00
params.c lib: Remove parser code, now replaced with tini parser. 2014-08-15 20:34:56 +02:00
parmlist.c lib/util: fix const warnings 2014-04-02 09:03:42 +02:00
parmlist.h s3-param use common struct parmlist_entry to hold parametric options 2011-07-08 11:23:23 +02:00
pidfile.c util: Don't use the pid ret value uninitialized. 2012-12-12 09:42:33 +01:00
pidfile.h Add debugs to functions. Add pidfile_unlink(). 2012-07-19 16:08:16 -07:00
rbtree.c
rbtree.h
README
rfc1738.c build: avoid util.h as a public header name due to conflict with MacOS 2011-09-23 09:24:03 +02:00
safe_string.h
samba_modules.h lib/util: Add smb_load_module that returns DEBUG(0) errors on failure 2012-04-03 14:25:12 +10:00
samba_util.h lib/util: use size_t for add_string_to_array(). 2014-11-17 17:34:05 +01:00
samba-util.pc.in pkgconfig: Do not hardcode library version numbers in pc files. 2013-08-22 20:48:44 +02:00
select.c sys_poll_intr: fix timeout arithmetic 2014-07-22 00:12:24 +02:00
select.h lib/util: Remove sys_poll as it is no longer needed 2012-02-16 15:49:21 -08:00
server_id.c lib: Introduce server_id_same_process() 2014-08-23 00:24:18 +02:00
setid.c lib: Add missing include for unistd.h in setid. 2014-04-17 14:56:06 +02:00
setid.h Replace all uses of setXX[ug]id() and setgroups with samba_setXX[ug]id() calls. 2012-06-28 17:15:16 -07:00
signal.c lib/util: Clean up includes for signal.c 2014-10-04 00:11:21 +02:00
signal.h lib/util: Clean up includes for signal.c 2014-10-04 00:11:21 +02:00
smb_threads_internal.h
smb_threads.c
smb_threads.h
string_wrappers.h s3: smbd: Change the function signature of srvstr_push() from returning a length to returning an NTSTATUS with a length param. 2014-09-16 01:56:54 +02:00
strv.c lib: Add "strv" string handling routines 2014-12-16 18:56:03 +01:00
strv.h lib: Add "strv" string handling routines 2014-12-16 18:56:03 +01:00
substitute.c lib/util: Use charset_compat.h if SAMBA_UTIL_CORE_ONLY 2014-10-04 00:11:21 +02:00
substitute.h lib/util: Clean up includes for substitute.c 2014-10-04 00:11:21 +02:00
system.c lib/util: Remove obsolete sys_getpid() and sys_fork(). 2012-03-24 21:55:40 +01:00
talloc_stack.c talloc_stack: abort in developer me if no stackframe on talloc_tos() 2012-07-18 15:07:27 +09:30
talloc_stack.h talloc_stack: abort in developer me if no stackframe on talloc_tos() 2012-07-18 15:07:27 +09:30
tevent_debug.c lib/util: fix const warnings 2014-04-02 09:03:42 +02:00
tevent_ntstatus.c tevent: Add tevent_received to tevent_req_simple_recv_ntstatus 2013-08-12 13:59:53 -07:00
tevent_ntstatus.h lib/util: move tevent_req_poll_ntstatus() to tevent_ntstatus.c 2012-05-14 15:12:34 +02:00
tevent_unix.c lib: Add tevent_req_simple_recv_unix 2014-11-10 06:09:04 +01:00
tevent_unix.h lib: Add tevent_req_simple_recv_unix 2014-11-10 06:09:04 +01:00
tevent_werror.c lib: add tevent_req_poll_werror 2012-05-30 00:37:56 +02:00
tevent_werror.h lib: add tevent_req_poll_werror 2012-05-30 00:37:56 +02:00
time_basic.c lib/util: Fix incorrect month in timestamps 2014-12-12 05:02:32 +01:00
time_basic.h lib/util: Protect time_basic.h against multiple inclusion 2014-10-16 16:35:59 +02:00
time.c lib/util: Add RFC3339 timestamp support to timeval_str_buf() 2014-10-13 12:27:04 +02:00
time.h lib/util: Clean up includes for time.[ch] 2014-10-04 00:11:20 +02:00
tini.c Add tini parser. 2014-08-14 21:27:13 +02:00
tini.h Add tini parser. 2014-08-14 21:27:13 +02:00
tiniparser.c Add tiniparser - tiny version of iniparser that only implements what Samba uses. 2014-08-14 21:27:13 +02:00
tiniparser.h Add tiniparser - tiny version of iniparser that only implements what Samba uses. 2014-08-14 21:27:13 +02:00
tsort.h
unix_privs.c lib: Add missing include for unistd.h in unix_privs. 2014-04-17 14:56:06 +02:00
util_file.c lib: Fix blank line endings 2014-12-09 04:12:07 +01:00
util_id.c Fix signed/unsigned comparisons 2014-12-07 00:12:07 +01:00
util_ldb.c
util_ldb.h lib/util/util_ldb.h: fix licence/copyright 2011-06-10 15:11:26 +02:00
util_net.c lib/util: let is_ipaddress_v6() cope with "fe80::1234%3" 2014-03-25 00:45:28 +01:00
util_net.h lib: Remove unused "client_name" 2013-08-12 17:25:49 +12:00
util_ntdb.c util: util_ntdb ntdb_fetch_int32/ntdb_store_int32 and ntdb_add_int32_atomic 2012-06-22 07:35:17 +02:00
util_ntdb.h util: util_ntdb ntdb_fetch_int32/ntdb_store_int32 and ntdb_add_int32_atomic 2012-06-22 07:35:17 +02:00
util_paths.c lib/util use modules_path(), data_path() and shlib_ext() from source3 2011-06-06 17:37:51 +10:00
util_process.c lib: Add prctl_set_comment to utils. 2013-03-05 23:29:46 +01:00
util_process.h lib: Add prctl_set_comment to utils. 2013-03-05 23:29:46 +01:00
util_pw.c lib: Add proper {} to tcopy_passwd 2014-11-18 21:45:40 +01:00
util_pw.h lib/util: Remove dummy wrapper for getgrgid(). 2012-03-24 15:26:36 +01:00
util_runcmd.c param: Add null checks for upcoming str_list_make changes 2014-07-07 23:32:35 +02:00
util_str_common.c Add a comment regarding strwicmp only being an ASCII string compare 2014-05-07 19:49:17 +02:00
util_str.c lib/util: Return some functions to util_str.c 2014-09-19 20:34:05 +02:00
util_strlist.c lib/util: use size_t for add_string_to_array(). 2014-11-17 17:34:05 +01:00
util_tdb.c lib: Add tdb_fetch_talloc 2014-12-16 18:56:03 +01:00
util_tdb.h lib: Add tdb_fetch_talloc 2014-12-16 18:56:03 +01:00
util.c lib: Fix signed/unsigned comparisons 2014-12-05 18:37:10 +01:00
wscript util: Add --disable-fault-handling. 2012-03-15 05:55:03 +01:00
wscript_build lib: Add "strv" string handling routines 2014-12-16 18:56:03 +01:00
wscript_configure build: Rework BSD_STYLE_STATVFS check to match autoconf build 2013-05-27 11:56:48 +10:00
xfile.c lib/util: Clean up includes for xfile.[ch] 2014-10-04 00:11:20 +02:00
xfile.h lib/util: Clean up includes for xfile.[ch] 2014-10-04 00:11:20 +02:00

This directory contains libutil (until we can think of a better name)

The idea is that this library contains simple but useful data structures 
and support functions that are generally useful; not just for Samba but for 
other projects as well. Functions here should not depend on any external 
libraries, just on libc (perhaps partially provided by libreplace).