<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/net, branch master</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=master</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2026-03-10T00:06:39+00:00</updated>
<entry>
<title>Use __pledge_open(2) for files that libc urgently needs even in lower</title>
<updated>2026-03-10T00:06:39+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2026-03-10T00:06:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=78f85e779d20fa57aa5102634e747be7f9343cf6'/>
<id>urn:sha1:78f85e779d20fa57aa5102634e747be7f9343cf6</id>
<content type='text'>
promise levels.  You must be running a kernel at least 4 days old.
Soon, another commit will happen that breaks compatibility even further,
and you'll need new static binaries and new libc.so, along with a new
kernel.  This removes an old pledge design decision which is weak.
Long discussions with david leadbeater and beck
</content>
</entry>
<entry>
<title>Do not crash when calling freeaddrinfo(NULL)</title>
<updated>2025-12-08T13:30:08+00:00</updated>
<author>
<name>jca</name>
<email></email>
</author>
<published>2025-12-08T13:30:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2a9ce651b1c5e84f70570a283e2a5ccd1e14eb25'/>
<id>urn:sha1:2a9ce651b1c5e84f70570a283e2a5ccd1e14eb25</id>
<content type='text'>
Supported by Linux since at least 1997, and FreeBSD since 2017.  While
not defined, there's no real good reason to crash when we could just
cope.  Indeed, software out there relies on the Linux behavior.

Point out in the manpage that the behavior of getaddrinfo(NULL) isn't
defined and thus isn't portable.

Edge case spotted recently by kn@ in OpenVPN.
ok millert@ djm@ deraadt@ kn@
</content>
</entry>
<entry>
<title>the structure produced has alignment, which contained uninitialized data.</title>
<updated>2025-11-13T10:34:32+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2025-11-13T10:34:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=825e052c574fe0fd3afe3cf1322f333551ca4888'/>
<id>urn:sha1:825e052c574fe0fd3afe3cf1322f333551ca4888</id>
<content type='text'>
This is obviously fixed by using calloc(), but it was also observed that
the precalculated storage requirement was higher than what is actually
filled.  So all the math has been rewritten to be byte accurate.
Temporarily, a syslog_r check is added to report if we ever get count
inconsistancy again so that can be fixed quickly.
ok claudio
</content>
</entry>
<entry>
<title>make the argument to ether_ntoa const.</title>
<updated>2025-06-29T00:33:46+00:00</updated>
<author>
<name>dlg</name>
<email></email>
</author>
<published>2025-06-29T00:33:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=a2df642900a546ab79508391ab506e0a6d69eab3'/>
<id>urn:sha1:a2df642900a546ab79508391ab506e0a6d69eab3</id>
<content type='text'>
this drives me nuts when i want to print something out of what's already
const. casting it works, but feels gross.

ok guenther@ tb@ deraadt@
enh says this is already in bionic/glibc/musl
</content>
</entry>
<entry>
<title>The mdoc(7) .Ft macro does not need quoting of its arguments, but about</title>
<updated>2025-06-13T18:34:00+00:00</updated>
<author>
<name>schwarze</name>
<email></email>
</author>
<published>2025-06-13T18:34:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d939c0f8976619330bcf368e12700a6ab1d14f99'/>
<id>urn:sha1:d939c0f8976619330bcf368e12700a6ab1d14f99</id>
<content type='text'>
10% of our manual pages using this macro employed useless quoting anyway.
Remove these quotes such that they do not incite fear, uncertainty,
and doubt in developers who happen to look at these pages.
jmc@ and tb@ agree with the direction.
</content>
</entry>
<entry>
<title>typo in comment; Effectivly -&gt; Effectively; ok gilles@</title>
<updated>2024-09-03T18:21:55+00:00</updated>
<author>
<name>op</name>
<email></email>
</author>
<published>2024-09-03T18:21:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=35c0b093dbb74ae99c7aeef7270b936c658f9294'/>
<id>urn:sha1:35c0b093dbb74ae99c7aeef7270b936c658f9294</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wild white space</title>
<updated>2024-09-03T17:05:59+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>2024-09-03T17:05:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=ca5f6662533313cdb402c3ce9aaad36b9f6f4a86'/>
<id>urn:sha1:ca5f6662533313cdb402c3ce9aaad36b9f6f4a86</id>
<content type='text'>
</content>
</entry>
<entry>
<title>A dozen interfaces in &lt;endian.h&gt; were standardized in POSIX-2024 as expected</title>
<updated>2024-08-03T23:06:56+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2024-08-03T23:06:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=57946fcb6c73857d80cc35f6f670878d8f6438d9'/>
<id>urn:sha1:57946fcb6c73857d80cc35f6f670878d8f6438d9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>drop htonl(), htons(), ntohl(), ntohs() MD functions from libc</title>
<updated>2024-04-15T14:30:48+00:00</updated>
<author>
<name>naddy</name>
<email></email>
</author>
<published>2024-04-15T14:30:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=d52ee90c31e3fa0a4bb23891cb94a4f2494cc513'/>
<id>urn:sha1:d52ee90c31e3fa0a4bb23891cb94a4f2494cc513</id>
<content type='text'>
Userland code compiled in a normal fashion picks up the htonl(),
htons(), ntohl(), ntohs() macros implemented by endian.h.  The
functions in libc are effectively unused.  Keep the MI functions
in case something looks for the symbols in libc or plays games
with #undef, but change them to wrap the implementation from
endian.h.

tweaks suggested by claudio@, ok miod@
</content>
</entry>
<entry>
<title>POSIX defines inet_ntoa, not inet_aton.</title>
<updated>2024-03-06T07:29:37+00:00</updated>
<author>
<name>bentley</name>
<email></email>
</author>
<published>2024-03-06T07:29:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2237eca83445530a27ad9e51b857de23803dd29b'/>
<id>urn:sha1:2237eca83445530a27ad9e51b857de23803dd29b</id>
<content type='text'>
ok deraadt@ jmc@
</content>
</entry>
</feed>
