Commit 97b0fe84b855eb8e7eeffaa2f5aacee543bf9fb2

Guillem Jover 2024-01-08T23:57:45

man: Mention that funopen() can be made available on musl As musl got fopencookie() implemented in 1.1.19, the funopen() function can also be provided there. Note this in the documentation.

diff --git a/man/funopen.3bsd b/man/funopen.3bsd
index 0f5ac06..234922f 100644
--- a/man/funopen.3bsd
+++ b/man/funopen.3bsd
@@ -168,11 +168,10 @@ functions first appeared in
 .Sh BUGS
 The
 .Fn funopen
-function
-may not be portable to systems other than
-.Bx
-and glibc-based (as the libbsd implementation is only provided when the
-system has
+function may not be portable to systems other than
+.Bx ,
+glibc- and musl-based ones
+(as the libbsd implementation is only provided when the system has
 .Fn fopencookie
 available).
 .Pp
diff --git a/man/libbsd.7 b/man/libbsd.7
index ee01c9a..b3c848e 100644
--- a/man/libbsd.7
+++ b/man/libbsd.7
@@ -200,7 +200,7 @@ and
 .St -p1003.1-2001 .
 .It Xr funopen 3bsd
 Unportable, requires assistance from the stdio layer or some hook framework.
-On GNU systems the
+On glibc- and musl-based systems the
 .Xr fopencookie 3
 function can be used.
 Otherwise the code needs to be prepared for neither of these functions being