Re: lseek: Value too large for defined data type
- From: phil-news-nospam@xxxxxxxx
- Date: 26 Jul 2007 12:54:32 GMT
On Sat, 21 Jul 2007 01:06:34 -0700 David Schwartz <davids@xxxxxxxxxxxxx> wrote:
| On Jul 20, 7:49 pm, phil-news-nos...@xxxxxxxx wrote:
|
|> One of these days we need to fix all this ... basically migrate to purely
|> 64-bit file offset platforms. It should "just work" without any changes
|> needed at that point, if they do it right (which is not a given). If old
|> programs compiled on legacy 32-bit file offset platforms break, so be it.
|
| It is all fixed. It does just work. No changes are needed.
|
| All that is needed is '-D_FILE_OFFSET_BITS=64' and complaining about
| that is like arguing that PTHREADS support doesn't "just work" because
| you have to specify '-pthread' on the command line when you compile/
| link.
"No changes are needed." and "All that is needed is ..." are contrary.
Adding the '-D_FILE_OFFSET_BITS=64' is a change.
If the nature of pthreads requires the compiler to generate different code,
then sure, pthreads usage needs to be specified. If there was a reason to
never use anything but pthreads, then I'd say the compiler should default
to doing what pthreads needs.
These two things are not analogous. In the case of file offset, there is
virtually no need for any application to not be using 64 bit offsets. It
should be the default. Cases where a program needs to _not_ use them would
be very small embedded code and such. But we still have plenty of need for
non-pthreads code that making pthreads the default does not make sense.
--
|---------------------------------------/----------------------------------|
| Phil Howard KA9WGN (ka9wgn.ham.org) / Do not send to the address below |
| first name lower case at ipal.net / spamtrap-2007-07-26-0748@xxxxxxxx |
|------------------------------------/-------------------------------------|
.
- Follow-Ups:
- Re: lseek: Value too large for defined data type
- From: David Schwartz
- Re: lseek: Value too large for defined data type
- References:
- lseek: Value too large for defined data type
- From: guru
- Re: lseek: Value too large for defined data type
- From: Tim Southerwood
- Re: lseek: Value too large for defined data type
- From: phil-news-nospam
- Re: lseek: Value too large for defined data type
- From: David Schwartz
- lseek: Value too large for defined data type
- Prev by Date: ask for benchmark software for linux
- Next by Date: Re: lseek: Value too large for defined data type
- Previous by thread: Re: lseek: Value too large for defined data type
- Next by thread: Re: lseek: Value too large for defined data type
- Index(es):
Relevant Pages
|