Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Paul Eggert <eggert@twinsun.com>
Subject: read(fd, buf, N) fails when N doesn't fit in 32 bits?
Date: 02 Apr 2002 01:44:41 -0800	[thread overview]
Message-ID: <7wzo0mwi2e.fsf@sic.twinsun.com> (raw)
In-Reply-To: 200204020013.g320DUf08044@shade.twinsun.com

A Tru64 5.1 user reports that GNU Diffutils 2.8 doesn't work on his
system because the read(2) system call won't accept a size argument
greater than 2**31 - 1.  His truss output looks like this:

read(6, 0x0000000140015000, 5312561138)         Err#22 Invalid argument

Is there some compile-time option that he can use on Tru64 to work
around this problem?  Or perhaps there's a Tru64 patch that I can
recommend to him?

You can read his original bug report in:

http://groups.google.com/groups?hl=en&selm=200204012205.QAA0000012227%40gskc01.stowers-institute.org

and my proposed workaround in:

http://groups.google.com/groups?hl=en&selm=200204020013.g320DUf08044%40shade.twinsun.com

This workaround limits the 'read' calls to less than 2**31 bytes, but
I'd prefer a solution that removes that arbitrary limit.  Sorry, I
don't use Tru64 myself, so I'm not well versed in its compile-time
options and patches.


       reply	other threads:[~2002-04-02  9:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200204012205.QAA0000012227@gskc01.stowers-institute.org>
     [not found] ` <200204020013.g320DUf08044@shade.twinsun.com>
2002-04-02  9:44   ` Paul Eggert [this message]
2002-04-02 13:15     ` read(fd, buf, N) fails when N doesn't fit in 32 bits? Johan Danielsson
2002-04-02 13:42       ` Paul Eggert
2002-04-04  0:37         ` Bob Harris
2002-04-04  7:48           ` Paul Eggert
2002-04-05 15:33             ` Johan Danielsson
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox