Newsgroups: comp.std.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: What's a good prototype for write(2)?
Message-ID: <1988Oct28.170735.23991@utzoo.uucp>
Organization: U of Toronto Zoology
References: <902@vsi.COM>
Date: Fri, 28 Oct 88 17:07:35 GMT

In article <902@vsi.COM> friedl@vsi.COM (Stephen J. Friedl) writes:
>What is a proper prototype for write(2)?  It would have to
>be one of:
>	extern int write(int, const void *, unsigned);
>or
>	extern int write(int, const void *, int);

The latter is correct.  See any Unix manual.  Yes, this means that the
size of a write buffer is limited to 32767 bytes on a 16-bit machine,
and that it is possible to create C objects that are too big for a
single write call.
-- 
The dream *IS* alive...         |    Henry Spencer at U of Toronto Zoology
but not at NASA.                |uunet!attcan!utzoo!henry henry@zoo.toronto.edu
