From 97b0fe84b855eb8e7eeffaa2f5aacee543bf9fb2 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 8 Jan 2024 23:57:45 +0100 Subject: [PATCH] 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. --- man/funopen.3bsd | 9 ++++----- man/libbsd.7 | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) 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 -- 2.39.5