diff options
author | rsc <devnull@localhost> | 2005-07-18 22:41:58 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-07-18 22:41:58 +0000 |
commit | 3aec33fee92d97715e648bd8205823ddc7e5cbba (patch) | |
tree | 2873fc2269cd08b55dbfe6247e1c1d10230764c9 /man/man3/venti-client.3 | |
parent | 9f95eb6fd6e5fa8a3be78f8b1b85310f50e49380 (diff) | |
download | plan9port-3aec33fee92d97715e648bd8205823ddc7e5cbba.tar.gz plan9port-3aec33fee92d97715e648bd8205823ddc7e5cbba.tar.bz2 plan9port-3aec33fee92d97715e648bd8205823ddc7e5cbba.zip |
done
Diffstat (limited to 'man/man3/venti-client.3')
-rw-r--r-- | man/man3/venti-client.3 | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/man/man3/venti-client.3 b/man/man3/venti-client.3 index ec18fc4e..cc8d14f4 100644 --- a/man/man3/venti-client.3 +++ b/man/man3/venti-client.3 @@ -8,7 +8,7 @@ vtconnect, vthello, vtread, vtwrite, vtreadpacket, vtwritepacket, vtsync, vtping #include <libc.h> .br #include <venti.h> -.ta +\w'\fLextern int 'u +\w'\fLxxxxxxxx'u +.ta +\w'\fLPacket* 'u +\w'\fLxxxxxxxx'u .PP .B Packet* vtrpc(VtConn *z, Packet *p) @@ -50,7 +50,7 @@ int vtsync(VtConn *z) int vtping(VtConn *z) .PP .B -extern int ventidoublechecksha1; /* default 1 */ +extern int ventidoublechecksha1; /* default 1 */ .SH DESCRIPTION These routines execute the client side of the .IR venti (7) @@ -73,10 +73,8 @@ is typically called only indirectly, via the functions below. .I Vthello executes a .B hello -transaction -(see -.IR venti (7)), setting -.IB z -> sid +transaction, setting +.IB z ->sid to the name used by the server. .I Vthello is typically called only indirectly, via @@ -103,11 +101,11 @@ reads the block with the given and .I type from the server, -writes the returned data -to +stores the returned data +in memory at .IR buf , -and returns the number of bytes retrieved. -If the stored block has size larger than +and returns the number of bytes read. +If the server's block has size larger than .IR n , .I vtread does not modify @@ -120,7 +118,7 @@ writes the .I n bytes in .I buf -with type +as a block of the given .IR type , setting .IR score . @@ -177,7 +175,6 @@ as described in .SH SOURCE .B \*9/src/libventi .SH SEE ALSO -.IR venti (1), .IR venti (3), .IR venti-conn (3), .IR venti-packet (3), @@ -190,5 +187,4 @@ return nil on error. The other routines return \-1 on error. .PP .I Vtwrite -returns 0 on success, -meaning it wrote the entire block. +returns 0 on success: there are no partial writes. |