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.
This commit is contained in:
Guillem Jover 2024-01-08 23:57:45 +01:00
parent e87ae3be19
commit 97b0fe84b8
2 changed files with 5 additions and 6 deletions

View File

@ -168,11 +168,10 @@ functions first appeared in
.Sh BUGS .Sh BUGS
The The
.Fn funopen .Fn funopen
function function may not be portable to systems other than
may not be portable to systems other than .Bx ,
.Bx glibc- and musl-based ones
and glibc-based (as the libbsd implementation is only provided when the (as the libbsd implementation is only provided when the system has
system has
.Fn fopencookie .Fn fopencookie
available). available).
.Pp .Pp

View File

@ -200,7 +200,7 @@ and
.St -p1003.1-2001 . .St -p1003.1-2001 .
.It Xr funopen 3bsd .It Xr funopen 3bsd
Unportable, requires assistance from the stdio layer or some hook framework. 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 .Xr fopencookie 3
function can be used. function can be used.
Otherwise the code needs to be prepared for neither of these functions being Otherwise the code needs to be prepared for neither of these functions being