🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5423

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

#5423
From: Doug Gwyn
Date: Sat, 29 Oct 1988 21:48
8 lines
939 bytes
In article <1988Oct28.170735.23991@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes:
>The latter is correct.  See any Unix manual.

Sorry, but not all UNIX manuals agree about this.  IEEE 1003.1 went with
the SVID on this; the third parameter to read() and write() is an unsigned
int.  Even on the PDP-11 UNIX I used to use, one could succeed in reading/
writing records up to 64K-2 bytes although the manual said that the
argument was a plain int.
Technical Details
Message-ID: <8800@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!mcdchg!chinet!att!osu-cis!tut.cis.ohio-state.edu!mailrus!husc6!cmcl2!adm!smoke!gwyn
References: <902@vsi.COM> <1988Oct28.170735.23991@utzoo.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!mcdchg!chinet!att!osu-cis!tut.cis.ohio-state.edu!mailrus!husc6!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn )
Newsgroups: comp.std.c
Subject: Re: What's a good prototype for write(2)?
Message-ID: <8800@smoke.BRL.MIL>
Date: 29 Oct 88 21:48:47 GMT
References: <902@vsi.COM> <1988Oct28.170735.23991@utzoo.uucp>
Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>)
Organization: Ballistic Research Lab (BRL), APG, MD.
Lines: 8