Re: Mangled function prototypes (phantom arguments)

"Michael Kerrisk (man7.org)" <[email protected]> Wed, 27 May 2026 18:46:06 +0200
Newsgroups org.kernel.vger.linux-man
Message-ID <CAFs=pgYAfonz99yGyoS+h76v7YrfT8=f4yg6zQFqDPgm8XfsoQ@mail.gmail.com>
Hello Alex,

Thanks for responding.

> > The problems have all resulted in prototypes adding a phantom first
> > argument. See for example this prototype from read.2:
> >
> >        ssize_t read(size_t count;
> >                     int fd, void buf[count], size_t count);
>
> This is valid C (except for the array of void, but that's a separate
> topic).

As we see, I'm not keeping up with my C :-).

Is this a GNU extension? Or part of the standard? Or an upcoming part
of the standard?

Thanks,

Michael

-- 
Michael Kerrisk, man7.org Training and Consulting
[email protected], http://man7.org/training/
"The Linux Programming Interface" -- http://man7.org/tlpi/