Hi Lucien, On 6/27/22 14:32, Lucien Gentis wrote:
Distribution: Debian 11 Bullseye Hello, In getmntent_r function description: Shouldn't it be: "but stores the mntent struct in the provided *mntbuf"
Yes, you fix makes sense.
instead of: "but stores the struct mount in the provided *mntbuf" (I don't understand what "the struct mount" refers to)
I guess the writer of the page had the word mount in mind, since 'mntent' is short for mount entry, and accidentally wrote that.
I used a wording slightly different to the one you propose, to be consistent with the style present in many pages where we say things like 'mntent structure' instead of 'struct mntent' or 'mntent struct'. See the patch I applied below.
Cheers, Alex getmntent.3: wfix Reported-by: Lucien Gentis <lucien.gentis@xxxxxxxxxx> Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> diff --git a/man3/getmntent.3 b/man3/getmntent.3 index b327d228b..84c9d1b96 100644 --- a/man3/getmntent.3 +++ b/man3/getmntent.3 @@ -126,10 +126,11 @@ The reentrant function is similar to .BR getmntent (), but stores the -.I struct mount +.I mntent +structure in the provided -.I *mntbuf -and stores the strings pointed to by the entries in that struct +.IR *mntbuf , +and stores the strings pointed to by the entries in that structure in the provided array .I buf of size -- Alejandro Colomar <http://www.alejandro-colomar.es/>
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature