Re: [BUG] typo in man2/readlink.2
From: G. Branden Robinson <hidden>
Date: 2026-04-15 18:24:20
Attachments
- signature.asc [application/pgp-signature] 833 bytes
From: G. Branden Robinson <hidden>
Date: 2026-04-15 18:24:20
Hi Dirk, At 2026-04-15T20:12:59+0200, Dirk Müller wrote:
Hi,
I noticed that man pages 6.17 release includes this in the Synopsis
section of man -l man/man2/readlink.2:
ssize_t readlink(size_t bufsiz;
const char *restrict path,
char buf[restrict bufsiz], size_t bufsiz);
I believe this is a typo and it should be:
ssize_t readlink(const char *restrict path,
char buf[restrict bufsiz], size_t bufsiz);
instead.This is something of a FAQ on this mailing list. https://lore.kernel.org/linux-man/adupQhfJQ7kws17U@debian/ (local) It's a GCC syntax extension. https://gcc.gnu.org/onlinedocs/gcc/Variable-Length.html
Sorry for not including a patch, but I am not sufficiently skilled at editing man page sources :-)
Have you seen groff_man_style(7)? https://man7.org/linux/man-pages/man7/groff_man_style.7.html </shameless self-plug> (Unfortunately Michael hasn't updated to groff 1.24.{0,1} yet.) Regards, Branden