Package: manpages-dev
Version: 6.16-1
Severity: normal
Dear Maintainer,
"man fread" says:
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);
I don't know why we have the extra "size_t size, size_t n;" as the first
parameters to fread(3) and fwrite(3).
The first parameter should be "ptr".
This change has been introduced (in Debian) by this commit:
commit f5cd239fba3b54434c43370f7b1e1a2b59a737bb
Author: Dr. Tobias Quathamer <[email protected]>
Date: Fri Oct 3 20:12:37 2025 +0200
New upstream version 6.15
[...]
.B #include <stdio.h>
.P
-.BI "size_t fread(void " ptr "[restrict ." size " * ." nmemb ],
-.BI " size_t " size ", size_t " nmemb ,
+.BR "size_t fread(" "size_t size, size_t n;"
+.BI " void " ptr "[restrict " size " * " n ],
+.BI " size_t " size ", size_t " n ,
.BI " FILE *restrict " stream );
-.BI "size_t fwrite(const void " ptr "[restrict ." size " * ." nmemb ],
-.BI " size_t " size ", size_t " nmemb ,
+.BR "size_t fwrite(" "size_t size, size_t n;"
+.BI " const void " ptr "[restrict " size " * " n ],
+.BI " size_t " size ", size_t " n ,
.BI " FILE *restrict " stream );
.fi
[...]
Thanks
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.17.12+deb14-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages manpages-dev depends on:
ii manpages 6.16-1
manpages-dev recommends no packages.
Versions of packages manpages-dev suggests:
ii man-db [man-browser] 2.13.1-1
-- no debconf information