From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,28ea7b019fb285f0,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-02 01:44:43 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-post-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Paul Eggert Newsgroups: comp.unix.tru64 Subject: read(fd, buf, N) fails when N doesn't fit in 32 bits? Date: 02 Apr 2002 01:44:41 -0800 Organization: Twin Sun Inc, El Segundo, CA, USA Message-ID: <7wzo0mwi2e.fsf@sic.twinsun.com> Sender: eggert@sic.twinsun.com References: <200204012205.QAA0000012227@gskc01.stowers-institute.org> <200204020013.g320DUf08044@shade.twinsun.com> User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsabuse@supernews.com Xref: archiver1.google.com comp.unix.tru64:7174 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.