<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/share/man/man3/pthread_attr_affinity_np.3, branch releng/13.3</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.3</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F13.3'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:31Z</updated>
<entry>
<title>Remove $FreeBSD$: two-line nroff pattern</title>
<updated>2023-08-23T17:43:31Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:32:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b144e70a3325e033163aa4e6e15d0446e245702d'/>
<id>urn:sha1:b144e70a3325e033163aa4e6e15d0446e245702d</id>
<content type='text'>
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit fa9896e082a1)
</content>
</entry>
<entry>
<title>libthr: Fix pthread_attr_[g|s]etaffinity_np manual.</title>
<updated>2023-02-06T19:06:30Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2023-01-29T12:37:18Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=dda428e2a539a5aa7d8e6f2401265e1896c3806b'/>
<id>urn:sha1:dda428e2a539a5aa7d8e6f2401265e1896c3806b</id>
<content type='text'>
Fix my fault in f35093f8.

MFC after:		1 week

(cherry picked from commit 2b87addf526e058158a332547d44b24a80f71321)
</content>
</entry>
<entry>
<title>cpuset: Byte swap cpuset for compat32 on big endian architectures</title>
<updated>2022-06-17T19:35:14Z</updated>
<author>
<name>Dmitry Chagin</name>
<email>dchagin@FreeBSD.org</email>
</author>
<published>2022-06-17T19:35:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=72bc1e6806ccff0cc3e712c65090e59482b33357'/>
<id>urn:sha1:72bc1e6806ccff0cc3e712c65090e59482b33357</id>
<content type='text'>
Summary:
BITSET uses long as its basic underlying type, which is dependent on the
compile type, meaning on 32-bit builds the basic type is 32 bits, but on
64-bit builds it's 64 bits.  On little endian architectures this doesn't
matter, because the LSB is always at the low bit, so the words get
effectively concatenated moving between 32-bit and 64-bit, but on
big-endian architectures it throws a wrench in, as setting bit 0 in
32-bit mode is equivalent to setting bit 32 in 64-bit mode.  To
demonstrate:

32-bit mode:

BIT_SET(foo, 0):        0x00000001

64-bit sees: 0x0000000100000000

cpuset is the only system interface that uses bitsets, so solve this
by swapping the integer sub-components at the copyin/copyout points.

Reviewed by:    kib
Sponsored by:   Juniper Networks, Inc.
Differential Revision:  https://reviews.freebsd.org/D35225

(cherry picked from commit 47a57144af25a7bd768b29272d50a36fdf2874ba)

Fix the build after 47a57144

(cherry picked from commit 89737eb8290a10d96b77afac1b68e4740b43353b)

cpuset: Fix the KASAN and KMSAN builds

Rename the "copyin" and "copyout" fields of struct cpuset_copy_cb to
something less generic, since sanitizers define interceptors for
copyin() and copyout() using #define.

Reported by:    syzbot+2db5d644097fc698fb6f@syzkaller.appspotmail.com
Fixes:  47a57144af25 ("cpuset: Byte swap cpuset for compat32 on big endian architectures")
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 4a3e51335e86cee02569c04b9f1e95ca9abcb170)

Use Linux semantics for the thread affinity syscalls.

Linux has more tolerant checks of the user supplied cpuset_t's.

Minimum cpuset_t size that the Linux kernel permits in case of
getaffinity() is the maximum CPU id, present in the system / NBBY,
the maximum size is not limited.
For setaffinity(), Linux does not limit the size of the user-provided
cpuset_t, internally using only the meaningful part of the set, where
the upper bound is the maximum CPU id, present in the system, no larger
than the size of the kernel cpuset_t.
Unlike FreeBSD, Linux ignores high bits if set in the setaffinity(),
so clear it in the sched_setaffinity() and Linuxulator itself.

Reviewed by:            Pau Amma (man pages)
In collaboration with:  jhb
Differential revision:  https://reviews.freebsd.org/D34849
MFC after:              2 weeks

(cherry picked from commit f35093f8d6d8155ab2e56c11ee03d474688b16a2)
</content>
</entry>
<entry>
<title>pthread_np.3: Add a manpage summarizing all of the pthread extensions.</title>
<updated>2021-10-26T20:59:28Z</updated>
<author>
<name>Felix Johnson</name>
<email>felix.the.red@gmail.com</email>
</author>
<published>2021-10-07T17:45:21Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4e56152e47dd0093a09e6dddff2c5538e7af5427'/>
<id>urn:sha1:4e56152e47dd0093a09e6dddff2c5538e7af5427</id>
<content type='text'>
PR:		197299

(cherry picked from commit df7d763849655f4038428f97804bf7324d801684)
</content>
</entry>
<entry>
<title>Remove "All rights reserved" from my files.</title>
<updated>2018-05-10T06:41:08Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2018-05-10T06:41:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b6f7731dba533ce4a5991c118e590b526a4c1208'/>
<id>urn:sha1:b6f7731dba533ce4a5991c118e590b526a4c1208</id>
<content type='text'>
See r333391 for the rationale.

MFC after:	1 week
</content>
</entry>
<entry>
<title>Improve errno documentation in pthread_create(3) and thr_new(2)</title>
<updated>2016-06-03T14:30:32Z</updated>
<author>
<name>Eric van Gyzen</name>
<email>vangyzen@FreeBSD.org</email>
</author>
<published>2016-06-03T14:30:32Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=28e3357884527e90cfc843e4a95d66661669fbf4'/>
<id>urn:sha1:28e3357884527e90cfc843e4a95d66661669fbf4</id>
<content type='text'>
Add some missing errno values to thr_new(2) and pthread_create(3).
In particular, EDEADLK was not documented in the latter.
While I'm here, improve some English and cross-references.

Reviewed by:	kib
Sponsored by:	Dell Inc.
Differential Revision:	https://reviews.freebsd.org/D6663
</content>
</entry>
<entry>
<title>use .Mt to mark up email addresses consistently (part6)</title>
<updated>2014-06-23T08:27:27Z</updated>
<author>
<name>Baptiste Daroussin</name>
<email>bapt@FreeBSD.org</email>
</author>
<published>2014-06-23T08:27:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a63d6c943d3e2e14007b20edc4446d8396f3ef0b'/>
<id>urn:sha1:a63d6c943d3e2e14007b20edc4446d8396f3ef0b</id>
<content type='text'>
PR:		191174
Submitted by:	Franco Fichtner &lt;franco at lastsummer.de&gt;
</content>
</entry>
<entry>
<title>Remove cross-references to nonexistent CPU_SET(3) manpage.</title>
<updated>2013-04-21T06:46:41Z</updated>
<author>
<name>Joel Dahl</name>
<email>joel@FreeBSD.org</email>
</author>
<published>2013-04-21T06:46:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cd088fc43a830569a0ccb99e377ec68d574f1e39'/>
<id>urn:sha1:cd088fc43a830569a0ccb99e377ec68d574f1e39</id>
<content type='text'>
Also fix cpu_getaffinity(2) document title.

PR:		176317
Submitted by:	brucec
</content>
</entry>
<entry>
<title>Remove trailing whitespace per mdoc lint warning</title>
<updated>2012-03-29T05:02:12Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-03-29T05:02:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=50d675f7a9fca2f3fba3a23ac41a8ae2c0162e4e'/>
<id>urn:sha1:50d675f7a9fca2f3fba3a23ac41a8ae2c0162e4e</id>
<content type='text'>
Disussed with:	gavin
No objection from:	doc
Approved by:	joel
MFC after:	3 days
</content>
</entry>
<entry>
<title>Follow the change made in libthr, add ERANGE error code and more</title>
<updated>2010-10-28T02:59:25Z</updated>
<author>
<name>David Xu</name>
<email>davidxu@FreeBSD.org</email>
</author>
<published>2010-10-28T02:59:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1200ef56b51f58505340b5af796552b04d68b0f4'/>
<id>urn:sha1:1200ef56b51f58505340b5af796552b04d68b0f4</id>
<content type='text'>
EINVAL error cases.
</content>
</entry>
</feed>
