From 12da50061254d46c47f707362080dfd7c5941d68 Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Mon, 29 Feb 2016 18:22:31 +0100 Subject: ssh: fix some errors in ssh_sftp doc --- lib/ssh/doc/src/ssh_sftp.xml | 54 +++++++++++++++++++++----------------------- 1 file changed, 26 insertions(+), 28 deletions(-) (limited to 'lib/ssh/doc/src') diff --git a/lib/ssh/doc/src/ssh_sftp.xml b/lib/ssh/doc/src/ssh_sftp.xml index ae9b914eba..21c6ba3ac7 100644 --- a/lib/ssh/doc/src/ssh_sftp.xml +++ b/lib/ssh/doc/src/ssh_sftp.xml @@ -53,16 +53,18 @@ section 9.1.

- The codes are named as SSH_FX_* which are transformed into lowercase(*), e.g. the error code ?SSH_FX_NO_SUCH_FILE + The codes are named as SSH_FX_* which are transformed into lowercase of the star-part. + E.g. the error code SSH_FX_NO_SUCH_FILE will cause the reason() to be no_such_file.

ssh_connection_ref() = -

opaque() - as returned by ssh:connect/3

+

opaque() - as returned by + ssh:connect/3

timeout() -

= infinity | integer() in milliseconds. Default infinity.

+

= infinity | integer() in milliseconds. Default infinity.

@@ -85,14 +87,14 @@ Len = integer() N = term() - -

The function reads from a specified position, - combining the and functions.

-

ssh_sftp:apread/4

+

The function reads from a specified position, + combining the position/3 and + aread/3 functions.

+
- apwrite(ChannelPid, Handle, Position, Data) -> ok | {error, reason()} + apwrite(ChannelPid, Handle, Position, Data) -> {async, N} | {error, reason()} Writes asynchronously to an open file. ChannelPid = pid() @@ -101,11 +103,12 @@ Len = integer() Data = binary() Timeout = timeout() + N = term() - -

writes on a specified position, combining - the and operations.

-

ssh_sftp:awrite/3

+

The function writes to a specified position, + combining the position/3 and + awrite/3 functions.

+
@@ -129,10 +132,8 @@ - - - awrite(ChannelPid, Handle, Data) -> ok | {error, reason()} + awrite(ChannelPid, Handle, Data) -> {async, N} | {error, reason()} Writes asynchronously to an open file. ChannelPid = pid() @@ -390,12 +391,11 @@ Timeout = timeout() Data = string() | binary() - -

The function reads from a specified position, - combining the and functions.

-

ssh_sftp:read/4

-
-
+

The function reads from a specified position, + combining the position/3 and + read/3,4 functions.

+
+ pwrite(ChannelPid, Handle, Position, Data) -> ok @@ -408,15 +408,13 @@ Data = iolist() Timeout = timeout() - -

The function writes to a specified position, - combining the and functions.

-

ssh_sftp:write/3

-
+

The function writes to a specified position, + combining the position/3 and + write/3,4 functions.

+
- - + read(ChannelPid, Handle, Len) -> read(ChannelPid, Handle, Len, Timeout) -> {ok, Data} | eof | {error, reason()} Reads from an open file. -- cgit v1.2.3