🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5400

Re: What's a good prototype for write(2)?

#5400
From: Henry Spencer
Date: Fri, 28 Oct 1988 17:07
14 lines
922 bytes
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
Technical Details
Message-ID: <1988Oct28.170735.23991@utzoo.uucp>
Path: arc1-ca.pugleaf.net!utzoo!henry
References: <902@vsi.COM>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!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