Deleted Added
full compact
ftpio.3 (57686) ftpio.3 (62649)
1.\" Copyright (c) 1996 Jordan Hubbard (jkh@FreeBSD.org)
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
1.\" Copyright (c) 1996 Jordan Hubbard (jkh@FreeBSD.org)
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 8 unchanged lines hidden (view full) ---

17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $FreeBSD: head/lib/libftpio/ftpio.3 57686 2000-03-02 09:14:21Z sheldonh $
25.\" $FreeBSD: head/lib/libftpio/ftpio.3 62649 2000-07-05 19:34:43Z ume $
26.\"
27.Dd June 17, 1996
28.Dt FTPIO 3
29.Os
30.Sh NAME
31.Nm ftpLogin ,
32.Nm ftpChdir ,
33.Nm ftpErrno ,
34.Nm ftpGetModtime ,
35.Nm ftpGetSize ,
36.Nm ftpGet ,
37.Nm ftpPut ,
38.Nm ftpBinary ,
39.Nm ftpPassive ,
40.Nm ftpVerbose ,
41.Nm ftpGetURL ,
26.\"
27.Dd June 17, 1996
28.Dt FTPIO 3
29.Os
30.Sh NAME
31.Nm ftpLogin ,
32.Nm ftpChdir ,
33.Nm ftpErrno ,
34.Nm ftpGetModtime ,
35.Nm ftpGetSize ,
36.Nm ftpGet ,
37.Nm ftpPut ,
38.Nm ftpBinary ,
39.Nm ftpPassive ,
40.Nm ftpVerbose ,
41.Nm ftpGetURL ,
42.Nm ftpPutURL
42.Nm ftpPutURL ,
43.Nm ftpLoginAf ,
44.Nm ftpGetURLAf ,
45.Nm ftpPutURLAf
43.Nd FTPIO User library
44.Sh SYNOPSIS
45.Fd #include <ftpio.h>
46.Ft FILE *
47.Fn ftpLogin "char *host" "char *user" "char *passwd" "int ftp_port" "int verbose" "int *retcode"
48.Ft int
49.Fn ftpChdir "FILE *stream, char *dirname"
50.Ft int

--- 15 unchanged lines hidden (view full) ---

66.Ft int
67.Fn ftpPassive "FILE *stream, int status"
68.Ft void
69.Fn ftpVerbose "FILE *stream, int status"
70.Ft FILE *
71.Fn ftpGetURL "char *url, char *user, char *passwd, int *retcode"
72.Ft FILE *
73.Fn ftpPutURL "char *url, char *user, char *passwd, int *retcode"
46.Nd FTPIO User library
47.Sh SYNOPSIS
48.Fd #include <ftpio.h>
49.Ft FILE *
50.Fn ftpLogin "char *host" "char *user" "char *passwd" "int ftp_port" "int verbose" "int *retcode"
51.Ft int
52.Fn ftpChdir "FILE *stream, char *dirname"
53.Ft int

--- 15 unchanged lines hidden (view full) ---

69.Ft int
70.Fn ftpPassive "FILE *stream, int status"
71.Ft void
72.Fn ftpVerbose "FILE *stream, int status"
73.Ft FILE *
74.Fn ftpGetURL "char *url, char *user, char *passwd, int *retcode"
75.Ft FILE *
76.Fn ftpPutURL "char *url, char *user, char *passwd, int *retcode"
77.Ft int
78.Fn ftpLoginAf "char *host" "int af" "char *user" "char *passwd" "int ftp_port" "int verbose" "int *retcode"
79.Ft FILE *
80.Fn ftpGetURLAf "char *url" "int af" "char *user" "char *passwd" "int *retcode"
81.Ft FILE *
82.Fn ftpPutURLAf "char *url" "int af" "char *user" "char *passwd" "int *retcode"
74
75.Sh DESCRIPTION
76These functions implement a high-level library for managing FTP connections.
77.Pp
78.Fn ftpLogin
79attempts to log in using the supplied
80.Fa user ,
81.Fa passwd,

--- 99 unchanged lines hidden (view full) ---

181.Fn ftpLogin ,
182.Fn ftpChdir
183and
184.Fn ftpPut
185operations except that no server stream is ever returned - the connection
186to the server closes when the file has been completely written. Use the
187lower-level routines if multiple puts are required as it will be far more
188efficient.
83
84.Sh DESCRIPTION
85These functions implement a high-level library for managing FTP connections.
86.Pp
87.Fn ftpLogin
88attempts to log in using the supplied
89.Fa user ,
90.Fa passwd,

--- 99 unchanged lines hidden (view full) ---

190.Fn ftpLogin ,
191.Fn ftpChdir
192and
193.Fn ftpPut
194operations except that no server stream is ever returned - the connection
195to the server closes when the file has been completely written. Use the
196lower-level routines if multiple puts are required as it will be far more
197efficient.
198.Pp
199.Fn ftpLoginAf ,
200.Fn ftpGetURLAf ,
201.Fn ftpPutURLAf
202are same as
203.Fn ftpLogin ,
204.Fn ftpGetURL ,
205.Fn ftpPutURL
206except that they are able to specify address family
207.Fa af .
189.Sh ENVIRONMENT
190.Bl -tag -width FTP_PASSIVE_MODE -offset 123
191.It Ev FTP_TIMEOUT
192Maximum time, in seconds, to wait for a response
193from the peer before aborting an
194.Tn FTP
195connection.
196.It Ev FTP_PASSIVE_MODE

--- 17 unchanged lines hidden ---
208.Sh ENVIRONMENT
209.Bl -tag -width FTP_PASSIVE_MODE -offset 123
210.It Ev FTP_TIMEOUT
211Maximum time, in seconds, to wait for a response
212from the peer before aborting an
213.Tn FTP
214connection.
215.It Ev FTP_PASSIVE_MODE

--- 17 unchanged lines hidden ---