Path: 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) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 8 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.