<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libc/gen, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/gen?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libc/gen?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-02-02T07:33:29Z</updated>
<entry>
<title>article fixes; from eddie youseph</title>
<updated>2021-02-02T07:33:29Z</updated>
<author>
<name>jmc</name>
<email>jmc@openbsd.org</email>
</author>
<published>2021-02-02T07:33:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c1d0308a693828b31d436726f1e24f9a9741b4ac'/>
<id>urn:sha1:c1d0308a693828b31d436726f1e24f9a9741b4ac</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make fts_{alloc,safe_changed}() const correct</title>
<updated>2021-01-08T16:06:30Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2021-01-08T16:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8ce2995a34a601a9ef340d68d2e6405dcd9ca268'/>
<id>urn:sha1:8ce2995a34a601a9ef340d68d2e6405dcd9ca268</id>
<content type='text'>
Previously, this code was passing string constants to functions that did
not declare their parameters as const. After this patch, the functions now
declare that they do not modify these arguments, making it safe to pass
string constants. Fixes -Wincompatible-pointer-types-discards-qualifiers.

From Adam Barth &lt;abarth google com&gt;

ok millert
</content>
</entry>
<entry>
<title>sleep(3): don't bypass nanosleep(2) if seconds is zero</title>
<updated>2021-01-07T15:24:52Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2021-01-07T15:24:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7f7a9cc45e2a9c0cfe79d6a7cec6cc1cdb950c44'/>
<id>urn:sha1:7f7a9cc45e2a9c0cfe79d6a7cec6cc1cdb950c44</id>
<content type='text'>
sleep(3) does not call nanosleep(2) if seconds is zero.  This is bad.
As a simplified interface to nanosleep(2), sleep(3) should delegate
all decisions about whether or not to yield the CPU to nanosleep(2).

This patch removes the nanosleep(2) bypass from sleep(3).

This means that this code:

	sleep(0);

will block for up to 1 tick, just like the equivalent nanosleep(2) call.

Neither FreeBSD nor NetBSD bypass nanosleep(2) in the zero case, so
this commit brings our sleep(3) closer to theirs in behavior.

As an added bonus, sleep(3) will now *always* appear in a ktrace(1) as
a call to nanosleep(2).

ok millert@
</content>
</entry>
<entry>
<title>Constify dktypenames and fstypenames in libc.</title>
<updated>2020-11-14T20:53:31Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2020-11-14T20:53:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=598e0fa840a6086bb9e40d03de1b9ba67d23b3d8'/>
<id>urn:sha1:598e0fa840a6086bb9e40d03de1b9ba67d23b3d8</id>
<content type='text'>
Adjust variable declaration in disklabel to match.

ok millert@ deraadt@
</content>
</entry>
<entry>
<title>Align the basename(3) and dirname(3) prototypes with the POSIX spec:</title>
<updated>2020-10-20T19:30:14Z</updated>
<author>
<name>naddy</name>
<email>naddy@openbsd.org</email>
</author>
<published>2020-10-20T19:30:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=cf6da2c267aa357925acfdbab7adba6129c97978'/>
<id>urn:sha1:cf6da2c267aa357925acfdbab7adba6129c97978</id>
<content type='text'>
Both functions take a non-const parameter.  Implementations may modify
the passed string, even though ours do not.

ok stsp@ deraadt@ millert@
</content>
</entry>
<entry>
<title>Do some easy .data -&gt; .rodata/.data.rel.ro conversions</title>
<updated>2020-10-13T04:42:28Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2020-10-13T04:42:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=036a3c97db0a437193eb7e0c8716ea40cb440a8b'/>
<id>urn:sha1:036a3c97db0a437193eb7e0c8716ea40cb440a8b</id>
<content type='text'>
ok millert@ deraadt@
</content>
</entry>
<entry>
<title>make fixed-sized fixed-value mib[] arrays be const</title>
<updated>2020-10-12T22:08:32Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-10-12T22:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=87afc19ed9256ae3cb7c5266911abf02218c2a35'/>
<id>urn:sha1:87afc19ed9256ae3cb7c5266911abf02218c2a35</id>
<content type='text'>
ok guenther tb millert
</content>
</entry>
<entry>
<title>mib[2] is no longer used; ok guenther</title>
<updated>2020-10-12T19:51:28Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2020-10-12T19:51:28Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=f27c0a7b2dd79456a49d960aa95310004aaea12f'/>
<id>urn:sha1:f27c0a7b2dd79456a49d960aa95310004aaea12f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for timeconting in userland.</title>
<updated>2020-07-06T13:33:05Z</updated>
<author>
<name>pirofti</name>
<email>pirofti@openbsd.org</email>
</author>
<published>2020-07-06T13:33:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=d82e6535c6efd8305182f77041b2246ccfae1196'/>
<id>urn:sha1:d82e6535c6efd8305182f77041b2246ccfae1196</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>Prevent infinite for loop since i went from ssize_t to size_t.  Patch from</title>
<updated>2020-04-21T08:25:22Z</updated>
<author>
<name>dtucker</name>
<email>dtucker@openbsd.org</email>
</author>
<published>2020-04-21T08:25:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=06b40007c2958de0465fc20a45c351c812e2d9f6'/>
<id>urn:sha1:06b40007c2958de0465fc20a45c351c812e2d9f6</id>
<content type='text'>
eagleoflqj via OpenSSH github PR#178, ok djm@, feedback &amp; ok millert@
</content>
</entry>
</feed>
