You are not logged in.

#1 2025-06-01 10:31:54

Naught
Member
Registered: 2023-04-29
Posts: 7

[solved] Man pages displaying incorrectly?

I have noticed recently that some man pages have started to display incorrectly.

For example, fread() and fwrite() have the second and third arguments displayed first.

NAME
       fread, fwrite - binary stream input/output

LIBRARY
       Standard C library (libc, -lc)

SYNOPSIS
       #include <stdio.h>

       size_t fread(size_t size, size_t n;
                    void ptr[restrict size * n],
                    size_t size, size_t n,
                    FILE *restrict stream);
       size_t fwrite(size_t size, size_t n;
                    const void ptr[restrict size * n],
                    size_t size, size_t n,
                    FILE *restrict stream);

Does anyone else have this issue?
man 2.13.1
man-db 2.13.1-1

Last edited by Naught (2025-06-02 08:53:05)

Offline

#2 2025-06-01 13:49:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,915

Re: [solved] Man pages displaying incorrectly?

https://man.archlinux.org/man/fread.3
https://man7.org/linux/man-pages/man3/fread.3.html
https://linux.die.net/man/3/fread loooks funky as well

I guess those are bugs in the various glibc versions used as documentation source, not a problem w/ man?
Did you notice other examples?

Online

#3 2025-06-01 13:56:19

Naught
Member
Registered: 2023-04-29
Posts: 7

Re: [solved] Man pages displaying incorrectly?

Snprintf and strncat are also wrong. Seems to be functions which take in a size.

Offline

#4 2025-06-01 14:29:45

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,915

Re: [solved] Man pages displaying incorrectly?

And also all glibc…
The manpages are certainly wrong, but that's the manpage, not your pager.

https://git.kernel.org/pub/scm/docs/man … 57447bef6b

Online

#5 2025-06-01 16:06:38

Naught
Member
Registered: 2023-04-29
Posts: 7

Re: [solved] Man pages displaying incorrectly?

Strange that a C2Y proposal would end up in current manpages.

Offline

#6 2025-06-01 19:55:15

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 69,915

Re: [solved] Man pages displaying incorrectly?

Indeed… that that's what we're looking at.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB