<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/net/res_random.c, branch OPENBSD_6_8_BASE</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_6_8_BASE'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2020-07-06T13:33:06+00:00</updated>
<entry>
<title>Add support for timeconting in userland.</title>
<updated>2020-07-06T13:33:06+00:00</updated>
<author>
<name>pirofti</name>
<email></email>
</author>
<published>2020-07-06T13:33:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0320e8b397405d62725b086d54c65caf0669f919'/>
<id>urn:sha1:0320e8b397405d62725b086d54c65caf0669f919</id>
<content type='text'>
This diff exposes parts of clock_gettime(2) and gettimeofday(2) to
userland via libc eliberating processes from the need for a context
switch everytime they want to count the passage of time.

If a timecounter clock can be exposed to userland than it needs to set
its tc_user member to a non-zero value. Tested with one or multiple
counters per architecture.

The timing data is shared through a pointer found in the new ELF
auxiliary vector AUX_openbsd_timekeep containing timehands information
that is frequently updated by the kernel.

Timing differences between the last kernel update and the current time
are adjusted in userland by the tc_get_timecount() function inside the
MD usertc.c file.

This permits a much more responsive environment, quite visible in
browsers, office programs and gaming (apparently one is are able to fly
in Minecraft now).

Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others!

OK from at least kettenis@, cheloha@, naddy@, sthen@
</content>
</entry>
<entry>
<title>Prefer _MUTEX_*LOCK over _THREAD_PRIVATE_MUTEX_*LOCK() when thread-specific</title>
<updated>2016-04-05T04:29:21+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2016-04-05T04:29:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=503b7f2a3131d0c8321cd43845e068b0e800326b'/>
<id>urn:sha1:503b7f2a3131d0c8321cd43845e068b0e800326b</id>
<content type='text'>
data isn't necessary.

ok mpi@, ok&amp;tweak natano@
</content>
</entry>
<entry>
<title>Wrap &lt;resolv.h&gt; so that internal calls go direct</title>
<updated>2015-10-05T02:57:16+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-10-05T02:57:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=8f9432c9662a11c4974baafc30994709db527838'/>
<id>urn:sha1:8f9432c9662a11c4974baafc30994709db527838</id>
<content type='text'>
ok millert@
</content>
</entry>
<entry>
<title>force reseeding if pid has changed.</title>
<updated>2015-06-04T19:26:39+00:00</updated>
<author>
<name>eric</name>
<email></email>
</author>
<published>2015-06-04T19:26:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=3264ecb55a0bdb0ed465192d7fa83ecd99a9998f'/>
<id>urn:sha1:3264ecb55a0bdb0ed465192d7fa83ecd99a9998f</id>
<content type='text'>
ok deraadt@
</content>
</entry>
<entry>
<title>From ISO/IEC 9899:1999 and 9899:201x,</title>
<updated>2014-07-20T04:22:34+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2014-07-20T04:22:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2d32133a5bf876d4d4e5ec6d7a5b28977b043411'/>
<id>urn:sha1:2d32133a5bf876d4d4e5ec6d7a5b28977b043411</id>
<content type='text'>
6.11.5 - Storage-class specifiers:
    The placement of a storage-class specifier other than at the
    beginning of the declaration specifiers in a declaration is
    an obsolescent feature.

Diff from Jean-Philippe Ouellet (jean-philippe (at) ouellet.biz)
</content>
</entry>
<entry>
<title>permute15() should be static.  Not cranking libc now, because it is</title>
<updated>2013-11-12T07:00:24+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2013-11-12T07:00:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=50cfe9e0529a14ae532cfc67e21efa4e79703744'/>
<id>urn:sha1:50cfe9e0529a14ae532cfc67e21efa4e79703744</id>
<content type='text'>
not urgent.
</content>
</entry>
<entry>
<title>use CLOCK_MONOTONIC, and repair future time_t overflow</title>
<updated>2013-04-17T03:07:40+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2013-04-17T03:07:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e90cc669e9f3289c91c6619aaeae77507fdb9f9c'/>
<id>urn:sha1:e90cc669e9f3289c91c6619aaeae77507fdb9f9c</id>
<content type='text'>
ok millert guenther
</content>
</entry>
<entry>
<title>protect the PRG state with a mutex in res_randomid().</title>
<updated>2013-03-26T17:29:04+00:00</updated>
<author>
<name>eric</name>
<email></email>
</author>
<published>2013-03-26T17:29:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=487e58c6d4fb556b7aa0d89e39c11f57db15bdb7'/>
<id>urn:sha1:487e58c6d4fb556b7aa0d89e39c11f57db15bdb7</id>
<content type='text'>
ok deraadt@ guenther@ djm@
</content>
</entry>
<entry>
<title>Improve the libc DNS resolver ID generation algorithm to be more</title>
<updated>2008-04-13T00:28:35+00:00</updated>
<author>
<name>djm</name>
<email></email>
</author>
<published>2008-04-13T00:28:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5e750bd35f84420b17ed5842c8d69e716d485360'/>
<id>urn:sha1:5e750bd35f84420b17ed5842c8d69e716d485360</id>
<content type='text'>
resistant to prediction atacks by wrapping the existing LCG in a
random permutation generator based on a Luby-Rackoff block cipher.

lots of discussion and final ok deraadt@
</content>
</entry>
<entry>
<title>ansify. ok deraadt@ moritz@</title>
<updated>2005-03-25T13:24:12+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2005-03-25T13:24:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2f490723a2e673b2457f65c4b06cacb7d700a3e8'/>
<id>urn:sha1:2f490723a2e673b2457f65c4b06cacb7d700a3e8</id>
<content type='text'>
</content>
</entry>
</feed>
