<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/stdlib, branch libressl-v3.2.3</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=libressl-v3.2.3</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=libressl-v3.2.3'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2020-09-06T06:41:03+00:00</updated>
<entry>
<title>For page-sized and larger allocations do not put the pages we're</title>
<updated>2020-09-06T06:41:03+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2020-09-06T06:41:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=764cad0b41a6709d8db171bee28134987f460c1a'/>
<id>urn:sha1:764cad0b41a6709d8db171bee28134987f460c1a</id>
<content type='text'>
shaving off into the cache but unamp them. Pages in the cache get
re-used and then a future grow of the first allocation will be
hampered. Also make realloc a no-op for small shrinkage.
ok deraadt@
</content>
</entry>
<entry>
<title>This patch fixes one bug and one instance of undesirable behaviour.</title>
<updated>2020-05-27T22:25:09+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2020-05-27T22:25:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=865d79a51cfbda059a32d59a45f9a8981dc6b7ff'/>
<id>urn:sha1:865d79a51cfbda059a32d59a45f9a8981dc6b7ff</id>
<content type='text'>
The bug, present since 4.4BSD, was that a trailing dash in an option
group, when the dash is not permitted as an option letter, resulted
in the whole option group being returned as an argument, even though
the previous option in the group was already parsed as an option:
OPTS=abc ./getopt-test -a- -c arg  ===&gt;&gt;  OPT(a)ARG(-a-)ARG(-c)ARG(arg).
Instead, treat the dash as an invalid option and continue parsing
options:  ===&gt;&gt;  OPT(a)ERR(?-)OPT(c)ARG(arg).

The undesirable behaviour was that allowing the dash as an option
letter only allowed isolated dashes ("-") and trailing dashes in
groups ("-a-"), but neither middle dashes in groups ("-a-b"), even
though that already partially worked in 4.4BSD, nor leading dashes
in groups ("--a"), even though that works on all other BSDs and on
glibc.  Also, while POSIX does not require that the dash can be
used as an option letter at all, arguably, it encourages that letters
either be fully supported or not supported at all.  It is dubious
whether supporting an option letter in some positions but not in
others can be considered conforming.

This patch makes OpenBSD behaviour identical to FreeBSD and NetBSD,
improves compatibility with glibc (except that glibc does not support
isolated "-"), improves compatibility with DragonFly (except that
DragonFly is buggy when the dash option letter can take an optional
argument but that argument is not present), improves compatibility
with Illumos and Solaris 11 (except those do not support "-" and
mishandle "--a"), and restores 4.4BSD behaviour for "-a-b".  In no
respect i'm aware of is compatibility with any other systems reduced.

For the full rationale, see my mail to tech@
on 30 Mar 2020 14:26:41 +0200.

Part of the problem was originally reported by an anonymous coward
on tech@ on 12 Mar 2020 03:40:24 +0200, additional analysis was
contributed by martijn@, and then the OP sent the final version of
the patch i'm now committing on 17 Mar 2020 19:17:56 +0200.

No licensing problem here because after the commit, the file does
not contain a single word written by the OP.  Also, the OP told me
in private mail that he intends to publish the patch under the ISC
license already contained in the file and that he wishes to be known
by the pseudonym "0xef967c36".

OK martijn@, and no objection when shown on tech@,
but commit delayed to stay clear of the release.
</content>
</entry>
<entry>
<title>Minimal maintenance to make this mess slightly less confusing:</title>
<updated>2020-04-26T16:36:14+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2020-04-26T16:36:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=e46228d31b64bf4aabfbe1e7bafe0120ba40176c'/>
<id>urn:sha1:e46228d31b64bf4aabfbe1e7bafe0120ba40176c</id>
<content type='text'>
queue -&gt; list; mention "intrusive"; element -&gt; member at one place;
delete a bogus remark that maybe referred to a long-gone
implementation in VAX assembly code.
Much more could be improved, but i don't want to waste too much time here.
</content>
</entry>
<entry>
<title>fix the description; from andras farkas</title>
<updated>2020-04-26T13:59:56+00:00</updated>
<author>
<name>jmc</name>
<email></email>
</author>
<published>2020-04-26T13:59:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=0740c14f7f520b95c1d09ed6d9195493ec4f2119'/>
<id>urn:sha1:0740c14f7f520b95c1d09ed6d9195493ec4f2119</id>
<content type='text'>
ok schwarze

kill a Tn while here...
</content>
</entry>
<entry>
<title>"eventually" came and went back in 2004.</title>
<updated>2020-03-30T12:52:58+00:00</updated>
<author>
<name>martijn</name>
<email></email>
</author>
<published>2020-03-30T12:52:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=f9d22e5bfb4a68abbe135cdcad92967c8344714c'/>
<id>urn:sha1:f9d22e5bfb4a68abbe135cdcad92967c8344714c</id>
<content type='text'>
OK schwarze@
</content>
</entry>
<entry>
<title>correct Research Unix edition "appeared in" use in HISTORY</title>
<updated>2020-02-08T01:09:57+00:00</updated>
<author>
<name>jsg</name>
<email></email>
</author>
<published>2020-02-08T01:09:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d9caa3efeb30ce5d25bc81064b9ae0dcc664699e'/>
<id>urn:sha1:d9caa3efeb30ce5d25bc81064b9ae0dcc664699e</id>
<content type='text'>
Starting from "Combined Table of Contents" in Doug McIlroy's
"A Research UNIX Reader" a table of which edition manuals appeared in.
Checked against manuals from bitsavers/TUHS and source from TUHS where
available.

Ingo points out there are cases where something is included but not
documented until a later release.
bcd(6)		v6	v7
printf(3)	v2	v4
abort(3)	v5	v6
system(3)	v6	v7
fmod(3)		v5	v6

ok schwarze@
</content>
</entry>
<entry>
<title>Document how to make getopt_long(3) process arguments in order and stop</title>
<updated>2020-01-13T18:05:10+00:00</updated>
<author>
<name>stsp</name>
<email></email>
</author>
<published>2020-01-13T18:05:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=022882865576c1a1e0596951c5df087f39ca4081'/>
<id>urn:sha1:022882865576c1a1e0596951c5df087f39ca4081</id>
<content type='text'>
at the first non-option argument.
I had to read source code to figure it out.
</content>
</entry>
<entry>
<title>drand48(3) returns values in [0.0, 1.0).</title>
<updated>2019-12-20T19:16:40+00:00</updated>
<author>
<name>tb</name>
<email></email>
</author>
<published>2019-12-20T19:16:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=b2116ee7f867c3373e14c82f727d8d0021f69af5'/>
<id>urn:sha1:b2116ee7f867c3373e14c82f727d8d0021f69af5</id>
<content type='text'>
From j@bitminer.ca with input from Andras Farkas, deraadt, joerg@netbsd

"fix however you feel best!" jmc
</content>
</entry>
<entry>
<title>The file passed to realpath(3) must exists, adjust man page to new</title>
<updated>2019-12-11T20:01:50+00:00</updated>
<author>
<name>bluhm</name>
<email></email>
</author>
<published>2019-12-11T20:01:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=be7e226cf1922696ae30c64b3eaacbbaa2f3a230'/>
<id>urn:sha1:be7e226cf1922696ae30c64b3eaacbbaa2f3a230</id>
<content type='text'>
behavior.
noticed by hshoexer@; OK beck@
</content>
</entry>
<entry>
<title>Add comment line saying S is described vaguely on purpose.</title>
<updated>2019-09-14T13:16:50+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2019-09-14T13:16:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=1403c773c21872e9d09f3939eaca11814e22d31d'/>
<id>urn:sha1:1403c773c21872e9d09f3939eaca11814e22d31d</id>
<content type='text'>
Prompted by guenther@
</content>
</entry>
</feed>
