summaryrefslogtreecommitdiff
path: root/lib/util/util.h
AgeCommit message (Collapse)AuthorFilesLines
2011-07-06libcli/smb move enum protocol_types to a common headerAndrew Bartlett1-15/+0
2011-06-21lib/util: Use common d_printf() in the whole codebaseAndrew Bartlett1-3/+0
This removes the lang_tdb based varient, the only user of the lang_tdb code is SWAT, which calls that directly. 'net' and 'pam_winbind' are internationalised using gettext. Andrew Bartlett
2011-06-21lib/util Make unused d_vfprintf() staticAndrew Bartlett1-1/+0
2011-06-09lib/util Bring procid_str() into lib/util as server_id_string()Andrew Bartlett1-0/+2
This is needed for OpenChange, which prints Samba struct server_id values in debug messages. Andrew Bartlett
2011-06-06lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett1-0/+26
This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
2011-05-31lib/util Move sys_memalign into lib/util/system.cAndrew Bartlett1-0/+2
2011-05-06lib/util don't use enum protocol_types in ms_fnmatch_protocolAndrew Bartlett1-1/+1
This makes it easier to compile this in the top level with s3 and s4 headers. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri May 6 08:50:52 CEST 2011 on sn-devel-104
2011-05-06lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbolAndrew Bartlett1-2/+3
This verison of the function takes a protcol as argument to determine matching rules. Andrew Bartlett
2011-05-04I added them, so I get to kill them :-). Finally remove all uses of ↵Jeremy Allison1-12/+0
safe_strcpy and safe_strcat. Change to strlcpy, strlcat. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed May 4 22:14:14 CEST 2011 on sn-devel-104
2011-05-03lib/util Use compiler-checked safe string macros in top level code.Andrew Bartlett1-2/+4
This brings the 'safe' macros to the top level code, and removes duplication of the safe_strcpy() and safe_strcat() functions. Andrew Bartlett
2011-05-03lib/util Move more network utility functions from source3 into lib/utilAndrew Bartlett1-1/+13
This will help with the merge of the interfaces layer. Andrew Bartlett
2011-04-30lib/util Rename conv_str_size() -> conv_str_size_error()Andrew Bartlett1-3/+1
2011-04-29lib/util Re-merge the string_sub() and all_string_sub() from source3Andrew Bartlett1-0/+2
Andrew Bartlett
2011-03-30lib/util Move base64 functions into lib/util/base64.cAndrew Bartlett1-0/+13
Andrew Bartlett
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-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: get fault.c ready for use by s4Andrew Tridgell1-6/+7
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-15lib: fixed header pathsAndrew Tridgell1-8/+8
this is a public header, and needs to use sane paths for the public header creation
2011-02-22s3:auth: change num_groups to from size_t to uint32_tStefan Metzmacher1-2/+2
This will help with the change from UNIX_USER_TOKEN to security_unix_token metze
2011-02-18lib/util Remove #if _SAMBA_BUILD_ == 4 that isn't required any moreAndrew Bartlett1-2/+0
2011-02-18s4-util: removed the valgrind_strlen() routineAndrew Tridgell1-7/+0
this was for a bug in valgrind from 7 years ago. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-20lib/util: add anonymous_shared_free()Stefan Metzmacher1-0/+1
metze
2011-01-20lib/util: s/allocate_anonymous_shared/anonymous_shared_allocate/Stefan Metzmacher1-1/+1
metze
2010-12-21s4-dns: disable segfault handling in dlz_bind9Andrew Tridgell1-0/+1
we don't want bind9 calling the Samba segv handler
2010-10-26lib/util: remove useless ../lib/util/mutex.*Stefan Metzmacher1-10/+0
Only the disabled process_thread.c registers uses the register fn, all other functions are not used anywhere. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Oct 26 23:29:46 UTC 2010 on sn-devel-104
2010-10-24Add dump_data_cb()Volker Lendecke1-0/+8
2010-10-24Add print_asc_cb()Volker Lendecke1-0/+3
2010-09-16s3/s4: merge msleep and smb_msleepBjörn Jacke1-1/+1
the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
2010-09-04util: added samba_start_debugger()Andrew Tridgell1-0/+4
This developer function is useful for debugging unusual error conditions
2010-03-26s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider1-1/+1
2010-03-26libutil: moved the networking defines to util_net.hAndrew Tridgell1-27/+0
These were causing thousands of warnings on solaris8
2010-03-22lib/util: add allocate_anonymous_shared()Stefan Metzmacher1-0/+5
metze
2010-03-09lib/util: change samba_runcmd() to use tevent_req _send/_recvStefan Metzmacher1-7/+8
metze
2010-02-26lib/util: add generate_random_password()Stefan Metzmacher1-0/+5
metze
2010-02-26s4-dns: use a loadparm list for samba_runcmd() commandsAndrew Tridgell1-1/+1
This allows commands with multiple arguments and quoting to be used, while still avoiding running a shell (and this having shell expansion problems)
2010-02-22Spelling fixes for libutilBrad Hards1-4/+4
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-02-17util: added samba_runcmd()Andrew Tridgell1-0/+17
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-11util: added file_compare() utility functionAndrew Tridgell1-0/+5
file_compare() returns true if two files are the same. It is meant for small files. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2009-12-01util/util_strlist - add a call "const_str_list" for making "unconst" lists ↵Matthias Dieter Wallnöfer1-0/+5
"const"
2009-11-20util/strlist: Fix up "const" warnings in the string list and test codeMatthias Dieter Wallnöfer1-1/+1
This work I did using suggestions by Jelmer. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-11-02lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett1-0/+25
Andrew Bartlett
2009-09-24Remove the const from the str_list_XXX functions thatJeremy Allison1-5/+5
allocate both list and containing strings. This fixes problems that people have tried to cast away and are not needed. Jeremy.
2009-09-15libcli:nbt put util_net.c protos in new header fileAndrew Bartlett1-21/+0
This fixed a very odd build problem due to util.h importing system/network.h being imported before the uid_wapper code. Andrew Bartlett
2009-09-15libcli:nbt make the lmhosts parsing code and dependicies commonAndrew Bartlett1-1/+21
This starts the process to have Samba4 use lmhosts. Andrew Bartlett
2009-09-10util_strlist: Add some more "const"sMatthias Dieter Wallnöfer1-5/+8
2009-09-08lib/util: add unique string generator helper functionSteven Danneman1-0/+10
2009-05-29util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner1-0/+12
Guenther
2009-05-14Add new functions and tests: str_list_make_empty(), str_list_make_single()Andrew Bartlett1-0/+10
2009-05-03Clean up after Tridge's util_strlist changesVolker Lendecke1-7/+9
2009-04-09added _const versions of some of the str_list_*() functionsAndrew Tridgell1-0/+20
These const versions don't copy the strings themselves, which is useful when those strings point at known constant data (into the schema in this case)