]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
man: Improve wording for discouraged and optional features in libbsd(7) main
authorGuillem Jover <guillem@hadrons.org>
Sun, 10 May 2026 02:16:06 +0000 (04:16 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 18 May 2026 02:56:59 +0000 (04:56 +0200)
man/libbsd.7

index d5cbcd0506fc15d13db01019652e386336c0bd51..0704566a3aa82e23ead66555c977990d30b98213 100644 (file)
@@ -60,10 +60,10 @@ The includes in this case should be the usual system ones, such as
 .In unistd.h .
 .Pp
 The other way to use the library is to use the namespaced headers,
 .In unistd.h .
 .Pp
 The other way to use the library is to use the namespaced headers,
-which is a discouraged way, being less portable as it makes using
+which is discouraged, being less portable as it makes using
 .Nm libbsd
 .Nm libbsd
-mandatory and it will not work on BSD-based systems, and requires
-modifying original BSD code.
+mandatory so it will not work on BSD-based systems,
+and requires modifying original BSD code.
 This can be done with the
 .Xr pkgconf 1
 library named
 This can be done with the
 .Xr pkgconf 1
 library named
@@ -73,7 +73,8 @@ The includes in this case should be namespaced with
 such as
 .In bsd/unistd.h .
 .Pp
 such as
 .In bsd/unistd.h .
 .Pp
-The package also provides a
+On systems that have the required functionality,
+the package also provides a
 .Nm libbsd-ctor
 static library that can be used to inject automatic constructors into a
 program so that the
 .Nm libbsd-ctor
 static library that can be used to inject automatic constructors into a
 program so that the
@@ -123,7 +124,14 @@ be prefixed with
 .Pp
 The following is a
 .Pa libbsd
 .Pp
 The following is a
 .Pa libbsd
-specific convenience header, that includes some of the extended headers.
+specific convenience header,
+that itself includes some of the extended headers,
+but its use is discouraged.
+In particular,
+its use in source code is strongly discouraged as it reduces portability.
+If it needs to be used then its expected use is with the compiler
+.Ar -include bsd/bsd.h
+option as a quick portability aid or workaround.
 It only works in non-overlay mode.
 .Pp
 .Bl -tag -width 4m -compact
 It only works in non-overlay mode.
 .Pp
 .Bl -tag -width 4m -compact