<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libc/gen, branch stable/10</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2019-11-10T17:33:10Z</updated>
<entry>
<title>MFC r354255:</title>
<updated>2019-11-10T17:33:10Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2019-11-10T17:33:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2f784e2201593ba2b4141718a17e705fc3ffcd61'/>
<id>urn:sha1:2f784e2201593ba2b4141718a17e705fc3ffcd61</id>
<content type='text'>
Add __isnan()/__isnanf() aliases for compatibility with glibc and CUDA

Even though clang comes with a number of internal CUDA wrapper headers,
compiling sample CUDA programs will result in errors similar to:

In file included from &lt;built-in&gt;:1:
In file included from /usr/lib/clang/9.0.0/include/__clang_cuda_runtime_wrapper.h:204:
/usr/home/arr/cuda/var/cuda-repo-10-0-local-10.0.130-410.48/usr/local/cuda-10.0//include/crt/math_functions.hpp:2910:7: error: no matching function for call to '__isnan'
  if (__isnan(a)) {
      ^~~~~~~
/usr/lib/clang/9.0.0/include/__clang_cuda_device_functions.h:460:16: note: candidate function not viable: call to __device__ function from __host__ function
__DEVICE__ int __isnan(double __a) { return __nv_isnand(__a); }
               ^

CUDA expects __isnan() and __isnanf() declarations to be available,
which are glibc specific extensions, equivalent to the regular isnan()
and isnanf().

To provide these, define __isnan() and __isnanf() as aliases of the
already existing static inline functions __inline_isnan() and
__inline_isnanf() from math.h.

Reported by:	arrowd
PR:		241550
</content>
</entry>
<entry>
<title>MF11 r347561.</title>
<updated>2019-05-14T04:34:58Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2019-05-14T04:34:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b332f012855e75fcc3bd91c9b88246cd092951f2'/>
<id>urn:sha1:b332f012855e75fcc3bd91c9b88246cd092951f2</id>
<content type='text'>
MFC r344085: Note that readpassphrase() came into FreeBSD's libc at 4.6.
</content>
</entry>
<entry>
<title>MFC 328630:</title>
<updated>2018-02-28T22:39:47Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2018-02-28T22:39:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b01c7a91b30f6d7902988828f813bb04bf033137'/>
<id>urn:sha1:b01c7a91b30f6d7902988828f813bb04bf033137</id>
<content type='text'>
Clarify that the additional arguments to makecontext() are of type int.
</content>
</entry>
<entry>
<title>MFC r329846:</title>
<updated>2018-02-28T02:39:38Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2018-02-28T02:39:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8e0318ae4f86e01b98d9748a7270c3fa34431bc6'/>
<id>urn:sha1:8e0318ae4f86e01b98d9748a7270c3fa34431bc6</id>
<content type='text'>
getpeereid(3): Fix behavior on failure to match documentation.

According to the getpeereid(3) documentation, on failure the value -1 is
returned and the global variable errno is set to indicate the error. We
were returning the error instead.

Obtained from:	Apple's Libc-1244.30.3
</content>
</entry>
<entry>
<title>MFC of 328304 and 328382.</title>
<updated>2018-02-06T19:09:49Z</updated>
<author>
<name>Kirk McKusick</name>
<email>mckusick@FreeBSD.org</email>
</author>
<published>2018-02-06T19:09:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ca81adc68ad1ad3ce9a8238e5e562146abe1e15d'/>
<id>urn:sha1:ca81adc68ad1ad3ce9a8238e5e562146abe1e15d</id>
<content type='text'>
Do not dedup egid (group entry 0)
</content>
</entry>
<entry>
<title>MFC r324243:</title>
<updated>2017-10-14T16:49:39Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2017-10-14T16:49:39Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7e2d718b005c1f96212099180e021f59d755c6d5'/>
<id>urn:sha1:7e2d718b005c1f96212099180e021f59d755c6d5</id>
<content type='text'>
Remove an unneeded and incorrect memset().

On Variant I TLS architectures (aarch64, arm, mips, powerpc, and riscv)
the __libc_allocate_tls function allocates thread local storage memory
with calloc(). It then copies initialization data over the portions with
non-zero initial values. Before this change it would then pointlessly
zero the already zeroed remainder of the storage. Unfortunately the
calculation was wrong and it would zero TLS_TCB_SIZE (2*sizeof(void *))
additional bytes.

In practice, this overflow only matters if the TLS segment is sized such
that calloc() allocates less than TLS_TCB_SIZE extra memory. Even
then, the likely result will be zeroing part of the next bucket. This
coupled with the impact being confined to Tier II platforms means there
will be no security advisory for this issue.

Reviewed by:	kib, dfr
Discussed with:	security-officer (delphij)
Found by:	CHERI
Sponsored by:	DARPA, AFRL
Differential Revision:	https://reviews.freebsd.org/D12547
</content>
</entry>
<entry>
<title>MFC r322368, r322371:</title>
<updated>2017-10-10T21:04:40Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-10-10T21:04:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=340f3802c2246920e5b5748da098b9883b1b89a0'/>
<id>urn:sha1:340f3802c2246920e5b5748da098b9883b1b89a0</id>
<content type='text'>
fnmatch(3): improve POSIX conformance.

In a recent interpretation[1], "\\" shall return a non-zero value
(indicating either no match or an error).

The fix involves a change over r254091 and now the behavior matches the
Sun/IBM/HP closed source implementations and also likely musl libc.

Submitted by:	Joerg Schilling &lt;joerg at schily.net&gt;

[1] http://austingroupbugs.net/view.php?id=806
</content>
</entry>
<entry>
<title>MFC note:	content changes of r317315 were reversed. .Dd is being updated</title>
<updated>2017-07-19T20:58:16Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-19T20:58:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f360756c79364d9c7d776a3d2be8aa808f5abfb0'/>
<id>urn:sha1:f360756c79364d9c7d776a3d2be8aa808f5abfb0</id>
<content type='text'>
		for diff reduction purposes.

MFC r317315,r317437:

r317315:

Note that getpagesize(3) can return -1 on failure

r317437 (by kib):

getpagesize(3) cannot fail.
</content>
</entry>
<entry>
<title>MFC r319842:</title>
<updated>2017-07-18T08:54:35Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-18T08:54:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=1d5de3d22b71ea81bdc34ef2d98d510f32ef5d25'/>
<id>urn:sha1:1d5de3d22b71ea81bdc34ef2d98d510f32ef5d25</id>
<content type='text'>
getbsize(3): clarify that underflow/overflow warnings in regard to $BLOCKSIZE
gets output via warnx(3)

This helps set expectations for how one might deal with those messages, i.e.,
mute output from /dev/stderr today, since that's where vwarn(3) outputs messages
to today.
</content>
</entry>
<entry>
<title>MFC r318695:</title>
<updated>2017-07-18T08:50:36Z</updated>
<author>
<name>Enji Cooper</name>
<email>ngie@FreeBSD.org</email>
</author>
<published>2017-07-18T08:50:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7e6dd8b1c30a866243b7d53b6a6ee33b4ccf259e'/>
<id>urn:sha1:7e6dd8b1c30a866243b7d53b6a6ee33b4ccf259e</id>
<content type='text'>
err(3): use `NULL`, aka `(void*)0` per POSIX instead of `(FILE *)0`

This is being done to aid humans and static analysis checkers.
</content>
</entry>
</feed>
