<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libedit/readline.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/readline.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/readline.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2019-08-14T08:31:00Z</updated>
<entry>
<title>read() returns -1 on failure</title>
<updated>2019-08-14T08:31:00Z</updated>
<author>
<name>asou</name>
<email>asou@openbsd.org</email>
</author>
<published>2019-08-14T08:31:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=97a352df3f676c10822d728e2fcb18e299c40662'/>
<id>urn:sha1:97a352df3f676c10822d728e2fcb18e299c40662</id>
<content type='text'>
ok yasuoka@
</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>Fix a crash in stifle_history() that occurred when the history</title>
<updated>2016-05-31T16:12:00Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-31T16:12:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ef07c437dfbcb57696263bd17a2872d02bb59ed5'/>
<id>urn:sha1:ef07c437dfbcb57696263bd17a2872d02bb59ed5</id>
<content type='text'>
contained more than twice as many entries as the new limit:  The
argument of remove_history() only counts existing elements, not
those previously deleted.

Crash found by bentley@ when exiting sqlite3(1).
</content>
</entry>
<entry>
<title>Fix next_history() and previous_history():</title>
<updated>2016-05-10T11:07:53Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-10T11:07:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=47f0686a862e2df42bc81479b406fc58352d68b9'/>
<id>urn:sha1:47f0686a862e2df42bc81479b406fc58352d68b9</id>
<content type='text'>
* The meaning of "next" and "previous" is exchanged in readline(3) with
respect to editline(3); this part of the patch from Bastian Maerkisch.
* next_history() can move beyond the newest entry; issue pointed out
by Bastian Maerkisch, fix by me.

While here, make the documentation of ed-next-history, ed-prev-history,
H_NEXT, and H_PREV more precise.

OK czarkoff@.
</content>
</entry>
<entry>
<title>Fix history_get():</title>
<updated>2016-05-10T10:49:37Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-10T10:49:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=dddc8490d90a7478ec6b2430fb09b5626543ec88'/>
<id>urn:sha1:dddc8490d90a7478ec6b2430fb09b5626543ec88</id>
<content type='text'>
* Respect history_base.
* Bail out early for arguments that are too small.
* Select entry by readline offset, not by editline event number.
* Restore history cursor in case of failure.
This fixes the test_remove() regression test.

Based on a patch from Bastian Maerkisch &lt;bmaerkisch at web dot de&gt;.
Dmitrij Czarkoff pointed out a flaw in it that i fixed.
OK czarkoff@.
</content>
</entry>
<entry>
<title>Fix stifle_history(): Remove excessive entries, if any.</title>
<updated>2016-05-09T12:31:55Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-09T12:31:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5eaeb63fcf36ef70e5eaadfda9a5d4d086440fb5'/>
<id>urn:sha1:5eaeb63fcf36ef70e5eaadfda9a5d4d086440fb5</id>
<content type='text'>
Based on a patch from Bastian Maerkisch &lt;bmaerkisch at web dot de&gt;,
with an additional fix for a memory leak by me.
OK czarkoff@
</content>
</entry>
<entry>
<title>Change where_history() to agree with the GNU implementation:</title>
<updated>2016-05-08T13:52:33Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-08T13:52:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=42bbcabc56f4764ca1e1ca8f6478ab1dac345d4d'/>
<id>urn:sha1:42bbcabc56f4764ca1e1ca8f6478ab1dac345d4d</id>
<content type='text'>
Return 0 for the oldest entry and increment by 1 for each newer,
non-deleted entry.
This fixes the test_where() regression test.

Patch from Bastian Maerkisch &lt;bmaerkisch at web dot de&gt;.
OK czarkoff@.
</content>
</entry>
<entry>
<title>Make the history_set_pos() return values agree with the GNU implementation.</title>
<updated>2016-05-08T13:34:35Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-08T13:34:35Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=07f7d775ab33a2f2c794af7626fe7d914fe03d5e'/>
<id>urn:sha1:07f7d775ab33a2f2c794af7626fe7d914fe03d5e</id>
<content type='text'>
Patch from Bastian Maerkisch &lt;bmaerkisch at web dot de&gt;
with a minor tweak from Christos Zoulas.
Fixes the test_set_pos_return_values() regression test.

OK czarkoff@,
also proofread by zhuk@ and by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>Replace the generated file "fcns.c" by a simpler header "func.h"</title>
<updated>2016-05-06T13:12:52Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-06T13:12:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=13e01c7add293760b137f79ec359a58715043708'/>
<id>urn:sha1:13e01c7add293760b137f79ec359a58715043708</id>
<content type='text'>
included only in the one file needing it, "map.c".
That allows to define el_action_t directly in "map.h",
which in turn allows to stop including "fcns.h" from "el.h"
and include it only in the modules needing it.
Now we no longer autogenerate any C files.

Feedback and OK martijn@.
First version also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>Always compile with WIDECHAR on and delete that preprocessor switch.</title>
<updated>2016-04-09T19:31:55Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-09T19:31:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=59aed04376a049dfbbb13e1bb6d19f1aff4a2c6e'/>
<id>urn:sha1:59aed04376a049dfbbb13e1bb6d19f1aff4a2c6e</id>
<content type='text'>
OK martijn@.
Diff also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
</feed>
