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-05 07:44:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!195.70.164.134!news.ost.eltele.no!uninett.no!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: 05 Apr 2002 17:33:41 +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> <7wwuvqxlm0.fsf@sic.twinsun.com> <7wofgz6h17.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:7218 Paul Eggert writes: > I wonder whether Tru64 readv fails with errno==EINVAL if the sum of > the buffer lengths exceeds INT_MAX. There's a 64-bit "fixed" version of readv that you get automatically if you include the proper header. Why there isn't an equivalent for read is unknown to me. /Johan