<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libutil++/Makefile, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-08-26T20:44:38Z</updated>
<entry>
<title>libutil++: Rename manpage source files to avoid colons</title>
<updated>2025-08-26T20:44:38Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-08-26T20:44:38Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=159503125826bc2d3b988921e7e85735ee09ad46'/>
<id>urn:sha1:159503125826bc2d3b988921e7e85735ee09ad46</id>
<content type='text'>
To permit checking the sources out on systems such as Windows with
more restrictive file name requirements, rename the manpage source
files to replace colons with underscrores.  Use MANSRC.foo to point
&lt;bsd.man.mk&gt; at the new source file names.

Reviewed by:	ivy
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D51794
</content>
</entry>
<entry>
<title>libutil++: Move to the utilities package</title>
<updated>2025-08-14T16:15:43Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-08-14T16:15:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b1afa460f84e2777c48f37b45344be2797fa1e62'/>
<id>urn:sha1:b1afa460f84e2777c48f37b45344be2797fa1e62</id>
<content type='text'>
We should keep the clibs package as small as possible.  Currently it
contains some "extra" libraries, but this isn't a good argument for
adding more stuff.  Move it to the utilities package (the default for
bsd.lib.mk consumers), since libutil++ is an INTERNALLIB and thus only
installs man pages, so therefore doesn't need to be in FreeBSD-runtime.

Requested by:	kib
Reviewed by:	ivy, des
Fixes:		f4fd2aa07cde ("libutil++: Move to clibs")
Differential Revision:	https://reviews.freebsd.org/D51898
</content>
</entry>
<entry>
<title>libutil++: Move to clibs</title>
<updated>2025-08-08T15:14:07Z</updated>
<author>
<name>Lexi Winter</name>
<email>ivy@FreeBSD.org</email>
</author>
<published>2025-08-08T15:14:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f4fd2aa07cdeca58ff792aebeca5c572fd92dffc'/>
<id>urn:sha1:f4fd2aa07cdeca58ff792aebeca5c572fd92dffc</id>
<content type='text'>
This library only installs manual pages, so putting it in its own
package means we build a FreeBSD-libutil++-man package but not a
base FreeBSD-libutil++ package.  Without a base package, the man
package can't be installed due to the missing dependency.

We don't really need a separate package for a few manpages, so move
it to clibs.

Reviewed by:		des
Differential Revision:	https://reviews.freebsd.org/D51756
</content>
</entry>
<entry>
<title>libutil++: Add freebsd::pidfile wrapper class around struct pidfh</title>
<updated>2025-08-04T19:38:07Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-08-04T19:38:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7be913e00d79b3bf740049797fbc3f6ab8193995'/>
<id>urn:sha1:7be913e00d79b3bf740049797fbc3f6ab8193995</id>
<content type='text'>
This class wraps the pidfile_* API from libutil.  The destructor calls
pidfile_remove() when an object is destroyed.  This class is similar
to std::unique_ptr&lt;&gt; in that it retains exclusive ownership of the
pidfh object.

In addition to release and reset methods, write, close, and fileno
methods are provided as wrappers for pidfile_*.

Sponsored by:	Chelsio Communications
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1794
</content>
</entry>
<entry>
<title>libutil++: Add freebsd::nvlist_up wrapper class for std::unique_ptr&lt;&gt;</title>
<updated>2025-08-04T19:38:07Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-08-04T19:38:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=63ffcf6971a36e00efc138c3261b499aa48e102f'/>
<id>urn:sha1:63ffcf6971a36e00efc138c3261b499aa48e102f</id>
<content type='text'>
This class uses a custom deleter that calls nvlist_destroy().

Sponsored by:	Chelsio Communications
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1794
</content>
</entry>
<entry>
<title>libutil++: Add freebsd::fd_up class to manage file descriptors</title>
<updated>2025-08-04T19:38:07Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-08-04T19:38:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=937e92b5f7cc9495368e64f2d5b45312f6595ed2'/>
<id>urn:sha1:937e92b5f7cc9495368e64f2d5b45312f6595ed2</id>
<content type='text'>
This class aims to provide a std::unique_ptr&lt;&gt;-like interface in that
it assumes exclusive ownership of a file descriptor.  The descriptor
is closed when the object is destroyed.

Sponsored by:	Chelsio Communications
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1794
</content>
</entry>
<entry>
<title>libutil++: Add freebsd::addrinfo_up wrapper class for std::unique_ptr&lt;&gt;</title>
<updated>2025-08-04T19:38:07Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-08-04T19:38:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=22ce7be762ea7b03a2c40ad52932023c69e1400f'/>
<id>urn:sha1:22ce7be762ea7b03a2c40ad52932023c69e1400f</id>
<content type='text'>
This class uses a custom deleter that calls freeaddrinfo().

Sponsored by:	Chelsio Communications
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1794
</content>
</entry>
<entry>
<title>libutil++: New library containing C++ utility classes for use in base</title>
<updated>2025-08-04T19:38:06Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2025-08-04T19:38:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b3127a2dc25ac63cae8e33e6f3dbd3580644fe52'/>
<id>urn:sha1:b3127a2dc25ac63cae8e33e6f3dbd3580644fe52</id>
<content type='text'>
- freebsd::FILE_up is a wrapper class for std::unique_ptr&lt;&gt; for FILE
  objects which uses a custom deleter that calls fclose().

- freebsd::malloc_up&lt;T&gt; is a wrapper class for std::unique_ptr&lt;&gt; which
  uses a custom deleter that calls free().  It is useful for pointers
  allocated by malloc() such as strdup().

- The freebsd::stringf() functions return a std::string constructed
  using a printf format string.

  The current implementation of freebsd::stringf() uses fwopen() where
  the write function appends to a std::string.

Sponsored by:	Chelsio Communications
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1794
</content>
</entry>
</feed>
