Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-14 Thread Geert Uytterhoeven
On Wed, May 14, 2014 at 5:47 AM, H. Peter Anvin wrote: > On 05/13/2014 03:22 AM, James Hogan wrote: >>> When we export this posix_types.h file for user software, they need to >>> define this config, eg: CONFIG_32BIT_TIME to use 32 bit time. Is this >>> what we want to do? >> >> Yeh, good point, th

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread H. Peter Anvin
On 05/13/2014 03:22 AM, James Hogan wrote: >> When we export this posix_types.h file for user software, they need to >> define this config, eg: CONFIG_32BIT_TIME to use 32 bit time. Is this >> what we want to do? > > Yeh, good point, that won't work. How about: #include The asm-generic/types/

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Thomas Gleixner
On Tue, 13 May 2014, Arnd Bergmann wrote: > On Tuesday 13 May 2014 15:11:33 Geert Uytterhoeven wrote: > > On Tue, May 13, 2014 at 2:07 PM, Thomas Gleixner wrote: > > > On Tue, 13 May 2014, Arnd Bergmann wrote: > > >> On Tuesday 13 May 2014 18:17:40 Ley Foon Tan wrote: > > >> > When we export this

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Arnd Bergmann
On Tuesday 13 May 2014 15:11:33 Geert Uytterhoeven wrote: > On Tue, May 13, 2014 at 2:07 PM, Thomas Gleixner wrote: > > On Tue, 13 May 2014, Arnd Bergmann wrote: > >> On Tuesday 13 May 2014 18:17:40 Ley Foon Tan wrote: > >> > When we export this posix_types.h file for user software, they need to >

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Geert Uytterhoeven
On Tue, May 13, 2014 at 2:07 PM, Thomas Gleixner wrote: > On Tue, 13 May 2014, Arnd Bergmann wrote: >> On Tuesday 13 May 2014 18:17:40 Ley Foon Tan wrote: >> > When we export this posix_types.h file for user software, they need to >> > define this config, eg: CONFIG_32BIT_TIME to use 32 bit time.

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Thomas Gleixner
On Tue, 13 May 2014, Arnd Bergmann wrote: > On Tuesday 13 May 2014 18:17:40 Ley Foon Tan wrote: > > When we export this posix_types.h file for user software, they need to > > define this config, eg: CONFIG_32BIT_TIME to use 32 bit time. Is this > > what we want to do? > > No, this doesn't really w

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread James Hogan
On 13/05/14 11:17, Ley Foon Tan wrote: > On Tue, May 13, 2014 at 5:50 PM, James Hogan wrote: >> Hi, >> >> On 13/05/14 10:32, Ley Foon Tan wrote: >>> On Tue, May 13, 2014 at 5:15 PM, James Hogan wrote: On 13 May 2014 10:02, Ley Foon Tan wrote: > /* > + * Use 64 bit time_t and clock_

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Arnd Bergmann
On Tuesday 13 May 2014 18:17:40 Ley Foon Tan wrote: > On Tue, May 13, 2014 at 5:50 PM, James Hogan wrote: > > Hi, > > > > On 13/05/14 10:32, Ley Foon Tan wrote: > >> On Tue, May 13, 2014 at 5:15 PM, James Hogan > >> wrote: > >>> On 13 May 2014 10:02, Ley Foon Tan wrote: > /* > + * Us

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Ley Foon Tan
On Tue, May 13, 2014 at 5:50 PM, James Hogan wrote: > Hi, > > On 13/05/14 10:32, Ley Foon Tan wrote: >> On Tue, May 13, 2014 at 5:15 PM, James Hogan wrote: >>> On 13 May 2014 10:02, Ley Foon Tan wrote: /* + * Use 64 bit time_t and clock_t as default. 32 bit users can provide an

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread James Hogan
Hi, On 13/05/14 10:32, Ley Foon Tan wrote: > On Tue, May 13, 2014 at 5:15 PM, James Hogan wrote: >> On 13 May 2014 10:02, Ley Foon Tan wrote: >>> /* >>> + * Use 64 bit time_t and clock_t as default. 32 bit users can provide an >>> override to >>> + * define these as "long" if needed. >>> + */

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Ley Foon Tan
On Tue, May 13, 2014 at 5:15 PM, James Hogan wrote: > Hi, > > On 13 May 2014 10:02, Ley Foon Tan wrote: >> Use 64 bit time_t and clock_t as default. 32 bit users can provide >> an override to define these as "long" if needed. >> >> Signed-off-by: Ley Foon Tan >> --- >> include/uapi/asm-generic/

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Thomas Gleixner
On Tue, 13 May 2014, James Hogan wrote: > On 13 May 2014 10:02, Ley Foon Tan wrote: > > Use 64 bit time_t and clock_t as default. 32 bit users can provide > > an override to define these as "long" if needed. > > > > Signed-off-by: Ley Foon Tan > > --- > > include/uapi/asm-generic/posix_types.h |

Re: [PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread James Hogan
Hi, On 13 May 2014 10:02, Ley Foon Tan wrote: > Use 64 bit time_t and clock_t as default. 32 bit users can provide > an override to define these as "long" if needed. > > Signed-off-by: Ley Foon Tan > --- > include/uapi/asm-generic/posix_types.h | 14 -- > 1 file changed, 12 insertio

[PATCH 01/25] asm-generic: Change time_t and clock_t to 64 bit

2014-05-13 Thread Ley Foon Tan
Use 64 bit time_t and clock_t as default. 32 bit users can provide an override to define these as "long" if needed. Signed-off-by: Ley Foon Tan --- include/uapi/asm-generic/posix_types.h | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/uapi/asm-generic/