<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/regress/lib/libpthread/semaphore, branch jd/simplify-queueing</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/regress/lib/libpthread/semaphore?h=jd%2Fsimplify-queueing</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/regress/lib/libpthread/semaphore?h=jd%2Fsimplify-queueing'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-12-20T23:39:01Z</updated>
<entry>
<title>Fix the sem_timedwait(3) test.</title>
<updated>2019-12-20T23:39:01Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2019-12-20T23:39:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c672e670483e64beb92e18b92467ba4bf2b73852'/>
<id>urn:sha1:c672e670483e64beb92e18b92467ba4bf2b73852</id>
<content type='text'>
The recent clock_getres(2) changes made it so that clock_getres(2) returns
the granularity of the active timecounter.  This is usually much finer
than that of hardclock(9), so we can no longer use clock_getres(2) to
fudge our upper timeout return bound.  The test is failing because it
thinks our sem_timedwait(3) call is returning with too much latency.

We can still get the hardclock(9) granularity via the kern.clockrate
sysctl(2), though, so just use that to fudge the upper bound.

While here, we ought to be checking that we return after the requested
absolute timeout, not that we were asleep for a particular interval.

Breakage reported by mpi@.

ok mpi@
</content>
</entry>
<entry>
<title>Fix sem_timedwait regress test. Needs SA_RESTART to block now.</title>
<updated>2018-04-27T11:31:17Z</updated>
<author>
<name>pirofti</name>
<email>pirofti@openbsd.org</email>
</author>
<published>2018-04-27T11:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fd181be8702dedce8ecf811742c92216629b6d8e'/>
<id>urn:sha1:fd181be8702dedce8ecf811742c92216629b6d8e</id>
<content type='text'>
Hug and OK guenther@
</content>
</entry>
<entry>
<title>There can be resolution-worth of slop in two places, so accept that</title>
<updated>2014-01-22T04:31:45Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2014-01-22T04:31:45Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=737af275fbf18dc26e38f3404bf2d0815c9b81c4'/>
<id>urn:sha1:737af275fbf18dc26e38f3404bf2d0815c9b81c4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add tests for sem_timedwait()</title>
<updated>2012-03-03T11:08:12Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2012-03-03T11:08:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=db068fc7e7c9bb12c19a6b4bc7a08abae6d6d00c'/>
<id>urn:sha1:db068fc7e7c9bb12c19a6b4bc7a08abae6d6d00c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Verify that sem_wait() doesn't return zero without decrementing the</title>
<updated>2012-03-03T09:51:00Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2012-03-03T09:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=297694a9a755dc4fe7c18dcfc0ae7c6466927a06'/>
<id>urn:sha1:297694a9a755dc4fe7c18dcfc0ae7c6466927a06</id>
<content type='text'>
semaphore when a signal is received.  It should either resume waiting
or return EINTR, preferrably the former.
</content>
</entry>
<entry>
<title>While we guarantee that a zero-filled sem_t variable will trigger</title>
<updated>2012-03-03T09:36:26Z</updated>
<author>
<name>guenther</name>
<email>guenther@openbsd.org</email>
</author>
<published>2012-03-03T09:36:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ce8a7339e20e3e13b3dadd581f8977d7576826a1'/>
<id>urn:sha1:ce8a7339e20e3e13b3dadd581f8977d7576826a1</id>
<content type='text'>
EINVAL errors, a sem_t on the stack may have garbage, so make the
tests portable by moving the sem_t from function to file scope.

problem found by miod@
</content>
</entry>
<entry>
<title>Basic semaphore tests</title>
<updated>2012-01-04T17:36:40Z</updated>
<author>
<name>mpi</name>
<email>mpi@openbsd.org</email>
</author>
<published>2012-01-04T17:36:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=3fbe19a47e48fbca381ff3c959a0c6669579f479'/>
<id>urn:sha1:3fbe19a47e48fbca381ff3c959a0c6669579f479</id>
<content type='text'>
ok guenther@
</content>
</entry>
</feed>
