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

Doug Gwyn gwyn at smoke.BRL.MIL
Sun Oct 30 07:48:47 AEST 1988


In article <1988Oct28.170735.23991 at utzoo.uucp> henry at 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.



More information about the Comp.std.c mailing list