[PATCH 5/6] Remove miscellaneous debris from libio.
Joseph Myers
joseph@codesourcery.com
Wed Feb 21 23:24:00 GMT 2018
On Wed, 21 Feb 2018, Zack Weinberg wrote:
> > Do fclose and pclose have to have different addresses? We could make them
> > aliases.
>
> I don't know how to find out the answer to this question. We do make
> fputc and putc have the same address...
The question of explicitly allowing aliasing between different standard
library functions with the same type (I think it's clearly allowed between
functions with different types, simply because of the limitations of what
you can do with a function pointer converted to a different type) is on my
list of issues to raise formally with WG14 papers for C2x.
The footnote "There is no linkage between different identifiers." is not
normative and can reasonably be interpreted as meaning "there is no way in
standard C to declare there to be a linkage between different identifiers"
without saying anything about how such linkage might be created for
standard library functions that aren't in standard C.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list