<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/include, branch release/12.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F12.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F12.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2018-10-04T21:55:58Z</updated>
<entry>
<title>Reduce NL_ARGMAX to 4096 to match Linux.</title>
<updated>2018-10-04T21:55:58Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2018-10-04T21:55:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8bff61a6ba2b043cc42e29a0a957df23b74600b5'/>
<id>urn:sha1:8bff61a6ba2b043cc42e29a0a957df23b74600b5</id>
<content type='text'>
NL_ARGMAX is the maximum number of positional arguments supported by
printf(3). Prior to r308145 it was declared as 99 and not enforced.
r308145 added enforcement and increased the value to 64k.

Unfortunately, development versions of PostgreSQL used the system
definition to allocate and zero an NL_ARGMAX * 4 sized array on the
stack of its snprintf implementation with measurable performance
impacts. This has been fixed in new PostgreSQL versions, but it is
possible that other programs suffer from this problem.

A value of 4096 puts us on par with Linux and is certainly large enough
for any reasonable program.

Reviewed by:	mjg
Reported by:	mjg
Approved by:	re (gjb)
Differential revision:	https://reviews.freebsd.org/D17387
Differential revision:	https://reviews.freebsd.org/D8286
</content>
</entry>
<entry>
<title>Fix C11 and POSIX 1003.1b-1993 compliance in time.h</title>
<updated>2018-09-18T15:31:24Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2018-09-18T15:31:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d02489d11aed2aa5410889f18f4fe8a356f4ca3b'/>
<id>urn:sha1:d02489d11aed2aa5410889f18f4fe8a356f4ca3b</id>
<content type='text'>
Only expose timespec_get in C11, C++17, or BSD code.  Always define
struct timespect if defining timespec_get.

PR:		231425
Reviewed by:	kib
Approved by:	re (gjb)
Differential Revision:	https://reviews.freebsd.org/D17174
</content>
</entry>
<entry>
<title>Remove arc4random_stir and arc4random_addrandom from stdlib.h.</title>
<updated>2018-08-26T18:04:54Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2018-08-26T18:04:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a29173be5349307a59cbf9292f765bf179db39f9'/>
<id>urn:sha1:a29173be5349307a59cbf9292f765bf179db39f9</id>
<content type='text'>
Users of arc4random(3) should never call them directly.

All ports tree usage was fixed as part of bug 230756.

Relnotes:       yes
Approved by:    re (marius), exp-run (bug 230756 by portmgr antoine)
</content>
</entry>
<entry>
<title>Handle -DNO_ROOT for `make compat` in include/</title>
<updated>2018-08-23T18:18:52Z</updated>
<author>
<name>Alex Richardson</name>
<email>arichardson@FreeBSD.org</email>
</author>
<published>2018-08-23T18:18:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a52fd948a287813298cb975caf8a400aa221611d'/>
<id>urn:sha1:a52fd948a287813298cb975caf8a400aa221611d</id>
<content type='text'>
Otherwise this step will fail on a Linux host due to missing "wheel" group

Approved By:	brooks (mentor)
Differential Revision: https://reviews.freebsd.org/D16841
</content>
</entry>
<entry>
<title>Update userland arc4random() with OpenBSD's Chacha20 based arc4random().</title>
<updated>2018-08-19T17:40:50Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2018-08-19T17:40:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c1e80940f3b4030df0aaed73028053af057e476d'/>
<id>urn:sha1:c1e80940f3b4030df0aaed73028053af057e476d</id>
<content type='text'>
  ObsoleteFiles.inc:

    Remove manual pages for arc4random_addrandom(3) and
    arc4random_stir(3).

  contrib/ntp/lib/isc/random.c:
  contrib/ntp/sntp/libevent/evutil_rand.c:

    Eliminate in-tree usage of arc4random_addrandom().

  crypto/heimdal/lib/roken/rand.c:
  crypto/openssh/config.h:

    Eliminate in-tree usage of arc4random_stir().

  include/stdlib.h:

    Remove arc4random_stir() and arc4random_addrandom() prototypes,
    provide temporary shims for transistion period.

  lib/libc/gen/Makefile.inc:

    Hook arc4random-compat.c to build, add hint for Chacha20 source for
    kernel, and remove arc4random_addrandom(3) and arc4random_stir(3)
    links.

  lib/libc/gen/arc4random.c:

    Adopt OpenBSD arc4random.c,v 1.54 with bare minimum changes, use the
    sys/crypto/chacha20 implementation of keystream.

  lib/libc/gen/Symbol.map:

    Remove arc4random_stir and arc4random_addrandom interfaces.

  lib/libc/gen/arc4random.h:

    Adopt OpenBSD arc4random.h,v 1.4 but provide _ARC4_LOCK of our own.

  lib/libc/gen/arc4random.3:

    Adopt OpenBSD arc4random.3,v 1.35 but keep FreeBSD r114444 and
    r118247.

  lib/libc/gen/arc4random-compat.c:

    Compatibility shims for arc4random_stir and arc4random_addrandom
    functions to preserve ABI.  Log once when called but do nothing
    otherwise.

  lib/libc/gen/getentropy.c:
  lib/libc/include/libc_private.h:

    Fold __arc4_sysctl into getentropy.c (renamed to arnd_sysctl).
    Remove from libc_private.h as a result.

  sys/crypto/chacha20/chacha.c:
  sys/crypto/chacha20/chacha.h:

    Make it possible to use the kernel implementation in libc.

PR:		182610
Reviewed by:	cem, markm
Obtained from:	OpenBSD
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D16760
</content>
</entry>
<entry>
<title>POSIX compliance improvements in the pthread(3) functions.</title>
<updated>2018-08-18T01:05:38Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-08-18T01:05:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b6413b6db8756c1ecae5e575e6516f811966046f'/>
<id>urn:sha1:b6413b6db8756c1ecae5e575e6516f811966046f</id>
<content type='text'>
This basically adds makes use of the C99 restrict keyword, and also
adds some 'const's to four threading functions: pthread_mutexattr_gettype(),
pthread_mutexattr_getprioceiling(), pthread_mutexattr_getprotocol(), and
pthread_mutex_getprioceiling. The changes are in accordance to POSIX/SUSv4-2018.

Hinted by:	DragonFlyBSD

Relnotes:	yes
MFC after:	1 month
Differential Revision:	D16722
</content>
</entry>
<entry>
<title>Add pthread_get_name_np(3).</title>
<updated>2018-08-17T18:34:07Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-08-17T18:34:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=4627d47bc83903d3bf89828e32f3a4c3322a31d2'/>
<id>urn:sha1:4627d47bc83903d3bf89828e32f3a4c3322a31d2</id>
<content type='text'>
The function retrieves the thread name previously set by
pthread_set_name_np(3). The name is cached in the process memory.

Requested by:	Willem Jan Withagen &lt;wjw@digiware.nl&gt;
Man page update:	Yuri Pankov &lt;yuripv@yuripv.net&gt;
Reviewed by:	ian (previous version)
Discussed with:	arichardson, bjk (man page)
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D16702
</content>
</entry>
<entry>
<title>Reorder alphabetically.</title>
<updated>2018-08-17T18:24:11Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2018-08-17T18:24:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d9cf291382345563f5e5e97a0f8fe054998f5a6a'/>
<id>urn:sha1:d9cf291382345563f5e5e97a0f8fe054998f5a6a</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D16702
</content>
</entry>
<entry>
<title>Install symlink for sys/nvpair.h in include/Makefile symlinks target</title>
<updated>2018-08-13T05:16:27Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-08-13T05:16:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=cd87846e6e9f84a502c3f0dc60ba4ea686862c6a'/>
<id>urn:sha1:cd87846e6e9f84a502c3f0dc60ba4ea686862c6a</id>
<content type='text'>
Noticed while fixing the install/sysroot situation for libnvpair and
libzfs_core- if one uses the symlinks target, libzfs_core.h is not
installed.
</content>
</entry>
<entry>
<title>Use INCS for non-sys/ libnvpair and libzfs_core includes</title>
<updated>2018-08-13T03:38:32Z</updated>
<author>
<name>Kyle Evans</name>
<email>kevans@FreeBSD.org</email>
</author>
<published>2018-08-13T03:38:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ce33c57d6ca45b41af9fcc416498d86a77674729'/>
<id>urn:sha1:ce33c57d6ca45b41af9fcc416498d86a77674729</id>
<content type='text'>
While nothing was wrong with libnvpair.h, libzfs_core.h was only guarded by
MK_CDDL rather than MK_CDDL &amp;&amp; MK_ZFS. Rather than ugl'if'ying
include/Makefile to impose the extra restriction, just move the non-sys/
includes into INCS with the respect lib builds.

This has the added bonus of allowing third party packagers to try and split
these libs out of the FreeBSD-runtime package, if they are so inclined.

The sys/ include was left alone- generally userland libraries shouldn't
install kernel headers.

MFC after:	1 week
</content>
</entry>
</feed>
