summaryrefslogtreecommitdiffstats
path: root/lib/util
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: move TIME_T_MIN/MAX defines into header file (cherry picked from ↵Björn Jacke2010-04-122-14/+14
| | | | commit 571ee54b791b93ad46e09ed563ef4a5582dcf0c8)
* util: added binsearch.h for binary array searchesAndrew Tridgell2010-02-111-0/+68
| | | | | | | | | | | | This was moved from the schema_query code. It will now be used in more than one place, so best to make it a library macro. I think there are quite a few places that could benefit from this. (cherry picked from commit 71943e8858943718affb6a3c0ded2127f07057f0) Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 448b8f35d7a7cff73d35304673302178f593c9d0) Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix bug 6861 - rfc1738_unescape converts '+' characters to spaces. Stop ↵Jeremy Allison2009-11-101-5/+0
| | | | rfc1738_unescape() from mangling '+' characters to spaces. Noticed by Andrew Bartlett. Jeremy.
* lib/util: fix order of includes in tevent_ntstatus.cMichael Adam2009-07-011-1/+1
| | | | | | | | | | | replace.h needs to be included first. Michael (cherry picked from commit 8d982d91f231abbf003473d09433fca2cfa240ac) Signed-off-by: Michael Adam <obnox@samba.org> This addresses bug #6521.
* lib/util: fix building tevent_ntstatus without config.hMichael Adam2009-06-301-1/+0
| | | | | | | | | (when called from places with "#define NO_CONFIG_H" set, such as configure) This fixes bug #6521. Michael (cherry picked from commit e4e855563bcbeb7be54de57d8c1d41d35ddc5e7a)
* Ensure documentation matches the tdb_util function usage.Jeremy Allison2009-05-111-2/+2
| | | | Jeremy.
* pm_process():raise level of debug messageMichael Adam2009-04-281-1/+1
| | | | | Michael (cherry picked from commit 664da577f931dfd47573d3d77a95afb573fba855)
* Fix prototype mismatch.Jelmer Vernooij2009-03-091-1/+1
|
* Revert accidental reintroduction of void ** bug.Jelmer Vernooij2009-03-082-5/+7
|
* lib/util: remove samba specific talloc_get_type_abort()Stefan Metzmacher2009-03-032-22/+0
| | | | metze
* Import ISO-8859-1, 646 from Samba 3 iconv.Jelmer Vernooij2009-03-021-0/+29
|
* Use common header file for character set handling in Samba 3 and Samba 4.Jelmer Vernooij2009-03-013-38/+122
|
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-014-46/+77
|
* Merge branch 'master' of git://git.samba.org/samba into convenienceJelmer Vernooij2009-03-012-0/+115
|\
| * Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.Jelmer Vernooij2009-03-012-100/+100
| |
| * Move next_token_talloc() to top-level.Jelmer Vernooij2009-03-012-0/+115
| |
* | Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.Jelmer Vernooij2009-03-012-2/+3
| |
* | Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-014-23/+31
|/ | | | consistency with Samba 3.
* Add tevent_ntstatusVolker Lendecke2009-02-262-0/+83
|
* Add tevent_req_is_unix_errorVolker Lendecke2009-02-242-0/+73
|
* Refactored sys_fork() and sys_pid() into shared util librarySteven Danneman2009-02-233-3/+42
| | | | | | | | | | 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-202-14/+17
|
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-132-17/+13
|
* Fix Coverity ID 707 (RESOURCE_LEAK)Volker Lendecke2009-02-131-0/+1
|
* 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.
* Attempt to fix "make test" on host "tridge"Volker Lendecke2009-02-021-1/+1
|
* lib/util: s/new/pn in idtree.cStefan Metzmacher2009-02-021-16/+16
| | | | metze
* lib/util: s/class/dclassStefan Metzmacher2009-02-021-1/+1
| | | | metze
* Fix headers, only ldb.h is requiredSimo Sorce2009-02-011-2/+0
|
* s4:lib/util: fix the buildStefan Metzmacher2009-01-301-1/+1
| | | | metze
* s4:build: kill DEFAULT_HEADERS variableStefan Metzmacher2009-01-301-0/+1
| | | | metze
* Fix coverity CID#66. Resource leak in error path.Jeremy Allison2009-01-291-0/+1
| | | | Jeremy.
* util_str: setup the correct talloc name for stringsStefan Metzmacher2009-01-192-0/+4
| | | | | metze (partly from samba4wins tree 447e7f9532131117e896712db9def321c96718eb)
* lib: add strlen_m_term_null from s3.Günther Deschner2009-01-162-0/+20
| | | | Guenther
* s4:debug: make setup_logging() a bit more compatible with samba3Stefan Metzmacher2009-01-091-1/+1
| | | | | | | | | | | In samba3 the 2nd argument is bool interactive. E.g ndrdump uses true there which used to map to DEBUG_FILE in samba4, it maps to DEBUG_STDOUT now, which is better. In the end end samba3 should also use the samba4 version of setup_logging() metze
* Print the failed value in the time tests.Jelmer Vernooij2009-01-081-5/+8
|
* Avoid using a utility header for Python replacements included in Samba,Jelmer Vernooij2009-01-081-31/+0
| | | | since this will not be shipped with talloc/tdb/tevent/etc.
* s3/s4 build: Fix Py_RETURN_NONE to work with python versions < 2.4Tim Prouty2009-01-071-0/+31
|
* s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4Tim Prouty2008-12-301-0/+2
|
* Fix use of "time offset" parameter, and add test to make sure I don't break ↵Jelmer Vernooij2008-12-233-1/+23
| | | | it again :-)
* lib/util: make it possible to use debug.h with using xfile.hStefan Metzmacher2008-12-172-2/+3
| | | | metze
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-1/+1
| | | | Also eliminates name conflicts with OneFS system libraries
* s3 build: Fix incomplete types warningsTim Prouty2008-11-201-3/+2
|
* s3/s4 build: Fix execinfo and sasl build error when the libs/headers are in ↵Tim Prouty2008-11-181-2/+12
| | | | | | | non-standard locations. These configure checks have the correct flags at configure time, so let's pass them through so they are used at compile time.
* lib/util: hex_encode_talloc(): fix error path and set talloc nameStefan Metzmacher2008-11-161-0/+4
| | | | metze
* Rename class to "cls" since the first is a keyword name in C++. Thanks,Jelmer Vernooij2008-11-021-1/+1
| | | | Brad.
* Move lp_*() calls a bit higher up the calls tack.Jelmer Vernooij2008-11-011-1/+1
|
* Remove convert_string_talloc_descriptor, add iconv_talloc().Jelmer Vernooij2008-11-012-59/+77
|
* Move ABS() to libutil.Jelmer Vernooij2008-11-011-0/+4
|