Subject: [libssh2] libssh2_sftp_read() and libssh2_sftp_write() return type?

[libssh2] libssh2_sftp_read() and libssh2_sftp_write() return type?

From: Daniel Stenberg <>
Date: Sun, 19 Nov 2006 23:25:18 +0100 (CET)


The functions libssh2_sftp_read() and libssh2_sftp_write() are declared to
return size_t.

First, I don't like that the code then proceeds and return -1 when size_t is
in fact unsigned on most platforms.

I would much rather see them resember read() and write() more closely (as
that's what their names somewhat imply at least in my head) and they return

Would anyone object if I modified this?

Should we somehow write down API/ABI changes somewhere for the upcoming
release notes?

Should we perhaps start noting our changes in a ChangeLog somewhere (I mean
generally, not only API/ABI changes)? I think we all would benefit from

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 2006-11-19