<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/include, branch releng/12.2</title>
<subtitle>FreeBSD source tree</subtitle>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/'/>
<entry>
<title>MFS r365682: getlogin_r: fix the type of len</title>
<updated>2020-09-13T02:17:57+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-09-13T02:17:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=9de96f982db3a565fb92dd2e894227c53b3d24ac'/>
<id>9de96f982db3a565fb92dd2e894227c53b3d24ac</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
Approved by:	re (gjb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
Approved by:	re (gjb)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r359836-r359837, r359891, r360236-r360237: close_range(2)</title>
<updated>2020-08-05T03:53:57+00:00</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2020-08-05T03:53:57+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=a80adba5ab46ba6d44d5abfc9b7f3b6de8afda55'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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)
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r363193:</title>
<updated>2020-07-21T08:12:53+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-07-21T08:12:53+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=cd237bdea7700a0d134fe08cad8b18281df29261'/>
<id>cd237bdea7700a0d134fe08cad8b18281df29261</id>
<content type='text'>
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE &gt;= 500.

PR:	247701
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make CLOCK_REALTIME and TIMER_ABSTIME available for XOPEN_SOURCE &gt;= 500.

PR:	247701
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r361770, r361784, r362032:</title>
<updated>2020-06-17T10:50:55+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-06-17T10:50:55+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=92bcf7444cf54394843de8483d6a791d1fb81a59'/>
<id>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>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add pthread_getname_np() and pthread_setname_np() aliases for
pthread_get_name_np() and pthread_set_name_np().
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r361060:</title>
<updated>2020-05-28T01:53:35+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-05-28T01:53:35+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=5f15e830abbafff6c1b8a9a55243d54e19e5ea8e'/>
<id>5f15e830abbafff6c1b8a9a55243d54e19e5ea8e</id>
<content type='text'>
Add memalign(3).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add memalign(3).
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r360984:</title>
<updated>2020-05-26T13:35:41+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-05-26T13:35:41+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=df77e088f60962d8f234e422e06d7ced0694b833'/>
<id>df77e088f60962d8f234e422e06d7ced0694b833</id>
<content type='text'>
Make include/malloc.h usable again.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make include/malloc.h usable again.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r361073:</title>
<updated>2020-05-22T13:14:21+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-05-22T13:14:21+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=8a423062d0595edae32c546f96c0966299685e31'/>
<id>8a423062d0595edae32c546f96c0966299685e31</id>
<content type='text'>
Implement RTLD_DEEPBIND.

PR:	246462
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement RTLD_DEEPBIND.

PR:	246462
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r360983:</title>
<updated>2020-05-19T07:47:59+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-05-19T07:47:59+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=cd8a6b943e6728e5a3ac607510af4f574a3f87fd'/>
<id>cd8a6b943e6728e5a3ac607510af4f574a3f87fd</id>
<content type='text'>
Clear namespace pollution in include/malloc_np.h
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clear namespace pollution in include/malloc_np.h
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC of 359627</title>
<updated>2020-04-15T00:18:19+00:00</updated>
<author>
<name>Kirk McKusick</name>
<email>mckusick@FreeBSD.org</email>
</author>
<published>2020-04-15T00:18:19+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=062d22203c2d2fcdc5130b3f6d7186d7c7188fb8'/>
<id>062d22203c2d2fcdc5130b3f6d7186d7c7188fb8</id>
<content type='text'>
Update dump and restore to compile with -fno-common.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update dump and restore to compile with -fno-common.
</pre>
</div>
</content>
</entry>
<entry>
<title>MFC r357985:</title>
<updated>2020-02-29T21:42:34+00:00</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2020-02-29T21:42:34+00:00</published>
<link rel='alternate' type='text/html' href='http://cgit.freebsd.org/src/commit/?id=26ba1cafe8c6a9fc70640922d4d3715a8f373cf3'/>
<id>26ba1cafe8c6a9fc70640922d4d3715a8f373cf3</id>
<content type='text'>
Add pthread_peekjoin_np(3).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add pthread_peekjoin_np(3).
</pre>
</div>
</content>
</entry>
</feed>
