Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: joda@pdc.kth.se (Johan Danielsson)
Subject: Re: read(fd, buf, N) fails when N doesn't fit in 32 bits?
Date: 02 Apr 2002 15:15:52 +0200	[thread overview]
Message-ID: <xofg02es0l3.fsf@ratatosk.pdc.kth.se> (raw)
In-Reply-To: 7wzo0mwi2e.fsf@sic.twinsun.com

Paul Eggert <eggert@twinsun.com> 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


  reply	other threads:[~2002-04-02 13:15 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   ` read(fd, buf, N) fails when N doesn't fit in 32 bits? Paul Eggert
2002-04-02 13:15     ` Johan Danielsson [this message]
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