[PATCH] RE: More Buffer IO Bugs (was: Strangeness when printing to file)

2004-01-18 Thread Tamilmani, Arvindh Rajesh (Cognizant)
 When running this I would expect the 2 files to
 look the same, but they don't.

Additionally to the reported bug these seem to be broken:

1) Turning off buffering:

The attached patch fixes the above two bugs:
a) when the buffer is full, it is not completely flushed; fixed.
b) setbuf sets b-size to PIO_GRAIN (and wrongly sets io-flags) when
   passed 0.  The patch sets b-size to 0 - hope it is the expected
   behavior.

Tests, tests, tests, and fixes very welcome,
leo

arvindh


biofixes.patch
Description: biofixes.patch
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


Re: [PATCH] RE: More Buffer IO Bugs

2004-01-18 Thread Leopold Toetsch
Arvindh Rajesh Tamilmani [EMAIL PROTECTED] wrote:

 The attached patch fixes the above two bugs:
 a) when the buffer is full, it is not completely flushed; fixed.
 b) setbuf sets b-size to PIO_GRAIN (and wrongly sets io-flags) when
passed 0.  The patch sets b-size to 0 - hope it is the expected
behavior.

Thanks, applied.

Tests, tests, tests, and fixes very welcome,

People, if you have some IO related PASM snippets, that were broken and
are ok now (or not :), please convert that into a test and sent it to
bugs-parrot. Thanks.

 arvindh

leo


[perl #24941] [PATCH] RE: More Buffer IO Bugs (was: Strangeness when printing to file)

2004-01-18 Thread Tamilmani, Arvindh Rajesh \(Cognizant\)
# New Ticket Created by  Tamilmani, Arvindh Rajesh (Cognizant) 
# Please include the string:  [perl #24941]
# in the subject line of all future correspondence about this issue. 
# URL: http://rt.perl.org/rt3/Ticket/Display.html?id=24941 


 When running this I would expect the 2 files to
 look the same, but they don't.

Additionally to the reported bug these seem to be broken:

1) Turning off buffering:

The attached patch fixes the above two bugs:
a) when the buffer is full, it is not completely flushed; fixed.
b) setbuf sets b-size to PIO_GRAIN (and wrongly sets io-flags) when
   passed 0.  The patch sets b-size to 0 - hope it is the expected
   behavior.

Tests, tests, tests, and fixes very welcome,
leo

arvindh


biofixes.patch
Description: Binary data
This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

Visit us at http://www.cognizant.com