<feed xmlns='http://www.w3.org/2005/Atom'>
<title>portable/apps/nc/compat, branch master</title>
<subtitle>A mirror of https://github.com/libressl/portable.git
</subtitle>
<id>https://git.lua4.win/portable/atom?h=master</id>
<link rel='self' href='https://git.lua4.win/portable/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/'/>
<updated>2025-08-28T11:42:04+00:00</updated>
<entry>
<title>Fix inconsistencies in accept4.c</title>
<updated>2025-08-28T11:42:04+00:00</updated>
<author>
<name>imorgenstern</name>
<email>igor.morgenstern@aisle.com</email>
</author>
<published>2025-08-28T11:42:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=d7a9ca6d2ffdfd65543c32b6f11a8a106e839d81'/>
<id>urn:sha1:d7a9ca6d2ffdfd65543c32b6f11a8a106e839d81</id>
<content type='text'>
Fix inconsistencies in accept4.c. If the underlying accept() fails the shim returns the listening socket s instead of −1.</content>
</entry>
<entry>
<title>Fix unreachable nc portability shim</title>
<updated>2022-04-16T06:59:33+00:00</updated>
<author>
<name>Sebastian Blunt</name>
<email>git@sebastianblunt.com</email>
</author>
<published>2022-04-16T06:48:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=fe903fb7c59600f7679b2afb0d33f4a0c3f93ae2'/>
<id>urn:sha1:fe903fb7c59600f7679b2afb0d33f4a0c3f93ae2</id>
<content type='text'>
This fixes nc failing to run on darwin due to it incorrectly setting the
linux-specific SOCK_NONBLOCK flag on connect.

nc already had a portability shim in apps/nc/compat/sys/socket.h, which
kicks in if SOCK_NONBLOCK is undefined. But that header includes
include/compat/sys/socket.h, which also has a portability shim that
defines a default value for SOCK_NONBLOCK if it's undefined. Thus the
first portability shim was unreachable.

Fixes this by moving the NEED_SOCKET_FLAGS flag into the outer shim, and
having the inner shim activate if NEED_SOCKET_FLAGS is defined.

This closes https://github.com/libressl-portable/portable/issues/631
</content>
</entry>
<entry>
<title>Copy libc compat files rather than adding into the repository</title>
<updated>2017-01-27T18:40:38+00:00</updated>
<author>
<name>kinichiro</name>
<email>kinichiro.inoguchi@gmail.com</email>
</author>
<published>2017-01-27T18:40:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=58eb645fdba229c1b214a0ac14f7365df171b62f'/>
<id>urn:sha1:58eb645fdba229c1b214a0ac14f7365df171b62f</id>
<content type='text'>
- remove the CP_LIBC files from repo
- move tests/memmem.c to tests/compat/
</content>
</entry>
<entry>
<title>ensure we don't pass a negative int to ctypes functions</title>
<updated>2015-11-23T08:06:03+00:00</updated>
<author>
<name>Brent Cook</name>
<email>busterb@gmail.com</email>
</author>
<published>2015-11-23T08:06:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=7109fb3260a2bde622a5dfab8d57f0a114ec8d32'/>
<id>urn:sha1:7109fb3260a2bde622a5dfab8d57f0a114ec8d32</id>
<content type='text'>
Some implementations, e.g. cygwin, use a table lookup that can cast
a char to a negative array offset.
</content>
</entry>
<entry>
<title>add b64_ntop checking and fallback for nc(1)</title>
<updated>2015-10-01T12:40:26+00:00</updated>
<author>
<name>Brent Cook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2015-10-01T12:40:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=a7f031ba55ac4a69263000357eb7f6d7fb88101a'/>
<id>urn:sha1:a7f031ba55ac4a69263000357eb7f6d7fb88101a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>allow nc to build on linux and os x</title>
<updated>2015-09-13T23:42:15+00:00</updated>
<author>
<name>Brent Cook</name>
<email>bcook@openbsd.org</email>
</author>
<published>2015-09-13T16:56:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/portable/commit/?id=8c90be2a29053ac613dfe0c11a423da16c7c4520'/>
<id>urn:sha1:8c90be2a29053ac613dfe0c11a423da16c7c4520</id>
<content type='text'>
</content>
</entry>
</feed>
