Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!rochester!rit!cci632!tvf From: tvf@cci632.UUCP (Tom Frauenhofer) Newsgroups: comp.os.minix Subject: Re: /usr/minix/amoeba/examples/client3.c Message-ID: <27427@cci632.UUCP> Date: 23 Mar 89 13:43:53 GMT References: <11077@louie.udel.EDU> <27232@cci632.UUCP> <7501@galbp.LBP.HARRIS.COM> Reply-To: tvf@ccird7.UUCP (Tom Frauenhofer) Organization: CCI, Communications Systems Division, Rochester, NY Lines: 21 In article <7501@galbp.LBP.HARRIS.COM> bryan@fafhrd.LBP.HARRIS.COM (Bryan Ivey (FAFHRD System Adminstrator)) writes: > >In article <27232@cci632.UUCP> tvf@ccird7.UUCP (Tom Frauenhofer) writes: >>In article <11077@louie.udel.EDU> jnall%FSU.BITNET@cunyvm.cuny.edu (John Nall 904-644-5241) writes: >>>client3.c, does not work because the main routine has a read statement >>>which is of the form "if ((n=read(fd,buf,bytes) < 0))" and, as stated >>The code is correct. >John Nall is making a reference to the levels of parenthesis, i.e., Yes, you're all right. It was, um, the glasses. Yeah! I forgot to wear my glasses. I had given them to my wife, um, Morgan Fairchild, yeah, that's the ticket... ( :-) ) Now, to stick my neck back into it, the code may not be "smart", but if you can assume that if n>0 then n==bytes, it should be okay. Of course, I do not think that a safe assumption. Thomas V. Frauenhofer ...!rutgers!rochester!cci632!ccird7!tvf *or* ...!rochester!cci632!ccird7!frau!tvf *or* ...!rochester!rit!anna!ma!tvf1477 BLOOM: You can't shoot the actors! They're human beings! BIALYSTOCK: Oh Yeah? You ever eat with one?