summaryrefslogtreecommitdiffstats
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/util: remove unneeded else branch in directory_create_or_exist()Stefan Metzmacher2012-03-141-21/+24
| | | | metze
* lib/util: don't start DEBUG output with 'error 'Stefan Metzmacher2012-03-141-1/+1
| | | | | | This confused the subunit code. metze
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-103-264/+0
| | | | | | | | | | It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
* lib/util: Add a callback facility for debug messagesAndrew Bartlett2012-03-082-14/+52
| | | | | | | This will allow dlz_bind9 to put log messages somewhere useful, which may make it easier to debug. Andrew Bartlett
* change low FDs are handled in SambaAndrew Bartlett2012-03-043-12/+23
| | | | | | | | | | | We now only close fds 0, 1, 2 when we are a forked daemon, and take care not to close a file descriptor that we might need for foreground stdin monitoring. This should fix stdout logging in the lsa and epmapper deamons (ie in make test). Andrew Bartlett
* build: look for backtrace_symbols in libexecAndrew Bartlett2012-03-011-1/+1
|
* lib/util: Remove unused sys_inet_makeaddr()Andrew Bartlett2012-02-172-11/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* lib/util: Remove unused sys_gethostbyname()Andrew Bartlett2012-02-172-48/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* lib/util: Remove sys_poll as it is no longer neededAndrew Bartlett2012-02-162-91/+0
| | | | | | | | | | | sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* lib/util: Remove unused sys_select_signal()Andrew Bartlett2012-02-162-19/+0
| | | | | | | | Now sys_poll needs to be cleaned up not to refer to the pipe that is now not used. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* lib/util: Remove unused str_format_nbt_domain()Andrew Bartlett2012-02-102-41/+0
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* charset: Remove unused strcmp_w()Andrew Bartlett2012-02-102-15/+0
| | | | | | | | Found by callcatcher. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* charset: Remove unused iconv_talloc()Andrew Bartlett2012-02-103-120/+1
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* charset/tests: Add prototypes for test functions.Jelmer Vernooij2012-02-072-0/+7
|
* lib/util: Add hex_encode_bufVolker Lendecke2012-02-062-9/+21
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 09:15:33 CET 2012 on sn-devel-104
* loadparm: fix a load of uninitialized memory errors found by valgrind.Michael Adam2012-02-031-1/+1
|
* Introduce dump_data_fileVolker Lendecke2012-01-252-0/+17
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104
* lib/charset: Remove an unused variableVolker Lendecke2011-12-251-0/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Dec 25 15:07:56 CET 2011 on sn-devel-104
* s3: Fix fn signatures in charset_macosx.cVolker Lendecke2011-12-252-6/+6
|
* runcmd: use set_close_on_exec()Andrew Tridgell2011-12-221-0/+8
| | | | | | | this prevents a fd leak to child processes Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Dec 22 14:00:06 CET 2011 on sn-devel-104
* runcmd: use a pipe for stdin to child processesAndrew Tridgell2011-12-221-7/+46
| | | | | this allows child processes to detect the exit of the parent by looking for EOF on stdin
* s3: Fix the clustering buildVolker Lendecke2011-12-173-5/+5
| | | | | | | ctdb_private.h already defines set_close_on_exec. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Dec 17 18:41:39 CET 2011 on sn-devel-104
* Add support for TCP_DEFER_ACCEPTVolker Lendecke2011-12-161-0/+3
| | | | | | | | | | | | | "man tcp" on Linux says: TCP_DEFER_ACCEPT Allows a listener to be awakened only when data arrives on the socket. Takes an integer value (seconds), this can bound the maximum number of attempts TCP will make to complete the connection. This option should not be used in code intended to be portable. This might reduce the 139/445 forks a bit on high-load servers
* genrand: use set_close_on_exec()Andrew Tridgell2011-12-151-0/+9
| | | | this prevents a fd leak to child processes
* lib/util: added set_close_on_exec()Andrew Tridgell2011-12-152-0/+23
| | | | | this was already in tevent_util.c, but library layering prevented us from using it in some other libraries
* lib/util/util_tdb: adhere to coding style for tdb_data_is_empty()Michael Adam2011-12-061-1/+2
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Dec 6 15:22:08 CET 2011 on sn-devel-104
* Revert making public of the samba-module library.Jelmer Vernooij2011-12-037-144/+64
| | | | | | | | | | | | | | | This library was tiny - containing just two public functions than were themselves trivial. The amount of overhead this causes isn't really worth the benefits of sharing the code with other projects like OpenChange. In addition, this code isn't really generically useful anyway, as it can only load from the module path set for Samba at configure time. Adding a new library was breaking the API/ABI anyway, so OpenChange had to be updated to cope with the new situation one way or another. I've added a simpler (compatible) routine for loading modules to OpenChange, which is less than 100 lines of code. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 3 08:36:33 CET 2011 on sn-devel-104
* lib/util: factor out tdb_data_is_emptyGregor Beck2011-12-032-0/+5
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Dec 3 05:20:30 CET 2011 on sn-devel-104
* Fix a bunch of "warning: variable ‘XXXX’ set but not used ↵Jeremy Allison2011-11-211-2/+1
| | | | | | | [-Wunused-but-set-variable]" warnings from the new gcc. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Nov 21 23:39:08 CET 2011 on sn-devel-104
* lib/util/debug: with log level = 10 we should be more verboseStefan Metzmacher2011-11-161-3/+9
| | | | | | | | | | | | | | log level = 10 already impacts performance, so we can turn on more details and print the pid, [e][u|g]id and class information. So it implies "debug pid = yes", "debug uid = yes" and "debug class = yes". This generates a lot more useful log files. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 16 12:25:02 CET 2011 on sn-devel-104
* s3: allow to set TCP_NODELAYACK socket option on AIXBjörn Jacke2011-11-151-0/+3
| | | | | | | | this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on Linux Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Nov 15 21:00:07 CET 2011 on sn-devel-104
* util/time: Make some functions explicitly public.Jelmer Vernooij2011-11-031-3/+3
|
* util/time: Remove unnecessary _PUBLIC_ - that's implicit for things in ↵Jelmer Vernooij2011-11-031-44/+40
| | | | header files.
* lib/util Add ABI to the samba-module libraryAndrew Bartlett2011-10-282-0/+4
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Oct 28 14:42:43 CEST 2011 on sn-devel-104
* lib/util Rename samba_modules_load -> samba_module_init_fns_for_subsystemAndrew Bartlett2011-10-282-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module -> samba_module_initAndrew Bartlett2011-10-282-4/+4
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fns_run -> samba_module_init_fns_runAndrew Bartlett2011-10-281-1/+1
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename samba_init_module_fn -> samba_module_init_fnAndrew Bartlett2011-10-284-15/+15
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Split samba-modules library into public and private partsAndrew Bartlett2011-10-286-52/+128
| | | | | | | This will allow OpenChange to get at the symbols it needs, without exposing any more of this as a public API than we must. Andrew Bartlett
* lib/util Rename load_samba_modules -> samba_modules_loadAndrew Bartlett2011-10-282-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename run_init_functions -> samba_init_module_fns_runAndrew Bartlett2011-10-282-2/+2
| | | | | | | This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
* lib/util Rename init_module_fn to samba_init_module_fnAndrew Bartlett2011-10-282-14/+14
| | | | | | This prepares for making the samba_module.h header public again, for OpenChange. I am keen to avoid too much API namespace pollution if we can.
* Include uid_wrapper correctly.Andreas Schneider2011-10-272-18/+1
|
* lib/util/charset Remove unused header smb_common.hAndrew Bartlett2011-10-241-1/+0
| | | | | | | | This should fix a compile issue on hosts without gssapi/gssapi.h. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* lib/util: remove the "includes.h" dependeny from xfile.cStefan Metzmacher2011-10-221-5/+2
| | | | metze
* lib/util: remove the "includes.h" dependeny from util_file.cStefan Metzmacher2011-10-221-5/+4
| | | | metze
* lib/util: skip single hex digit at the end of the input sting - fix ↵Michael Adam2011-10-181-1/+2
| | | | | | | | | | | potential segfault The second of two digits was read without checking for the length of the input string. For a non-zero-terminated input string, this might have caused a segfault. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 18 22:32:59 CEST 2011 on sn-devel-104
* lib/util: fix function header comment to strhex_to_str()Michael Adam2011-10-181-9/+8
| | | | The description did not match the function's behaviour.
* lib/util: untangle assignent from check in strhex_to_str()Michael Adam2011-10-181-2/+6
|
* Fix const warnings.Jeremy Allison2011-10-141-4/+4
|