You are not logged in.
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
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
Snprintf and strncat are also wrong. Seems to be functions which take in a size.
Offline
And also all glibc…
The manpages are certainly wrong, but that's the manpage, not your pager.
Online
Strange that a C2Y proposal would end up in current manpages.
Offline
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