From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,28ea7b019fb285f0 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-04-02 05:31:33 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!easynews!news-xfer2.newshosting.com!newsfeed.icl.net!news.algonet.se!algonet!news.tele.dk!small.news.tele.dk!129.240.148.23!uio.no!news.kth.se!not-for-mail From: joda@pdc.kth.se (Johan Danielsson) Newsgroups: comp.unix.tru64 Subject: Re: read(fd, buf, N) fails when N doesn't fit in 32 bits? Date: 02 Apr 2002 15:15:52 +0200 Sender: joda@ratatosk.pdc.kth.se Message-ID: References: <200204012205.QAA0000012227@gskc01.stowers-institute.org> <200204020013.g320DUf08044@shade.twinsun.com> <7wzo0mwi2e.fsf@sic.twinsun.com> NNTP-Posting-Host: ratatosk.pdc.kth.se Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.unix.tru64:7178 Paul Eggert writes: > Is there some compile-time option that he can use on Tru64 to work > around this problem? For obscure reasons, read doesn't accept large buffers: if (uap->count > INT_MAX) return (EINVAL); A workaround using readv is probably the easiest route. It would be fairly simple to autoconf a test for this. /Johan