<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libcasper, branch release/14.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-10-12T00:25:54Z</updated>
<entry>
<title>libcasper: explicit cast in cap_fileargs header</title>
<updated>2025-10-12T00:25:54Z</updated>
<author>
<name>Quentin Thébault</name>
<email>quentin.thebault@defenso.fr</email>
</author>
<published>2025-09-26T02:04:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=051c12a5d90ab84ac92abca929ccbb6ad363d266'/>
<id>urn:sha1:051c12a5d90ab84ac92abca929ccbb6ad363d266</id>
<content type='text'>
The implicit cast is incompatible with standard compiler options in a
C++ project, making the library difficult to use.

Signed-off-by: Quentin Thébault &lt;quentin.thebault@defenso.fr&gt;
Sponsored by: Defenso
MFC after: 3 days
Discussed with: kevans
Reviewed by: emaste, vexeduxr
Pull request: https://github.com/freebsd/freebsd-src/pull/1857

(cherry picked from commit 349da4dbff722a58affd13d84729b1d399b41fb3)
(cherry picked from commit 998dd4a11a2b4857a55af8e656feaebc4fc78fe8)
</content>
</entry>
<entry>
<title>manuals: Misc macro typos</title>
<updated>2024-12-27T15:40:05Z</updated>
<author>
<name>Graham Percival</name>
<email>gperciva@tarsnap.com</email>
</author>
<published>2024-09-12T16:36:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9a15a1fef95e96ce2434adc76835c862a9e336ce'/>
<id>urn:sha1:9a15a1fef95e96ce2434adc76835c862a9e336ce</id>
<content type='text'>
These were reported by `mandoc -T lint` as
    ERROR: skipping unknown macro
When these pages were rendered with `man`, the "unknown macro" meant
that the entire line was omitted from the output.

Obvious typos in:
lib/libsys/swapon.2
lib/libsys/procctl.2
share/man/man9/firmware.9

lib/libcasper/services/cap_net/cap_net.3: 'mode' describes a function
    argument.

lib/libsys/statfs.2: there's no .Tm command ("trademark?"), and
    .Tn ("tradename") is deprecated, so remove the macro entirely.

usr.sbin/mfiutil/mfiutil.8: man was interpreting '/dev/' as a macro
    (which it didn't recognize).

share/man/man4/qat.4: same issue as above, but with '0'.  In this case,
    given the context of the previous line, rewriting as "Value '0'"
    seemed more appropriate.

usr.sbin/mlx5tool/mlx5tool.8: typo in .Xr

Signed-off-by:	Graham Percival &lt;gperciva@tarsnap.com&gt;
Sponsored by:	Tarsnap Backup Inc.
Reviewed by:	concussious, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1417

(cherry picked from commit 2878d99dfcfbdd7a415a7f31cf95fbd53fc8e581)
</content>
</entry>
<entry>
<title>libcasper: Consistently use item count as the first argument to calloc</title>
<updated>2024-11-30T13:55:57Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2024-07-19T17:01:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=27c7ae36be0f2e9e06701e9cd1b8383a1b125edc'/>
<id>urn:sha1:27c7ae36be0f2e9e06701e9cd1b8383a1b125edc</id>
<content type='text'>
Reported by:	GCC 14 -Wcalloc-transposed-args
Reviewed by:	rlibby, emaste
Differential Revision:	https://reviews.freebsd.org/D46005

(cherry picked from commit 5275d1ddb42dc70fb87925e59445059068c08271)
</content>
</entry>
<entry>
<title>manuals: Misc syntax fixes</title>
<updated>2024-11-04T15:56:24Z</updated>
<author>
<name>Graham Percival</name>
<email>gperciva@tarsnap.com</email>
</author>
<published>2024-10-04T03:40:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3a75b41bd93be05bab80f8c2ddcff25e8e345a2d'/>
<id>urn:sha1:3a75b41bd93be05bab80f8c2ddcff25e8e345a2d</id>
<content type='text'>
These were reported by `mandoc -T lint ...` as errors.

The rendered output (in ascii and html) is not affected by this commit.

Additional clarification: there was a non-breaking space in
lib/libcasper/services/cap_grp/cap_grp.3.

Signed-off-by:	Graham Percival &lt;gperciva@tarsnap.com&gt;
Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1449

(cherry picked from commit c8b31033c3971b2b7349804ffda0cea5e4835b40)
</content>
</entry>
<entry>
<title>Remove "All Rights Reserved" from FreeBSD Foundation copyrights</title>
<updated>2024-08-06T19:39:53Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-07-30T16:02:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f06d322e9d925ab56a4aa8210a67637d4d341ab6'/>
<id>urn:sha1:f06d322e9d925ab56a4aa8210a67637d4d341ab6</id>
<content type='text'>
These ones were unambiguous cases where the Foundation was the only
listed copyright holder.

Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 5c2bc3db201a4fe8d7911cf816bea104d5dc2138)
</content>
</entry>
<entry>
<title>libcasper: fix cap_rights_init usage</title>
<updated>2024-03-22T13:30:32Z</updated>
<author>
<name>Ed Maste</name>
<email>emaste@FreeBSD.org</email>
</author>
<published>2024-02-15T00:42:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=be83aa2a01b35f9e7aa94a3d45a851305fa22c83'/>
<id>urn:sha1:be83aa2a01b35f9e7aa94a3d45a851305fa22c83</id>
<content type='text'>
Capability rights passed to cap_rights_* are not simple bitmaks and
cannot be ORed together in general (although it will work for certain
subsets of rights).

PR:		277057
Fixes:		faaf43b2a750 ("fileargs: add tests")
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit 3733d82c4deb49035a39e18744085d1e3e9b8dc5)
</content>
</entry>
<entry>
<title>libcasper: document that most libcasper functions are not thread-safe</title>
<updated>2024-01-20T01:51:58Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2023-12-05T23:24:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0125d6a23ba93efc2587f9935600f9a607c80cb7'/>
<id>urn:sha1:0125d6a23ba93efc2587f9935600f9a607c80cb7</id>
<content type='text'>
And neither are most libcasper services' functions, because internally
they all use cap_xfer_nvlist.  cap_xfer_nvlist sends and then receives
data over a unix domain socket and associated with the cap_channel_t
argument.  So absent synchronization, two threads may not use the same
cap_channel_t argument or they risk receiving the other's reply.

Sponsored by:	Axcient
Reviewed by:	oshogbo
Differential Revision: https://reviews.freebsd.org/D42928

(cherry picked from commit cf037972ea8863e2bab7461d77345367d2c1e054)
</content>
</entry>
<entry>
<title>cap_net.3: remove a copypasta</title>
<updated>2024-01-20T01:51:41Z</updated>
<author>
<name>Alan Somers</name>
<email>asomers@FreeBSD.org</email>
</author>
<published>2023-12-05T23:23:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e016face1e2667611063b57a0e914603820bbf82'/>
<id>urn:sha1:e016face1e2667611063b57a0e914603820bbf82</id>
<content type='text'>
This line appears to have been copied from cap_sysctl.3.  While I'm
here, reorder and reword the description of cap_net_limit a bit.

[skip ci]

Sponsored by:	Axcient
Reviewed by:	oshogbo
Differential Revision: https://reviews.freebsd.org/D42919

(cherry picked from commit 6b96125afdf245ae61dd82b59891ad0d6aab0066)
</content>
</entry>
<entry>
<title>libcasper: Neuter false positive -Wuse-after-free warnings from GCC 13</title>
<updated>2024-01-03T17:43:47Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2023-11-15T02:34:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1dcd9961043444b1a8a14c4fd36826e454fae0c5'/>
<id>urn:sha1:1dcd9961043444b1a8a14c4fd36826e454fae0c5</id>
<content type='text'>
GCC 13 incorrectly thinks a call to free after a failed realloc is a
use after free.

lib/libcasper/services/cap_grp/cap_grp.c: In function 'group_resize':
lib/libcasper/services/cap_grp/cap_grp.c:65:17: error: pointer 'buf' may be used after 'realloc' [-Werror=use-after-free]
   65 |                 free(buf);
      |                 ^~~~~~~~~
lib/libcasper/services/cap_grp/cap_grp.c:63:19: note: call to 'realloc' here
   63 |         gbuffer = realloc(buf, gbufsize);
      |                   ^~~~~~~~~~~~~~~~~~~~~~

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D42576

(cherry picked from commit b7f7cc25c01aeacaafb86ebcffdeb258b7933b08)
</content>
</entry>
<entry>
<title>libcasper: Fix a typo in a source code comment</title>
<updated>2023-11-26T07:53:30Z</updated>
<author>
<name>Gordon Bergling</name>
<email>gbe@FreeBSD.org</email>
</author>
<published>2023-11-23T08:58:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=14dcb4cfe4052e36af7ec8588c1541cc3fedaf43'/>
<id>urn:sha1:14dcb4cfe4052e36af7ec8588c1541cc3fedaf43</id>
<content type='text'>
- s/mutiple/multiple/

(cherry picked from commit 637e4ef1a6bcd8677dabd8c08916df3091be5f64)
</content>
</entry>
</feed>
