summaryrefslogtreecommitdiffstats
path: root/lib/libftpio/ftpio.h
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.h
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.h')
-rw-r--r--lib/libftpio/ftpio.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/libftpio/ftpio.h b/lib/libftpio/ftpio.h
index e7a964b..49da730 100644
--- a/lib/libftpio/ftpio.h
+++ b/lib/libftpio/ftpio.h
@@ -20,7 +20,7 @@
* Turned inside out. Now returns xfers as new file ids, not as a special
* `state' of FTP_t
*
- * $Id: ftpio.h,v 1.5 1996/07/04 00:55:21 jkh Exp $
+ * $Id: ftpio.h,v 1.6 1996/08/03 11:58:54 jkh Exp $
*/
/* Internal housekeeping data structure for FTP sessions */
@@ -36,6 +36,14 @@ typedef struct {
int is_verbose;
} *FTP_t;
+/* Structure we use to match FTP error codes with readable strings */
+struct ftperr {
+ const int num;
+ const char *string;
+};
+extern struct ftperr ftpErrList[];
+extern int const ftpErrListLength;
+
/* Exported routines - deal only with FILE* type */
extern FILE *ftpLogin(char *host, char *user, char *passwd, int port, int verbose);
extern int ftpChdir(FILE *fp, char *dir);
@@ -50,5 +58,6 @@ extern void ftpVerbose(FILE *fp, int status);
extern FILE *ftpGetURL(char *url, char *user, char *passwd);
extern FILE *ftpPutURL(char *url, char *user, char *passwd);
extern time_t ftpGetModtime(FILE *fp, char *s);
+extern const char *ftpErrString(int errno);
#endif /* _FTP_H_INCLUDE */
OpenPOWER on IntegriCloud