1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/lib/util
Andrew Tridgell 8756e13009 util: added samba_runcmd()
This allows us to run a child command in an async fashion, with
control over logging of stdout and stderr (which appears in the Samba
log file). This is useful for ensuring we don't miss important
messages from rndc commands (for example).

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-02-17 19:43:32 +11:00
..
charset Change uint_t to unsigned int in lib/util 2010-02-02 07:18:17 +01:00
tests test:local added LOCAL-DLINKLIST testsuite 2010-02-10 15:55:34 -08:00
asn1.c Change uint_t to unsigned int in lib/util 2010-02-02 07:18:17 +01:00
asn1.h s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functions 2009-10-16 12:54:13 +03:00
attr.h Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
become_daemon.c Refactored sys_fork() and sys_pid() into shared util library 2009-02-23 21:17:12 -08:00
binsearch.h util: added binsearch.h for binary array searches 2009-12-10 17:51:29 +11:00
blocking.c lib-util: move set_blocking() call into own file. 2009-06-10 21:25:57 +02:00
byteorder.h Change uint_t to unsigned int in lib/util 2010-02-02 07:18:17 +01:00
capability.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
capability.m4 Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
config.mk util: added samba_runcmd() 2010-02-17 19:43:32 +11:00
data_blob.c lib/util: remove data_blob_talloc_reference() 2010-01-29 11:16:44 +01:00
data_blob.h lib/util: remove data_blob_talloc_reference() 2010-01-29 11:16:44 +01:00
debug.c Fix ndrdump to use a common setup_logging() API 2009-06-29 20:12:23 +10:00
debug.h s4-debug: removed debug_ctx(). It didn't catch on :-) 2010-01-09 10:15:13 +11:00
dlinklist.h util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1) 2010-02-10 15:53:58 -08:00
Doxyfile Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
dprintf.c s4: Fix "Small memory leak after calling several times lp_update" 2009-09-07 09:40:34 +02:00
fault.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
fault.m4 Strip /usr/include from include flags, so we don't end up including 2009-03-15 18:10:20 +01:00
fsusage.c Use common fusage implementation. 2008-10-14 02:16:27 +02:00
fsusage.m4 Remove extraneous comment from 0a33d8bd31 2008-10-13 15:10:23 -07:00
genrand.c lib-util: check for too many combinations in generate_unique_strs() 2009-10-20 11:34:49 +11:00
idtree.c lib/util: fallback to any id in idr_get_new_random() 2009-04-01 16:41:15 +02:00
mainpage.dox Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
memory.h Move discard_const hack to memory.hso it can be used by Samba 3. 2008-10-20 17:15:17 +02:00
ms_fnmatch.c Remove unused include param/param.h. 2008-10-24 16:37:56 +02:00
mutex.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
mutex.h Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
params.c pm_process():raise level of debug message 2009-04-28 12:20:38 +02:00
parmlist.c parmlist: Add more tests. 2009-09-27 17:37:53 +02:00
parmlist.h parmlist: Add more tests. 2009-09-27 17:37:53 +02:00
rbtree.c Move rbtree.[ch] to lib/util. 2008-10-12 16:27:00 +02:00
rbtree.h Move rbtree.[ch] to lib/util. 2008-10-12 16:27:00 +02:00
README Add libutil README file. 2008-10-18 15:49:11 +02:00
rfc1738.c lib/util Fix comments in rfc1738.c. 2009-11-04 14:58:24 +11:00
safe_string.h Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
signal.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
signal.m4 Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
smb_threads_internal.h Make the thread functions a bit easier to use 2009-05-13 14:37:28 -04:00
smb_threads.c Make the thread functions a bit easier to use 2009-05-13 14:37:28 -04:00
smb_threads.h Make the thread functions a bit easier to use 2009-05-13 14:37:28 -04:00
substitute.c util_str: setup the correct talloc name for strings 2009-01-19 07:05:21 +01:00
system.c Refactored sys_fork() and sys_pid() into shared util library 2009-02-23 21:17:12 -08:00
talloc_stack.c Take advantage of the easier-to-use thread macros 2009-05-13 14:37:28 -04:00
talloc_stack.h Fix builds with external talloc 2009-10-09 13:14:08 -04:00
tevent_ntstatus.c Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/ 2009-11-14 11:32:38 +01:00
tevent_ntstatus.h Attempt to fix the s4 build -- we can not use map_nt_error_from_unix in lib/ 2009-11-14 11:32:38 +01:00
tevent_unix.c util: Change license on tevent_unix to LGPLv3+ 2009-05-29 18:31:30 +02:00
tevent_unix.h util: Change license on tevent_unix to LGPLv3+ 2009-05-29 18:31:30 +02:00
time.c lib/util: move TIME_T_MIN/MAX defines into header file 2010-01-07 00:50:29 +01:00
time.h lib/util: move TIME_T_MIN/MAX defines into header file 2010-01-07 00:50:29 +01:00
time.m4 Two patches which fix issues on cross compiling/building 2009-06-29 13:39:52 +10:00
tsort.h s4-ldb: use TYPESAFE_QSORT() in the rest of the ldb code 2010-02-14 18:44:20 +11:00
unix_privs.c s4:UID wrapper - Fix includes 2010-02-05 19:47:26 +01:00
util_file.c util: added file_compare() utility function 2010-02-11 21:04:13 +11:00
util_getent.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
util_id.c util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique. 2009-05-29 13:49:58 +02:00
util_ldb.c s4-dsdb: removed gendb_search_single_extended_dn() 2010-02-16 21:10:51 +11:00
util_ldb.h s4-dsdb: removed gendb_search_single_extended_dn() 2010-02-16 21:10:51 +11:00
util_net.c use ZERO_STRUCT 2010-02-13 13:25:32 +01:00
util_net.h libcli:nbt put util_net.c protos in new header file 2009-09-15 10:38:53 -07:00
util_pw.c Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
util_runcmd.c util: added samba_runcmd() 2010-02-17 19:43:32 +11:00
util_str.c Change uint_t to unsigned int in lib/util 2010-02-02 07:18:17 +01:00
util_strlist.c lib: use TYPESAFE_QSORT() in lib/ and libcli/ 2010-02-14 18:44:20 +11:00
util_tdb.c s3: Add tdb_data_equal 2010-02-12 23:12:10 +01:00
util_tdb.h s3: Add tdb_data_equal 2010-02-12 23:12:10 +01:00
util.c s4:UID wrapper - Fix includes 2010-02-05 19:47:26 +01:00
util.h util: added samba_runcmd() 2010-02-17 19:43:32 +11:00
util.m4 Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
wrap_xattr.c Fix include paths to new location of libutil. 2008-10-11 21:31:42 +02:00
wrap_xattr.h Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
xattr.m4 Move lib/util from source4 to top-level libutil. 2008-10-11 21:05:38 +02:00
xfile.c Fix coverity CID#66. Resource leak in error path. 2009-01-29 17:16:34 -08:00
xfile.h lib/util: make it possible to use debug.h with using xfile.h 2008-12-17 13:31:29 +01: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).