<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include, branch releng/12.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F12.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2021-01-16T06:38:49Z</updated>
<entry>
<title>Add tcgetwinsize(3) and tcsetwinsize(3) to termios</title>
<updated>2021-01-16T06:38:49Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-12-24T23:05:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ecdc6d1ddde65a345904a9a805f9efd522da8eed'/>
<id>urn:sha1:ecdc6d1ddde65a345904a9a805f9efd522da8eed</id>
<content type='text'>
(cherry picked from commit 7d7fad7bd969fb464f64d34932234060cee112af)
</content>
</entry>
<entry>
<title>Implement strerror_l().</title>
<updated>2020-12-30T10:44:23Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-12-16T09:02:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d3912bec58d0b82509a0973cae02f156986d88fa'/>
<id>urn:sha1:d3912bec58d0b82509a0973cae02f156986d88fa</id>
<content type='text'>
PR: 251651

MFC of r368692, r368723
(cherry picked from commit 675079b1ea61b310f3a42cb0d352a49c1780f89a)
(cherry picked from commit 65bf3043365bd86fc5d4d387ad0c42217f11330b)
</content>
</entry>
<entry>
<title>&lt;regex.h&gt;: reserve a regcomp field for REG_POSIX</title>
<updated>2020-12-28T04:20:26Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-07-31T12:40:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aaacbdb3993b7ba9b31c7f26412ffcc44ba94a52'/>
<id>urn:sha1:aaacbdb3993b7ba9b31c7f26412ffcc44ba94a52</id>
<content type='text'>
For libc regcomp, this will be a nop. libregex will take this to mean that
it needs to turn off GNU extensions, effectively switching it back to the
POSIX-compliant libc implementation at runtime.

(cherry picked from commit 7c5ec5fe6afb50ba5c83ad0b3dab036f91b7dafe)
</content>
</entry>
<entry>
<title>MFC r366781, r366866: Implement ptsname_r.</title>
<updated>2020-11-09T01:52:15Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2020-11-09T01:52:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6f9ff71eb7a0452cafc48f037f620f8ae9265dda'/>
<id>urn:sha1:6f9ff71eb7a0452cafc48f037f620f8ae9265dda</id>
<content type='text'>
</content>
</entry>
<entry>
<title>MFC r365506 getlogin_r: fix the type of len</title>
<updated>2020-09-13T01:44:31Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-09-13T01:44:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=43e28945fb6e5c5826a1e0c9b5a8381bff9f1cc5'/>
<id>urn:sha1:43e28945fb6e5c5826a1e0c9b5a8381bff9f1cc5</id>
<content type='text'>
getlogin_r is specified by POSIX to to take a size_t len, not int. Fix our
version to do the same, bump the symbol version due to ABI change and
provide compat.

This was reported to break compilation of Ruby 2.8.

Some discussion about the necessity of the ABI compat did take place in the
review. While many 64-bit platforms would likely be passing it in a 64-bit
register and zero-extended and thus, not notice ABI breakage, some do
sign-extend (e.g. mips).

PR:		247102
</content>
</entry>
<entry>
<title>MFC r359836-r359837, r359891, r360236-r360237: close_range(2)</title>
<updated>2020-08-05T03:53:57Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-08-05T03:53:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a80adba5ab46ba6d44d5abfc9b7f3b6de8afda55'/>
<id>urn:sha1:a80adba5ab46ba6d44d5abfc9b7f3b6de8afda55</id>
<content type='text'>
This commit diverges from our usual procedure of committing generated files
separately because the original commit, r359836, conflated userland use (in
tests) with the implementation.

__FreeBSD_version was already bumped ~15 hours prior to this MFC, 1201522
marks the introduction of close_range.

CPython will use this syscall for some pretty sizable performance gains.

r359836:
Implement a close_range(2) syscall

close_range(min, max, flags) allows for a range of descriptors to be
closed. The Python folk have indicated that they would much prefer this
interface to closefrom(2), as the case may be that they/someone have special
fds dup'd to higher in the range and they can't necessarily closefrom(min)
because they don't want to hit the upper range, but relocating them to lower
isn't necessarily feasible.

sys_closefrom has been rewritten to use kern_close_range() using ~0U to
indicate closing to the end of the range. This was chosen rather than
requiring callers of kern_close_range() to hold FILEDESC_SLOCK across the
call to kern_close_range for simplicity.

The flags argument of close_range(2) is currently unused, so any flags set
is currently EINVAL. It was added to the interface in Linux so that future
flags could be added for, e.g., "halt on first error" and things of this
nature.

This patch is based on a syscall of the same design that is expected to be
merged into Linux.

r359837:
sysent: re-roll after introduction of close_range in r359836

r359891:
close_range/closefrom: fix regression from close_range introduction

close_range will clamp the range between [0, fdp-&gt;fd_lastfile], but failed
to take into account that fdp-&gt;fd_lastfile can become -1 if all fds are
closed. =-( In this scenario, just return because there's nothing further we
can do at the moment.

Add a test case for this, fork() and simply closefrom(0) twice in the child;
on the second invocation, fdp-&gt;fd_lastfile == -1 and will trigger a panic
before this change.

r360236:
close_range(2): use newly assigned AUE_CLOSERANGE

r360237:
sysent: re-roll after 360236 (AUE_CLOSERANGE used)
</content>
</entry>
<entry>
<title>MFC r363193:</title>
<updated>2020-07-21T08:12:53Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-07-21T08:12:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd237bdea7700a0d134fe08cad8b18281df29261'/>
<id>urn:sha1:cd237bdea7700a0d134fe08cad8b18281df29261</id>
<content type='text'>
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE &gt;= 500.

PR:	247701
</content>
</entry>
<entry>
<title>MFC r361770, r361784, r362032:</title>
<updated>2020-06-17T10:50:55Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-06-17T10:50:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=92bcf7444cf54394843de8483d6a791d1fb81a59'/>
<id>urn:sha1:92bcf7444cf54394843de8483d6a791d1fb81a59</id>
<content type='text'>
Add pthread_getname_np() and pthread_setname_np() aliases for
pthread_get_name_np() and pthread_set_name_np().
</content>
</entry>
<entry>
<title>MFC r361060:</title>
<updated>2020-05-28T01:53:35Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-05-28T01:53:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5f15e830abbafff6c1b8a9a55243d54e19e5ea8e'/>
<id>urn:sha1:5f15e830abbafff6c1b8a9a55243d54e19e5ea8e</id>
<content type='text'>
Add memalign(3).
</content>
</entry>
<entry>
<title>MFC r360984:</title>
<updated>2020-05-26T13:35:41Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-05-26T13:35:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=df77e088f60962d8f234e422e06d7ced0694b833'/>
<id>urn:sha1:df77e088f60962d8f234e422e06d7ced0694b833</id>
<content type='text'>
Make include/malloc.h usable again.
</content>
</entry>
</feed>
