Re: quad_t and portability

1999-08-09 Thread Tony Finch
"Brian F. Feldman" [EMAIL PROTECTED] wrote: Is there anyone who is specifically checking for long long C9X-compliancy in the source tree (mainly libc)? I started reviewing libc for C9X features in general -- a fair amount of work is required to update macros and typedefs in inttypes.h (plus the

Re: quad_t and portability

1999-08-09 Thread Brian F. Feldman
On Mon, 9 Aug 1999, Tony Finch wrote: "Brian F. Feldman" [EMAIL PROTECTED] wrote: Is there anyone who is specifically checking for long long C9X-compliancy in the source tree (mainly libc)? I started reviewing libc for C9X features in general -- a fair amount of work is required to

Re: quad_t and portability

1999-08-09 Thread Tony Finch
Brian F. Feldman gr...@freebsd.org wrote: Is there anyone who is specifically checking for long long C9X-compliancy in the source tree (mainly libc)? I started reviewing libc for C9X features in general -- a fair amount of work is required to update macros and typedefs in inttypes.h (plus the

Re: quad_t and portability

1999-08-09 Thread Brian F. Feldman
On Mon, 9 Aug 1999, Tony Finch wrote: Brian F. Feldman gr...@freebsd.org wrote: Is there anyone who is specifically checking for long long C9X-compliancy in the source tree (mainly libc)? I started reviewing libc for C9X features in general -- a fair amount of work is required to update

Re: quad_t and portability

1999-08-07 Thread Peter Wemm
"Brian F. Feldman" wrote: On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead of u_long. This is } necessary if wc(1) is to produce sensib

Re: quad_t and portability

1999-08-07 Thread Bernd Walter
On Sat, Aug 07, 1999 at 05:38:48PM +0800, Peter Wemm wrote: "Brian F. Feldman" wrote: On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad

Re: quad_t and portability

1999-08-07 Thread Brian F. Feldman
On Sat, 7 Aug 1999, Warner Losh wrote: In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : Sorry, kinda used to quad rather than long long. I'm pretty sure ll : isn't yet supported by the kernel printf functions... You may be right about that. The simple solution to this, which I'd

Re: quad_t and portability

1999-08-07 Thread Alex Zepeda
On Fri, 6 Aug 1999, Don Lewis wrote: Why not off_t, which should be portable and scale properly with the maximum system file size. Then the only problem is figuring a portable means of printing the result ... sizeof() perhaps? - alex To Unsubscribe: send mail to majord...@freebsd.org

Re: quad_t and portability

1999-08-07 Thread Warner Losh
In message pine.bsf.4.10.9908070138180.9444-100...@janus.syracuse.net Brian F. Feldman writes: : You can always use off_t with %qd, (int64_t)foo. But that isn't portbale. %qd is a bsdism. %lld and %llu are the latest C standards way to say that. Warner To Unsubscribe: send mail to

Re: quad_t and portability

1999-08-07 Thread Brian F. Feldman
On Sat, 7 Aug 1999, Warner Losh wrote: In message pine.bsf.4.10.9908070138180.9444-100...@janus.syracuse.net Brian F. Feldman writes: : You can always use off_t with %qd, (int64_t)foo. But that isn't portbale. %qd is a bsdism. %lld and %llu are the latest C standards way to say that.

Re: quad_t and portability

1999-08-07 Thread Warner Losh
In message pine.bsf.4.10.9908070248001.11809-100...@janus.syracuse.net Brian F. Feldman writes: : Sorry, kinda used to quad rather than long long. I'm pretty sure ll : isn't yet supported by the kernel printf functions... You may be right about that. Warner To Unsubscribe: send mail to

Re: quad_t and portability

1999-08-07 Thread Patryk Zadarnowski
In message pine.bsf.4.10.9908070138180.9444-100...@janus.syracuse.net Brian F. Feldman writes: : You can always use off_t with %qd, (int64_t)foo. But that isn't portbale. %qd is a bsdism. %lld and %llu are the latest C standards way to say that. If you're that fixed on portability,

Re: quad_t and portability

1999-08-07 Thread Peter Wemm
Brian F. Feldman wrote: On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead of u_long. This is } necessary if wc(1) is to produce sensible results

Re: quad_t and portability

1999-08-07 Thread Bernd Walter
On Sat, Aug 07, 1999 at 05:38:48PM +0800, Peter Wemm wrote: Brian F. Feldman wrote: On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead

Re: quad_t and portability

1999-08-07 Thread Jonathan Lemon
In article local.mail.freebsd-hackers/199908070635.aaa07...@harmony.village.org you write: In message pine.bsf.4.10.9908070138180.9444-100...@janus.syracuse.net Brian F. Feldman writes: : You can always use off_t with %qd, (int64_t)foo. But that isn't portbale. %qd is a bsdism. %lld and %llu

Re: quad_t and portability

1999-08-07 Thread Brian F. Feldman
On Sat, 7 Aug 1999, Peter Wemm wrote: Brian F. Feldman wrote: On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead of u_long

Re: quad_t and portability

1999-08-07 Thread Doug Rabson
On Sat, 7 Aug 1999, Bernd Walter wrote: On Sat, Aug 07, 1999 at 05:38:48PM +0800, Peter Wemm wrote: Brian F. Feldman wrote: On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want

Re: quad_t and portability

1999-08-07 Thread Brian F. Feldman
On Sat, 7 Aug 1999, Warner Losh wrote: In message pine.bsf.4.10.9908070248001.11809-100...@janus.syracuse.net Brian F. Feldman writes: : Sorry, kinda used to quad rather than long long. I'm pretty sure ll : isn't yet supported by the kernel printf functions... You may be right about that.

Re: quad_t and portability

1999-08-07 Thread John Polstra
In article 19990807165202.a37...@cicely8.cicely.de, Bernd Walter ti...@cicely.de wrote: On Sat, Aug 07, 1999 at 05:38:48PM +0800, Peter Wemm wrote: But not on the Alpha... int64_t is a long there, and gcc complains unless you use %ld. Mmm and long is 32Bit it seems. No, longs are 64

Re: quad_t and portability

1999-08-07 Thread Brian F. Feldman
On Sat, 7 Aug 1999, John Polstra wrote: In article 19990807165202.a37...@cicely8.cicely.de, Bernd Walter ti...@cicely.de wrote: On Sat, Aug 07, 1999 at 05:38:48PM +0800, Peter Wemm wrote: But not on the Alpha... int64_t is a long there, and gcc complains unless you use %ld. Mmm

quad_t and portability

1999-08-06 Thread Sheldon Hearn
Hi folks, I want to patch wc(1) so that it uses quad_t instead of u_long. This is necessary if wc(1) is to produce sensible results for files containing more than 4GB of data. The changes made to NetBSD to support this are conditional on NO_QUAD being undefined. Do I need to worry about this?

Re: quad_t and portability

1999-08-06 Thread Sheldon Hearn
On Fri, 06 Aug 1999 15:29:25 +0200, Sheldon Hearn wrote: I want to patch wc(1) so that it uses quad_t instead of u_long. This is necessary if wc(1) is to produce sensible results for files containing more than 4GB of data. Yes yes, before you jump on my head, I meant u_quad_t. :-) Ciao,

RE: quad_t and portability

1999-08-06 Thread Alton, Matthew
--Original Message- From: Sheldon Hearn [SMTP:[EMAIL PROTECTED]] Sent: Friday, August 06, 1999 8:34 AM To: [EMAIL PROTECTED] Subject: Re: quad_t and portability On Fri, 06 Aug 1999 15:29:25 +0200, Sheldon Hearn wrote: I want to patch wc(1) so that it uses quad_t instead

Re: quad_t and portability

1999-08-06 Thread Don Lewis
On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead of u_long. This is } necessary if wc(1) is to produce sensible results for files containing } more than 4GB of data. Why not off_t, which should

Re: quad_t and portability

1999-08-06 Thread Brian F. Feldman
On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead of u_long. This is } necessary if wc(1) is to produce sensible results for files containing } more than

Re: quad_t and portability

1999-08-06 Thread Alex Zepeda
On Fri, 6 Aug 1999, Don Lewis wrote: Why not off_t, which should be portable and scale properly with the maximum system file size. Then the only problem is figuring a portable means of printing the result ... sizeof() perhaps? - alex To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: quad_t and portability

1999-08-06 Thread Warner Losh
In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : You can always use off_t with "%qd", (int64_t)foo. But that isn't portbale. %qd is a bsdism. %lld and %llu are the latest C standards way to say that. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Re: quad_t and portability

1999-08-06 Thread Brian F. Feldman
On Sat, 7 Aug 1999, Warner Losh wrote: In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : You can always use off_t with "%qd", (int64_t)foo. But that isn't portbale. %qd is a bsdism. %lld and %llu are the latest C standards way to say that. Sorry, kinda used to quad rather than

Re: quad_t and portability

1999-08-06 Thread Warner Losh
In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : Sorry, kinda used to quad rather than long long. I'm pretty sure ll : isn't yet supported by the kernel printf functions... You may be right about that. Warner To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe

Re: quad_t and portability

1999-08-06 Thread Patryk Zadarnowski
In message [EMAIL PROTECTED] "Brian F. Feldman" writes: : You can always use off_t with "%qd", (int64_t)foo. But that isn't portbale. %qd is a bsdism. %lld and %llu are the latest C standards way to say that. If you're that fixed on portability, "%lux%08ulx", (long)foo32, (long)foo

quad_t and portability

1999-08-06 Thread Sheldon Hearn
Hi folks, I want to patch wc(1) so that it uses quad_t instead of u_long. This is necessary if wc(1) is to produce sensible results for files containing more than 4GB of data. The changes made to NetBSD to support this are conditional on NO_QUAD being undefined. Do I need to worry about this?

Re: quad_t and portability

1999-08-06 Thread Sheldon Hearn
On Fri, 06 Aug 1999 15:29:25 +0200, Sheldon Hearn wrote: I want to patch wc(1) so that it uses quad_t instead of u_long. This is necessary if wc(1) is to produce sensible results for files containing more than 4GB of data. Yes yes, before you jump on my head, I meant u_quad_t. :-) Ciao,

RE: quad_t and portability

1999-08-06 Thread Alton, Matthew
Message- From: Sheldon Hearn [SMTP:sheld...@uunet.co.za] Sent: Friday, August 06, 1999 8:34 AM To: freebsd-hackers@freebsd.org Subject: Re: quad_t and portability On Fri, 06 Aug 1999 15:29:25 +0200, Sheldon Hearn wrote: I want to patch wc(1) so that it uses quad_t instead

Re: quad_t and portability

1999-08-06 Thread Don Lewis
On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead of u_long. This is } necessary if wc(1) is to produce sensible results for files containing } more than 4GB of data. Why not off_t, which should

Re: quad_t and portability

1999-08-06 Thread Brian F. Feldman
On Fri, 6 Aug 1999, Don Lewis wrote: On Aug 6, 3:29pm, Sheldon Hearn wrote: } Subject: quad_t and portability } } Hi folks, } } I want to patch wc(1) so that it uses quad_t instead of u_long. This is } necessary if wc(1) is to produce sensible results for files containing } more than