<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/games/grdc, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/games/grdc?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/games/grdc?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2020-06-06T17:03:16Z</updated>
<entry>
<title>grdc(6): implement timeout with alarm(3)</title>
<updated>2020-06-06T17:03:16Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-06-06T17:03:16Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=fb669f8977b48b0320cb326c4ffe866e91feb485'/>
<id>urn:sha1:fb669f8977b48b0320cb326c4ffe866e91feb485</id>
<content type='text'>
grdc(6) has an optional argument indicating a timeout in seconds.
For example, one could do:

	$ grdc 60

to to tell grdc(6) to run for sixty seconds and then exit gracefully.

As implemented, however, the timeout may occur too early or too late
if the system clock is reset with settimeofday(2).

To avoid this problem we can instead use alarm(3) and a signal handler
to implement the timeout.  alarm(3) is unaffected by settimeofday(2).
</content>
</entry>
<entry>
<title>grdc(6): miscellaneous style(9)</title>
<updated>2020-06-06T13:21:40Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-06-06T13:21:40Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6222ba341e0cb488baa78113eb6f77af3e65c40a'/>
<id>urn:sha1:6222ba341e0cb488baa78113eb6f77af3e65c40a</id>
<content type='text'>
- Sort includes alphabetically
- Sort function prototypes alphabetically
- Add missing whitespace after commas
- Remove extra whitespace after commas
- Add missing whitespace between binary operators
- Add missing whitespace between reserved words and parens, i.e. fix "if("
- Add missing __dead to usage() definition
</content>
</entry>
<entry>
<title>When system calls indicate an error they return -1, not some arbitrary</title>
<updated>2019-06-28T13:32:41Z</updated>
<author>
<name>deraadt</name>
<email>deraadt@openbsd.org</email>
</author>
<published>2019-06-28T13:32:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df69c215c7c66baf660f3f65414fd34796c96152'/>
<id>urn:sha1:df69c215c7c66baf660f3f65414fd34796c96152</id>
<content type='text'>
value &lt; 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
</content>
</entry>
<entry>
<title>missing word found in my tree</title>
<updated>2019-02-06T15:02:01Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2019-02-06T15:02:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b28c290522f8c1285226ccb70bdd2b5accb37e71'/>
<id>urn:sha1:b28c290522f8c1285226ccb70bdd2b5accb37e71</id>
<content type='text'>
</content>
</entry>
<entry>
<title>allow q to exit the program.</title>
<updated>2019-01-06T18:27:14Z</updated>
<author>
<name>tedu</name>
<email>tedu@openbsd.org</email>
</author>
<published>2019-01-06T18:27:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8ca82b000914eb1e6f45d22092c9358df4233247'/>
<id>urn:sha1:8ca82b000914eb1e6f45d22092c9358df4233247</id>
<content type='text'>
ok cheloha deraadt schwarze
</content>
</entry>
<entry>
<title>reduce pledge(2) to "stdio tty" after ncurses initialization.</title>
<updated>2018-08-23T06:25:01Z</updated>
<author>
<name>mestre</name>
<email>mestre@openbsd.org</email>
</author>
<published>2018-08-23T06:25:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c5ef424a48f1add3dc7346aa8d4a8782c3ec70af'/>
<id>urn:sha1:c5ef424a48f1add3dc7346aa8d4a8782c3ec70af</id>
<content type='text'>
OK tb@
</content>
</entry>
<entry>
<title>The code can be simplified by using clock_gettime(2)'s CLOCK_REALTIME</title>
<updated>2017-12-11T23:33:44Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2017-12-11T23:33:44Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=77b728da666f4e207131015d6e6ea34c9c630981'/>
<id>urn:sha1:77b728da666f4e207131015d6e6ea34c9c630981</id>
<content type='text'>
instead of gettimeofday(2).

From Scott Cheloha, ok jca
</content>
</entry>
<entry>
<title>Convert fprintf(stderr, ...) to errx/warnx (with slight change of output).</title>
<updated>2017-07-13T02:57:52Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2017-07-13T02:57:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=9ab6e3d4aba4e97069443ae9a8e079597de63475'/>
<id>urn:sha1:9ab6e3d4aba4e97069443ae9a8e079597de63475</id>
<content type='text'>
From Scott Cheloha
</content>
</entry>
<entry>
<title>- General changes:</title>
<updated>2016-03-07T12:07:55Z</updated>
<author>
<name>mestre</name>
<email>mestre@openbsd.org</email>
</author>
<published>2016-03-07T12:07:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=6fa5e1da3490487b9d3a614457ba0b7c041eb1ac'/>
<id>urn:sha1:6fa5e1da3490487b9d3a614457ba0b7c041eb1ac</id>
<content type='text'>
- Remove -? from getopt(3) options, but still keep (or add) -h where applicable
- Replace hardcoded program strings by getprogname(3)

- Specific changes:
- atc(6): this used -? and -u for usage(), remove both from game and manpage
- bcd(6): use __progname instead of getprogname(3), no need to include stdlib.h
- hunt(6): replace fputs(3) by fprintf(3)

OK tb@ after his suggestions
</content>
</entry>
<entry>
<title>Some basic code maintenance in games/</title>
<updated>2016-01-07T16:00:31Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2016-01-07T16:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=17641e3181064a4b256bd1af9f64d90af0ac5a36'/>
<id>urn:sha1:17641e3181064a4b256bd1af9f64d90af0ac5a36</id>
<content type='text'>
- in main() replace exit with return
- drop some /* NOTREACHED */ lint comments along the way.
- make more use of standard CFLAGS, esp. -Wimplicit-function-declaration
- add and sort some headers when needed
- add straightforward pledges to some programs used at compile time

discussed with and ok mestre@
</content>
</entry>
</feed>
