This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/6] Remove miscellaneous debris from libio.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]