Commit Graph

22 Commits

Author SHA1 Message Date
Nicolas Williams
b48bed5f42 Daemons detach atomically to avoid having to wait
Tests that start daemons have to "wait" for them to start.

This commit makes Heimdal daemons prep to detach (when requested) by
forking early, then having the child signal readiness to the parent when
the child really is ready.  The parent exits only which the child is
ready.  This means that tests will no longer need to wait for daemons.

However, tests will still need a pidfile or such so they can stop the
daemons.

Note that the --detach options should not be used on OS X from launchd,
only from tests.
2015-03-24 11:49:59 -05:00
Simon Wilkinson
8485250989 roken: Add memset_s implementation
Add an implementation of memset_s to roken.

Some optimising compilers may remove the memset() instruction when it
is used immediately before a free, which defeats its purpose if the
intention is to zero memory before returning it to the heap or stack.

C11 added memset_s, provide a fallback in roken so that memset_s can
be used on all platforms.
2015-03-05 17:06:20 +00:00
Love Hörnquist Åstrand
37afa01be3 rename roken base64, fixes #107 2014-08-22 20:57:24 -07:00
Jeffrey Altman
3f1d795758 roken: introduce rk_cloexec_socket
Accepts type rk_socket_t and is a no-op on Windows

Change-Id: I82755872e86ef36445e60054dd752279aaceb6d1
2013-08-19 10:21:23 -04:00
Jeffrey Altman
8fa446d75c roken: Add rk_mkdir()
The Windows version of mkdir() does not share the same signature
as the POSIX version.  Add rk_mkdir() with an POSIX compliant signature
to libroken.  The current implementation ignores the 'mode' parameter
on Windows but a future implementation could provide the required
functionality with native Win32 APIs.

Change-Id: I084d42e0f27932e9b8131d310dbf34849f5fe4b6
2013-06-22 21:17:26 -04:00
Roland C. Dowdeswell
183b15c11b lib/roken must export rk_socket_set_nonblocking. 2013-02-13 16:50:09 +08:00
Nicolas Williams
6dd66df594 Make master build on Windows
Add strtoll()/strtoull() to lib/roken
    Add stdint.h to lib/roken (Windows only)
    Add logic to detect whether to use lib/roken's stdint.h based on
        Visual Studio version
    Add include of stdint.h in generated ASN.1 code
    Export missing symbols for 64-bit integers in lib/asn1
    Export missing symbols for FAST
    Add missing sources to kdc/NTMakefile
    Fix issue in kuserok
    Fix bsearch issues
2012-01-17 12:10:14 -06:00
Love Hornquist Astrand
81a03fafd2 is rk, not rx 2011-04-14 13:08:16 -07:00
Derrick Brashear
2a32bf67f0 Add tsearch and friends, and a test program
tsearch is missing from windows. use the netbsd version as it's
license-compatible.
2011-04-08 15:15:36 +01:00
Love Hornquist Astrand
a2b45360c2 add random_init 2010-11-29 09:31:07 -08:00
Love Hornquist Astrand
cf1b11f8a0 export more 2010-03-11 23:35:26 -08:00
Love Hornquist Astrand
908ece3604 Adapt for Linux with SOCK_CLOEXEC, patch from Harald Barth 2010-01-26 10:46:51 -08:00
Asanka Herath
68cfbb7e19 Add rk_cloexec_dir() to lib/roken 2009-12-22 14:03:39 -05:00
Love Hornquist Astrand
599a7e2e50 add ct_memcmp as an exported symbol 2009-08-20 04:34:26 -07:00
Love Hornquist Astrand
21ff5b84a5 Fix symbols renaming for flock 2009-08-14 05:17:51 +02:00
Love Hörnquist Åstrand
b8fb6b35ae dns_ symbols are no more.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-03-22 17:17:12 +00:00
Love Hörnquist Åstrand
5ba6d352b7 glob/globfree is no longer used, prefixed with rk_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-22 23:23:26 +00:00
Love Hörnquist Åstrand
efed5633ca prefix symbols with rk_, patch from Martin von Gagern
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24759 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-17 02:49:55 +00:00
Love Hörnquist Åstrand
081f5bc0ad prefix warnerr with rk_
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24733 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-16 18:37:46 +00:00
Love Hörnquist Åstrand
f7e54baefc More symbols, from Martin von Gagern.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24620 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:11:11 +00:00
Love Hörnquist Åstrand
ec24bb4386 add more bits
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:09:01 +00:00
Love Hörnquist Åstrand
cb57cd57f8 add version-script.map
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24606 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-04 22:08:51 +00:00