| #
15950312
|
| 26-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Rename manpage source files to avoid colons
To permit checking the sources out on systems such as Windows with more restrictive file name requirements, rename the manpage source files to
libutil++: Rename manpage source files to avoid colons
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 <bsd.man.mk> at the new source file names.
Reviewed by: ivy Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D51794
show more ...
|
| #
b1afa460
|
| 14-Aug-2025 |
Mark Johnston <markj@FreeBSD.org> |
libutil++: Move to the utilities package
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.
libutil++: Move to the utilities package
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
show more ...
|
| #
f4fd2aa0
|
| 08-Aug-2025 |
Lexi Winter <ivy@FreeBSD.org> |
libutil++: Move to clibs
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
libutil++: Move to clibs
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
show more ...
|
| #
7be913e0
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::pidfile wrapper class around struct pidfh
This class wraps the pidfile_* API from libutil. The destructor calls pidfile_remove() when an object is destroyed. This class is
libutil++: Add freebsd::pidfile wrapper class around struct pidfh
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<> 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
show more ...
|
| #
63ffcf69
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::nvlist_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls nvlist_destroy().
Sponsored by: Chelsio Communications Pull Request: https://github
libutil++: Add freebsd::nvlist_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls nvlist_destroy().
Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794
show more ...
|
| #
937e92b5
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::fd_up class to manage file descriptors
This class aims to provide a std::unique_ptr<>-like interface in that it assumes exclusive ownership of a file descriptor. The descrip
libutil++: Add freebsd::fd_up class to manage file descriptors
This class aims to provide a std::unique_ptr<>-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
show more ...
|
| #
22ce7be7
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::addrinfo_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls freeaddrinfo().
Sponsored by: Chelsio Communications Pull Request: https://github
libutil++: Add freebsd::addrinfo_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls freeaddrinfo().
Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794
show more ...
|
| #
b3127a2d
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: New library containing C++ utility classes for use in base
- freebsd::FILE_up is a wrapper class for std::unique_ptr<> for FILE objects which uses a custom deleter that calls fclose().
libutil++: New library containing C++ utility classes for use in base
- freebsd::FILE_up is a wrapper class for std::unique_ptr<> for FILE objects which uses a custom deleter that calls fclose().
- freebsd::malloc_up<T> is a wrapper class for std::unique_ptr<> 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
show more ...
|
| #
15950312
|
| 26-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Rename manpage source files to avoid colons
To permit checking the sources out on systems such as Windows with more restrictive file name requirements, rename the manpage source files to
libutil++: Rename manpage source files to avoid colons
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 <bsd.man.mk> at the new source file names.
Reviewed by: ivy Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D51794
show more ...
|
| #
b1afa460
|
| 14-Aug-2025 |
Mark Johnston <markj@FreeBSD.org> |
libutil++: Move to the utilities package
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.
libutil++: Move to the utilities package
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
show more ...
|
| #
f4fd2aa0
|
| 08-Aug-2025 |
Lexi Winter <ivy@FreeBSD.org> |
libutil++: Move to clibs
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
libutil++: Move to clibs
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
show more ...
|
| #
7be913e0
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::pidfile wrapper class around struct pidfh
This class wraps the pidfile_* API from libutil. The destructor calls pidfile_remove() when an object is destroyed. This class is
libutil++: Add freebsd::pidfile wrapper class around struct pidfh
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<> 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
show more ...
|
| #
63ffcf69
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::nvlist_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls nvlist_destroy().
Sponsored by: Chelsio Communications Pull Request: https://github
libutil++: Add freebsd::nvlist_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls nvlist_destroy().
Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794
show more ...
|
| #
937e92b5
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::fd_up class to manage file descriptors
This class aims to provide a std::unique_ptr<>-like interface in that it assumes exclusive ownership of a file descriptor. The descrip
libutil++: Add freebsd::fd_up class to manage file descriptors
This class aims to provide a std::unique_ptr<>-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
show more ...
|
| #
22ce7be7
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::addrinfo_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls freeaddrinfo().
Sponsored by: Chelsio Communications Pull Request: https://github
libutil++: Add freebsd::addrinfo_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls freeaddrinfo().
Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794
show more ...
|
| #
b3127a2d
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: New library containing C++ utility classes for use in base
- freebsd::FILE_up is a wrapper class for std::unique_ptr<> for FILE objects which uses a custom deleter that calls fclose().
libutil++: New library containing C++ utility classes for use in base
- freebsd::FILE_up is a wrapper class for std::unique_ptr<> for FILE objects which uses a custom deleter that calls fclose().
- freebsd::malloc_up<T> is a wrapper class for std::unique_ptr<> 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
show more ...
|
| #
15950312
|
| 26-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Rename manpage source files to avoid colons
To permit checking the sources out on systems such as Windows with more restrictive file name requirements, rename the manpage source files to
libutil++: Rename manpage source files to avoid colons
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 <bsd.man.mk> at the new source file names.
Reviewed by: ivy Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D51794
show more ...
|
| #
b1afa460
|
| 14-Aug-2025 |
Mark Johnston <markj@FreeBSD.org> |
libutil++: Move to the utilities package
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.
libutil++: Move to the utilities package
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
show more ...
|
| #
f4fd2aa0
|
| 08-Aug-2025 |
Lexi Winter <ivy@FreeBSD.org> |
libutil++: Move to clibs
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
libutil++: Move to clibs
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
show more ...
|
| #
7be913e0
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::pidfile wrapper class around struct pidfh
This class wraps the pidfile_* API from libutil. The destructor calls pidfile_remove() when an object is destroyed. This class is
libutil++: Add freebsd::pidfile wrapper class around struct pidfh
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<> 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
show more ...
|
| #
63ffcf69
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::nvlist_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls nvlist_destroy().
Sponsored by: Chelsio Communications Pull Request: https://github
libutil++: Add freebsd::nvlist_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls nvlist_destroy().
Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794
show more ...
|
| #
937e92b5
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::fd_up class to manage file descriptors
This class aims to provide a std::unique_ptr<>-like interface in that it assumes exclusive ownership of a file descriptor. The descrip
libutil++: Add freebsd::fd_up class to manage file descriptors
This class aims to provide a std::unique_ptr<>-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
show more ...
|
| #
22ce7be7
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: Add freebsd::addrinfo_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls freeaddrinfo().
Sponsored by: Chelsio Communications Pull Request: https://github
libutil++: Add freebsd::addrinfo_up wrapper class for std::unique_ptr<>
This class uses a custom deleter that calls freeaddrinfo().
Sponsored by: Chelsio Communications Pull Request: https://github.com/freebsd/freebsd-src/pull/1794
show more ...
|
| #
b3127a2d
|
| 04-Aug-2025 |
John Baldwin <jhb@FreeBSD.org> |
libutil++: New library containing C++ utility classes for use in base
- freebsd::FILE_up is a wrapper class for std::unique_ptr<> for FILE objects which uses a custom deleter that calls fclose().
libutil++: New library containing C++ utility classes for use in base
- freebsd::FILE_up is a wrapper class for std::unique_ptr<> for FILE objects which uses a custom deleter that calls fclose().
- freebsd::malloc_up<T> is a wrapper class for std::unique_ptr<> 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
show more ...
|