[comp.lang.perl] PERL PL28 raw device reading

gorpong@uunet.uu.net (09/27/90)

<> From: merlyn@iwarp.intel.com (Randal Schwartz)
<> Subject: Re: PERL PL28 and reading raw devices (problem)
<> Date: 26 Sep 90 18:21:53 GMT
<> Reply-To: merlyn@iwarp.intel.com (Randal Schwartz)
<> 
<> Raw devices are sensitive to the *real* number of bytes being passed
<> to the read(2) system call.  Between Perl's read() and the read(2)
<> system call sits the standard I/O package, which is free to break up

[....]

<> From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall)
<> Subject: Re: PERL PL28 and reading raw devices (problem)
<> Date: 26 Sep 90 17:57:50 GMT
<> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall)
<> 
<> The problem is that read is actually a call to standard I/O's fread(), and
<> how many bytes fread() chooses to read has little relation to how many
<> bytes you said to read.

How many times has this come up in this group?  10?  20?  Each time I read
it, I put it away for future reference, and promptly ignored it when it bit 
me.  My humblest of apologies for asking such an ignorant question, and my
thanks for such patient answers.

		-- Gordon.

-- 
Gordon C. Galligher	9127 Potter Rd. #2E	Des. Plaines, Ill.    60016-4881
     telxon!ping%gorpong@uunet.uu.net (not tested)  (Is this even legal??)
     ...!uunet!telxon!ping!gorpong      (tested)    (And it works!)
"It seems to me, Golan, that the advance of civilization is nothing but an
 exercise in the limiting of privacy." - Janov Pelorat -- _Foundation's Edge_