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: [RFC PATCH] [AARCH64] ILP32: support stat syscall family


On Mon, Jul 04, 2016 at 12:43:19PM +0200, Florian Weimer wrote:
> On 07/01/2016 11:03 AM, Yury Norov wrote:
> >On Thu, Jun 30, 2016 at 01:51:22PM +0000, Joseph Myers wrote:
> >>On Thu, 30 Jun 2016, Yury Norov wrote:
> >>
> >>> - __32_BIT_ABI_SUPPORTS_64_BIT_TIME_T macro introduced to indicate that 32-bit
> >>>   ABI has struct __timespec (and maybe __timeval in future) that is compatible
> >>>   to 64-bit _timespec;
> >>
> >>You can't add a macro to one architecture like that then use it in generic
> >>code.  You have to define it in *every* architecture's bits/typesizes.h
> >>before it can be used in generic code.
> >
> >Is it OK to do like this then?
> >#define __32_BIT_ABI_SUPPORTS_64_BIT_TIME_T /* w/o 1 or 0 */
> >
> >Where's a proper place for it? In features.h maybe?
> 
> How do you propose to set the default and add the architecture-specific
> overrides?
> 
> Thanks,
> Florian

I don't know. I'm experimenting with it, but have no answer yet.
Is there standard way to add new option to glibc, and not to set it to 0
in all unrelated ports?

As now, the best option I see is to define all needed options in arch
header, and then use #inclure_next.

Yury


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