summaryrefslogtreecommitdiff
path: root/lib/util/util.h
AgeCommit message (Collapse)AuthorFilesLines
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)
2009-04-09added str_list_unique() and str_list_show()Andrew Tridgell1-8/+13
I also undid some of the const changes from Andrew, as they didn't in fact resolve the const warnings.
2009-04-08Rework util_strlist prototypes to use a bit more and less constAndrew Bartlett1-2/+11
Hopefully this produces less warnings, but it might produce more... Andrew Bartlett
2009-03-03lib/util: remove samba specific talloc_get_type_abort()Stefan Metzmacher1-7/+0
metze
2009-03-01Move next_token_talloc() to top-level.Jelmer Vernooij1-0/+15
2009-02-23Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman1-0/+10
This fixes a bug in 116ce19b, where we didn't clear the pid cache in become_daemon() and thus the /var/run/smbd.pid didn't match the actual pid of the parent process. Currently S4 will clear the pid cache on fork but doesn't yet take advantage of the pid cache by using sys_pid() instead of the direct get_pid().
2009-02-21Fix shadowed declaration warningTim Prouty1-1/+1
2009-02-20Moved become_daemon() and close_low_fds() to shared util libSteven Danneman1-3/+6
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-2/+2
2009-02-09Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 ↵Jelmer Vernooij1-2/+0
and s4" lib/util already has discard_const_p. This reverts commit 0cb430c22e9c0af2248fbc15ce97a4d760df189d.
2008-12-30s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4Tim Prouty1-0/+2
2008-11-20s3 build: Fix incomplete types warningsTim Prouty1-3/+2
2008-11-01Move ABS() to libutil.Jelmer Vernooij1-0/+4
2008-11-01Fix includes in installed version of talloc_stack.h.Jelmer Vernooij1-1/+1