summaryrefslogtreecommitdiffstats
path: root/lib/util/util.h
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: remove useless ../lib/util/mutex.*Stefan Metzmacher2010-10-261-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
* Add dump_data_cb()Volker Lendecke2010-10-241-0/+8
|
* Add print_asc_cb()Volker Lendecke2010-10-241-0/+3
|
* s3/s4: merge msleep and smb_msleepBjörn Jacke2010-09-161-1/+1
| | | | | the merged variant is renamed to smb_msleep as some platforms already have a msleep function.
* util: added samba_start_debugger()Andrew Tridgell2010-09-041-0/+4
| | | | | This developer function is useful for debugging unusual error conditions
* s3-smbd: Don't close stdout if we want to log to stdout.Andreas Schneider2010-03-261-1/+1
|
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-261-27/+0
| | | | These were causing thousands of warnings on solaris8
* lib/util: add allocate_anonymous_shared()Stefan Metzmacher2010-03-221-0/+5
| | | | metze
* lib/util: change samba_runcmd() to use tevent_req _send/_recvStefan Metzmacher2010-03-091-7/+8
| | | | metze
* lib/util: add generate_random_password()Stefan Metzmacher2010-02-261-0/+5
| | | | metze
* s4-dns: use a loadparm list for samba_runcmd() commandsAndrew Tridgell2010-02-261-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)
* Spelling fixes for libutilBrad Hards2010-02-221-4/+4
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
* util: added samba_runcmd()Andrew Tridgell2010-02-171-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>
* util: added file_compare() utility functionAndrew Tridgell2010-02-111-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>
* util/util_strlist - add a call "const_str_list" for making "unconst" lists ↵Matthias Dieter Wallnöfer2009-12-011-0/+5
| | | | "const"
* util/strlist: Fix up "const" warnings in the string list and test codeMatthias Dieter Wallnöfer2009-11-201-1/+1
| | | | | | This work I did using suggestions by Jelmer. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett2009-11-021-0/+25
| | | | Andrew Bartlett
* Remove the const from the str_list_XXX functions thatJeremy Allison2009-09-241-5/+5
| | | | | | | allocate both list and containing strings. This fixes problems that people have tried to cast away and are not needed. Jeremy.
* libcli:nbt put util_net.c protos in new header fileAndrew Bartlett2009-09-151-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
* libcli:nbt make the lmhosts parsing code and dependicies commonAndrew Bartlett2009-09-151-1/+21
| | | | | | This starts the process to have Samba4 use lmhosts. Andrew Bartlett
* util_strlist: Add some more "const"sMatthias Dieter Wallnöfer2009-09-101-5/+8
|
* lib/util: add unique string generator helper functionSteven Danneman2009-09-081-0/+10
|
* util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner2009-05-291-0/+12
| | | | Guenther
* Add new functions and tests: str_list_make_empty(), str_list_make_single()Andrew Bartlett2009-05-141-0/+10
|
* Clean up after Tridge's util_strlist changesVolker Lendecke2009-05-031-7/+9
|
* added _const versions of some of the str_list_*() functionsAndrew Tridgell2009-04-091-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)
* added str_list_unique() and str_list_show()Andrew Tridgell2009-04-091-8/+13
| | | | | I also undid some of the const changes from Andrew, as they didn't in fact resolve the const warnings.
* Rework util_strlist prototypes to use a bit more and less constAndrew Bartlett2009-04-081-2/+11
| | | | | | Hopefully this produces less warnings, but it might produce more... Andrew Bartlett
* lib/util: remove samba specific talloc_get_type_abort()Stefan Metzmacher2009-03-031-7/+0
| | | | metze
* Move next_token_talloc() to top-level.Jelmer Vernooij2009-03-011-0/+15
|
* Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman2009-02-231-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().
* Fix shadowed declaration warningTim Prouty2009-02-211-1/+1
|
* Moved become_daemon() and close_low_fds() to shared util libSteven Danneman2009-02-201-3/+6
|
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-2/+2
|
* Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 ↵Jelmer Vernooij2009-02-091-2/+0
| | | | | | | | and s4" lib/util already has discard_const_p. This reverts commit 0cb430c22e9c0af2248fbc15ce97a4d760df189d.
* s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4Tim Prouty2008-12-301-0/+2
|
* s3 build: Fix incomplete types warningsTim Prouty2008-11-201-3/+2
|
* Move ABS() to libutil.Jelmer Vernooij2008-11-011-0/+4
|
* Fix includes in installed version of talloc_stack.h.Jelmer Vernooij2008-11-011-1/+1
|
* Only provide valgrind_strlen prototype when it's being compiled in.Jelmer Vernooij2008-11-011-2/+2
|
* Samba3: Include util.h header file rather than having custom prototypes.Jelmer Vernooij2008-11-011-7/+23
|
* Remove include/local.h and move defines to more appropriate places.Jelmer Vernooij2008-10-241-0/+2
|
* Move charset library to top level.Jelmer Vernooij2008-10-241-1/+1
|
* Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij2008-10-231-2/+4
|
* Import talloc_stack into util library.Jelmer Vernooij2008-10-231-0/+1
|
* Make sure prototypes are always included, make some functions static andJelmer Vernooij2008-10-201-0/+11
| | | | remove some unused functions.
* Move discard_const hack to memory.hso it can be used by Samba 3.Jelmer Vernooij2008-10-201-27/+0
|
* Add extra parameter consistent with samba3.Jelmer Vernooij2008-10-181-1/+1
|
* Add TALLOC_CTX pointer to strhex_to_data_blob for consistency with SambaJelmer Vernooij2008-10-181-1/+1
| | | | 3.
* Use separate make variables for libutil and libcrypto.Jelmer Vernooij2008-10-181-1/+1
|