<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libedit/read.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/read.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/read.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2016-05-25T09:36:21Z</updated>
<entry>
<title>el_map.alt can never be NULL, delete dead code</title>
<updated>2016-05-25T09:36:21Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-25T09:36:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=088576a9098e1f7632316912ff3afb6470db251f'/>
<id>urn:sha1:088576a9098e1f7632316912ff3afb6470db251f</id>
<content type='text'>
OK czarkoff@
</content>
</entry>
<entry>
<title>Saving errno in el_errno is only needed for one purpose:</title>
<updated>2016-05-25T09:23:49Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-25T09:23:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=eea31d84e082354d33a160ec9772da6b8e1279be'/>
<id>urn:sha1:eea31d84e082354d33a160ec9772da6b8e1279be</id>
<content type='text'>
Restoring the original errno found in el_wgetc() after
el_wgets() did some cleanup that may have changed errno.

Improve clarity and robustness of the code by not setting and
inspecting el_errno where it isn't needed; in particular, let
keymacro_get() properly report read failure to read_getcmd().
Move el_errno to el_read_t because it's only used in read.c.
Never set errno back to zero.

Checked with a test program installing a USR1 signal handler
without SA_RESTART, for the cases read_getcmd(), ed_quoted_insert(),
keymacro_get(), ed_command(), and EL_EDITMODE=0.

OK czarkoff@
</content>
</entry>
<entry>
<title>Remove debugging ifdefs.</title>
<updated>2016-05-24T18:06:30Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-24T18:06:30Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=92d0105e7951cdeb3e4076e5a051e254a684cc34'/>
<id>urn:sha1:92d0105e7951cdeb3e4076e5a051e254a684cc34</id>
<content type='text'>
I'm debugging the read module for weeks now,
but these ifdefs aren't helpful.
OK cpp(1).
</content>
</entry>
<entry>
<title>Improve modularization at the chared/read boundary, no functional change.</title>
<updated>2016-05-22T23:09:56Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-22T23:09:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5161d913cb08c330eb60301f1e102963e9c20781'/>
<id>urn:sha1:5161d913cb08c330eb60301f1e102963e9c20781</id>
<content type='text'>
Stop the read.c module from poking the el_chared.c_macro data
structure that used to belong to the chared.c module.  Given that
no other module, not even chared itself, is using that data, move it
into the read modules's own opaque data structure, struct el_read_t.

That gets rid of one struct, one #define, one struct member, and one
function argument in the chared.h interface.

OK czarkoff@
</content>
</entry>
<entry>
<title>Move the declaration of the function pointer type el_rfunc_t</title>
<updated>2016-05-20T15:30:17Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-20T15:30:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=04833be782e762289c5df37db589b7334e21f089'/>
<id>urn:sha1:04833be782e762289c5df37db589b7334e21f089</id>
<content type='text'>
from the private header "read.h" to the public header &lt;histedit.h&gt;.
That's not an interface change, it was already used and documented
publicly, merely not properly declared.

Improve encapsulation: Make el_read a pointer to an opaque struct
in struct editline, such that "read.h" no longer needs to be included
from "el.h" but only from the two files using it, read.c and el.c.
Only pass the required el_read_t to el_read_{s,g}etfn(),
do not pass the full struct editline.

OK czarkoff@,
also proofread 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>Re-introduce the following commit:</title>
<updated>2016-04-13T09:42:41Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-13T09:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=0a662d04499789a901a4983c968dc7119c1a81ba'/>
<id>urn:sha1:0a662d04499789a901a4983c968dc7119c1a81ba</id>
<content type='text'>
OpenBSD read.c rev. 1.4 1997/06/10 20:10:13 millert
FIONREAD takes int *, not long *

It got lost in the following merge from NetBSD:
OpenBSD read.c rev. 1.10 2003/10/31 08:42:24 otto

OK millert@ martijn@
</content>
</entry>
<entry>
<title>Cleanup, no functional change:</title>
<updated>2016-04-12T09:07:21Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-12T09:07:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=8967f77133d0cfe0ae8ae0648d672bbee2b52eb5'/>
<id>urn:sha1:8967f77133d0cfe0ae8ae0648d672bbee2b52eb5</id>
<content type='text'>
* Make the return value from read_getcmd() less confusing.
* No need to store that return value; testing it once is enough.
* Get rid of one #ifdef section in el_wgets().
OK czarkoff@ martijn@
</content>
</entry>
<entry>
<title>* Delete the unimplemented feature XK_EXE.</title>
<updated>2016-04-12T09:04:02Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-12T09:04:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e74981d0677cc33a8041daeb29ca0201777d85af'/>
<id>urn:sha1:e74981d0677cc33a8041daeb29ca0201777d85af</id>
<content type='text'>
* Delete the unused macro MIN().
No functional change.
OK czarkoff@ martijn@
</content>
</entry>
<entry>
<title>delete the "private" and "public" preprocessor macros, just use standard C;</title>
<updated>2016-04-11T21:17:29Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-11T21:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ddc81437857133802b1cf7d8d5bf0ff2198b602b'/>
<id>urn:sha1:ddc81437857133802b1cf7d8d5bf0ff2198b602b</id>
<content type='text'>
OK martijn@
</content>
</entry>
</feed>
