Subject: Re: [libssh2] non-blocking status

Re: [libssh2] non-blocking status

From: Daniel Stenberg <>
Date: Fri, 26 Jan 2007 16:16:06 +0100 (CET)

On Fri, 26 Jan 2007, Simon Josefsson wrote:

>> libssh2_sftp_read() might need attention anyway since it is documented to
>> return -1 on error which is hard to do on unsigned variables, and because
>> the normal read() returns ssize_t and I think this should mimic that.
> Yup, that sounds simply like a bug that should be fixed.

Would ssize_t be suitable to use? IIRC, it is not present in windows...

> In general, I'd like to see all the string lengths be 'size_t' instead of
> 'unsigned int' or 'unsigned long' too... however, I didn't start on that
> since it typically ends up changing the entire code base, and ultimately the
> APIs too, something I didn't want to do in my first commit.

I completely agree with this. And I'm also in favour of fixing this once and
for all, even if that means API breakage.

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
libssh2-devel mailing list
Received on 2007-01-26