summaryrefslogtreecommitdiffstats
path: root/lib/libftpio/ftpio.3
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1996-08-21 01:12:11 +0000
committerjkh <jkh@FreeBSD.org>1996-08-21 01:12:11 +0000
commitfc1487cdb0526da63e7c8dbf92b1bcf3e66d356c (patch)
treed73ecb14dd9b2627668e78e4f23d5fb3178ac09d /lib/libftpio/ftpio.3
parentbf3127c24bb5de8cab749074a2c4004f51bdc0c5 (diff)
downloadFreeBSD-src-fc1487cdb0526da63e7c8dbf92b1bcf3e66d356c.zip
FreeBSD-src-fc1487cdb0526da63e7c8dbf92b1bcf3e66d356c.tar.gz
Add an ftpErrString() function for returning human readable failure
codes. Submitted-By: Archie Cobbs <archie@whistle.com>
Diffstat (limited to 'lib/libftpio/ftpio.3')
-rw-r--r--lib/libftpio/ftpio.39
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libftpio/ftpio.3 b/lib/libftpio/ftpio.3
index df09e3a..8c57dd8 100644
--- a/lib/libftpio/ftpio.3
+++ b/lib/libftpio/ftpio.3
@@ -48,6 +48,8 @@
.Fn ftpChdir "FILE *stream, char *dirname"
.Ft int
.Fn ftpErrno "FILE *stream"
+.Ft const char *
+.Fn ftpErrString "int errno"
.Ft time_t
.Fn ftpGetModtime "FILE *stream, char *file"
.Ft size_t
@@ -95,6 +97,8 @@ On success, zero is returned. On failure, the error code from the server.
.Fn ftpErrno
returns the server failure code for the last operation (useful for seeing
more about what happened if you're familiar with FTP error codes).
+.Fn ftpErrString
+returns a human readable version of the supplied server failure code.
.Pp
.Fn ftpGet
attempts to retreive the file named by the
@@ -187,8 +191,7 @@ all my tests.
.Sh HISTORY
Started life as Poul-Henning Kamp's ftp driver for the system installation
utility, later significantly mutated into a more general form as an
-extension of stdio and given a TCL interface (not enabled by default)
-by Jordan Hubbard. Also incorporates some ideas and extensions from
-Jean-Marc Zucconi.
+extension of stdio by Jordan Hubbard. Also incorporates some ideas and
+extensions from Jean-Marc Zucconi.
.Sh AUTHORS
Jordan Hubbard, Poul-Henning Kamp and Jean-Marc Zucconi
OpenPOWER on IntegriCloud