<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/bin, branch master</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/bin?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/bin?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2021-03-12T02:10:25Z</updated>
<entry>
<title>Provide definition of CTRL in vi.c like we do for emacs.c.</title>
<updated>2021-03-12T02:10:25Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2021-03-12T02:10:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=b7e9697a372e4ef876838803b51c98b88bd5c3a7'/>
<id>urn:sha1:b7e9697a372e4ef876838803b51c98b88bd5c3a7</id>
<content type='text'>
Fixes a portability issue.  From Benjamin Baier
</content>
</entry>
<entry>
<title>groff complains about the word "An" in an Rs/Re block, believing it a macro,</title>
<updated>2021-03-11T07:04:12Z</updated>
<author>
<name>jmc</name>
<email>jmc@openbsd.org</email>
</author>
<published>2021-03-11T07:04:12Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=a9836ae0db8e6a3a6288fb3bf2d5dece63898318'/>
<id>urn:sha1:a9836ae0db8e6a3a6288fb3bf2d5dece63898318</id>
<content type='text'>
so escape it;
</content>
</entry>
<entry>
<title>Add support for ^R (redraw) in insert mode too.</title>
<updated>2021-03-10T20:17:33Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2021-03-10T20:17:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=80e855d93558c509b4b5abde845378edca8532aa'/>
<id>urn:sha1:80e855d93558c509b4b5abde845378edca8532aa</id>
<content type='text'>
From gotroyb127, OK tb@
</content>
</entry>
<entry>
<title>Fix redrawing of a multiline PS1 prompt in vi mode.</title>
<updated>2021-03-10T20:06:04Z</updated>
<author>
<name>millert</name>
<email>millert@openbsd.org</email>
</author>
<published>2021-03-10T20:06:04Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=aa7806bd03c7c1e39a51c54de27f48cd3b4e66a8'/>
<id>urn:sha1:aa7806bd03c7c1e39a51c54de27f48cd3b4e66a8</id>
<content type='text'>
From gotroyb127 OK tb@
</content>
</entry>
<entry>
<title>use a journal reference instead of cstr when possible</title>
<updated>2021-03-08T06:20:50Z</updated>
<author>
<name>jsg</name>
<email>jsg@openbsd.org</email>
</author>
<published>2021-03-08T06:20:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=4f4ed0d08f2b203e2d8e223ac6e481e5a1aea15a'/>
<id>urn:sha1:4f4ed0d08f2b203e2d8e223ac6e481e5a1aea15a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add some references, most of these were removed when we stopped building</title>
<updated>2021-03-08T02:47:25Z</updated>
<author>
<name>jsg</name>
<email>jsg@openbsd.org</email>
</author>
<published>2021-03-08T02:47:25Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=093fc5b92d3ed0da0e6be645e5b14525c4d75543'/>
<id>urn:sha1:093fc5b92d3ed0da0e6be645e5b14525c4d75543</id>
<content type='text'>
and installing USD/SMM/PSD docs.

jmc@ agrees with the direction, ok millert@ on an earlier diff
</content>
</entry>
<entry>
<title>Fix old ksh bug: wrong variable being looked up when value is provided.</title>
<updated>2021-03-05T15:22:03Z</updated>
<author>
<name>zhuk</name>
<email>zhuk@openbsd.org</email>
</author>
<published>2021-03-05T15:22:03Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0f7e252d5c47dee06d76308af9326d47daf9f02c'/>
<id>urn:sha1:0f7e252d5c47dee06d76308af9326d47daf9f02c</id>
<content type='text'>
This results, e.g., in allowing the first item of a read-only array to
be overwritten, as found by Jordan Geoghegan.

okay tb@
</content>
</entry>
<entry>
<title>cat(1): -n flag: correctly enumerate files with more than INT_MAX lines</title>
<updated>2020-12-11T05:48:22Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-12-11T05:48:22Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8d576c92c5d93d1e61ef1d918cae5fa9a9421c10'/>
<id>urn:sha1:8d576c92c5d93d1e61ef1d918cae5fa9a9421c10</id>
<content type='text'>
If we bump 'lines' from an int to an unsigned long long we can
trivially support files with more than INT_MAX lines.

ok millert@
</content>
</entry>
<entry>
<title>cat(1): misc. style(9)</title>
<updated>2020-12-04T02:25:56Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-12-04T02:25:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2112a9335ac99e5fab9cf094ba46d5b0af68fa4c'/>
<id>urn:sha1:2112a9335ac99e5fab9cf094ba46d5b0af68fa4c</id>
<content type='text'>
- Use getprogname(3) instead of __progname.
- Sprinkle in some missing braces.
- Prefer err(..., NULL) when malloc(3) fails.
- Remove an unnecessary cast to from ssize_t to size_t.
</content>
</entry>
<entry>
<title>cat(1): simplify argv processing loops</title>
<updated>2020-12-04T01:42:05Z</updated>
<author>
<name>cheloha</name>
<email>cheloha@openbsd.org</email>
</author>
<published>2020-12-04T01:42:05Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=2d7eb85656337cac88f09f1628b941f37e8f7b4a'/>
<id>urn:sha1:2d7eb85656337cac88f09f1628b941f37e8f7b4a</id>
<content type='text'>
cook_args() and raw_args() do some peculiar things in order to avoid
calling cook_buf() and raw_cat(), respectively, in more than one
place.  The result is a convoluted.  If we isolate the special cases
from the normal case and just call these functions in multiple places
the loops will be easier to read.

Three things:

1. Pull the no-args case out of the loop.  If *argv is NULL when we
   get into the argv processing function we just want to operate on
   the standard input and return early.  It makes no sense to handle
   this case *in* the loop.

2. Isolate the "-" case from the filename case.  If *argv is "-" we want
   to operate on the standard input.  We can then do any stdin-specific
   cleanup within the same branch, which makes it easier to understand
   both the "-" case and the normal filename case.  This also allows us
   to remove the 'filename' intermediate variable from both argv processing
   functions.

3. While we're here, use a for-loop and iterate argv in the loop header.
   Now argv is incremented in one place.

ok martijn@
</content>
</entry>
</feed>
