Subject: Re: wrap up of pipe(2)
To: Matthias Buelow <mkb@mukappabeta.de>
From: Dave Huang <khym@azeotrope.org>
List: tech-userlevel
Date: 10/14/2001 17:52:44
On Mon, 15 Oct 2001, Matthias Buelow wrote:
> So this "problem" is probably faster to show up with the 31-bit limit
> of type "int" (== ssize_t on the current implementation) on any
> architecture, since 2 gig memory sizes, files, and time to read it is
> a lot more feasable than >> 2**63 would ever be, although there are
> probably more pressing problems than that one :).

But ssize_t isn't int on all architectures... it's a long on
NetBSD/alpha, for example.

yerfable /usr/include/alpha> grep _BSD_SSIZE_T ansi.h
#define _BSD_SSIZE_T_           long            /* byte count or error */

yerfable /usr/include/alpha> grep 'SSIZE_MAX\|  LONG_MAX' limits.h
#define LONG_MAX        0x7fffffffffffffffL     /* max for a long */
#define SSIZE_MAX       LONG_MAX        /* max value for a ssize_t */