bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] NSFileHandle -readDataOfLength behaviour


From: Richard Frith-Macdonald
Subject: Re: [Q] NSFileHandle -readDataOfLength behaviour
Date: Fri, 13 Apr 2007 06:18:23 +0100


On 13 Apr 2007, at 02:21, Vaisburd, Haim wrote:

Hi,

While working on my byte stream functions and trying to base them on
NSFileHandle instead of NSStreams I discovered a strange feature of
[NSFileHandle -readDataOfLength:] implementation in GNUstep.

I was trying to determine whether this method blocks until it reads
the requested number of bytes or it blocks only until anything is
available,
then it returns what's avaiable up to the length (i.e. normal read()
semantics).

Thanks ... you spotted a bug ... this method should block until it reads the specified amount of data (or eof).
This should be fixed in subversion now.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]