fetch.3 (75531) | fetch.3 (75891) |
---|---|
1.\" Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav 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) 1998 Dag-Erling Co�dan Sm�rgrav 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/libfetch/fetch.3 75531 2001-04-15 19:53:47Z dd $ | 25.\" $FreeBSD: head/lib/libfetch/fetch.3 75891 2001-04-24 00:06:21Z archie $ |
26.\" 27.Dd July 1, 1998 28.Dt FETCH 3 29.Os 30.Sh NAME 31.Nm fetchMakeURL , 32.Nm fetchParseURL , 33.Nm fetchFreeURL , --- 25 unchanged lines hidden (view full) --- 59.Nd file transfer functions 60.Sh LIBRARY 61.Lb libfetch 62.Sh SYNOPSIS 63.Fd #include <sys/param.h> 64.Fd #include <stdio.h> 65.Fd #include <fetch.h> 66.Ft struct url * | 26.\" 27.Dd July 1, 1998 28.Dt FETCH 3 29.Os 30.Sh NAME 31.Nm fetchMakeURL , 32.Nm fetchParseURL , 33.Nm fetchFreeURL , --- 25 unchanged lines hidden (view full) --- 59.Nd file transfer functions 60.Sh LIBRARY 61.Lb libfetch 62.Sh SYNOPSIS 63.Fd #include <sys/param.h> 64.Fd #include <stdio.h> 65.Fd #include <fetch.h> 66.Ft struct url * |
67.Fn fetchMakeURL "char *scheme" "char *host" "int port" "char *doc" "char *user" "char *pwd" | 67.Fn fetchMakeURL "const char *scheme" "const char *host" "int port" "const char *doc" "const char *user" "const char *pwd" |
68.Ft struct url * | 68.Ft struct url * |
69.Fn fetchParseURL "char *URL" | 69.Fn fetchParseURL "const char *URL" |
70.Ft void | 70.Ft void |
71.Fn fetchFreeURL "struct url *URL" | 71.Fn fetchFreeURL "struct url *u" |
72.Ft FILE * | 72.Ft FILE * |
73.Fn fetchXGetURL "char *URL" "struct url_stat *us" "char *flags" | 73.Fn fetchXGetURL "const char *URL" "struct url_stat *us" "const char *flags" |
74.Ft FILE * | 74.Ft FILE * |
75.Fn fetchGetURL "char *URL" "char *flags" | 75.Fn fetchGetURL "const char *URL" "const char *flags" |
76.Ft FILE * | 76.Ft FILE * |
77.Fn fetchPutURL "char *URL" "char *flags" | 77.Fn fetchPutURL "const char *URL" "const char *flags" |
78.Ft int | 78.Ft int |
79.Fn fetchStatURL "char *URL" "struct url_stat *us" "char *flags" | 79.Fn fetchStatURL "const char *URL" "struct url_stat *us" "const char *flags" |
80.Ft struct url_ent * | 80.Ft struct url_ent * |
81.Fn fetchListURL "char *URL" "char *flags" | 81.Fn fetchListURL "const char *URL" "const char *flags" |
82.Ft FILE * | 82.Ft FILE * |
83.Fn fetchXGet "struct url *URL" "struct url_stat *us" "char *flags" | 83.Fn fetchXGet "struct url *u" "struct url_stat *us" "const char *flags" |
84.Ft FILE * | 84.Ft FILE * |
85.Fn fetchGet "struct url *URL" "char *flags" | 85.Fn fetchGet "struct url *u" "const char *flags" |
86.Ft FILE * | 86.Ft FILE * |
87.Fn fetchPut "struct url *URL" "char *flags" | 87.Fn fetchPut "struct url *u" "const char *flags" |
88.Ft int | 88.Ft int |
89.Fn fetchStat "struct url *URL" "struct url_stat *us" "char *flags" | 89.Fn fetchStat "struct url *u" "struct url_stat *us" "const char *flags" |
90.Ft struct url_ent * | 90.Ft struct url_ent * |
91.Fn fetchList "struct url *" "char *flags" | 91.Fn fetchList "struct url *u" "const char *flags" |
92.Ft FILE * | 92.Ft FILE * |
93.Fn fetchXGetFile "struct url *u" "struct url_stat *us" "char *flags" | 93.Fn fetchXGetFile "struct url *u" "struct url_stat *us" "const char *flags" |
94.Ft FILE * | 94.Ft FILE * |
95.Fn fetchGetFile "struct url *u" "char *flags" | 95.Fn fetchGetFile "struct url *u" "const char *flags" |
96.Ft FILE * | 96.Ft FILE * |
97.Fn fetchPutFile "struct url *u" "char *flags" | 97.Fn fetchPutFile "struct url *u" "const char *flags" |
98.Ft int | 98.Ft int |
99.Fn fetchStatFile "struct url *URL" "struct url_stat *us" "char *flags" | 99.Fn fetchStatFile "struct url *u" "struct url_stat *us" "const char *flags" |
100.Ft struct url_ent * | 100.Ft struct url_ent * |
101.Fn fetchListFile "struct url *" "char *flags" | 101.Fn fetchListFile "struct url *u" "const char *flags" |
102.Ft FILE * | 102.Ft FILE * |
103.Fn fetchXGetHTTP "struct url *u" "struct url_stat *us" "char *flags" | 103.Fn fetchXGetHTTP "struct url *u" "struct url_stat *us" "const char *flags" |
104.Ft FILE * | 104.Ft FILE * |
105.Fn fetchGetHTTP "struct url *u" "char *flags" | 105.Fn fetchGetHTTP "struct url *u" "const char *flags" |
106.Ft FILE * | 106.Ft FILE * |
107.Fn fetchPutHTTP "struct url *u" "char *flags" | 107.Fn fetchPutHTTP "struct url *u" "const char *flags" |
108.Ft int | 108.Ft int |
109.Fn fetchStatHTTP "struct url *URL" "struct url_stat *us" "char *flags" | 109.Fn fetchStatHTTP "struct url *u" "struct url_stat *us" "const char *flags" |
110.Ft struct url_ent * | 110.Ft struct url_ent * |
111.Fn fetchListHTTP "struct url *" "char *flags" | 111.Fn fetchListHTTP "struct url *u" "const char *flags" |
112.Ft FILE * | 112.Ft FILE * |
113.Fn fetchXGetFTP "struct url *u" "struct url_stat *us" "char *flags" | 113.Fn fetchXGetFTP "struct url *u" "struct url_stat *us" "const char *flags" |
114.Ft FILE * | 114.Ft FILE * |
115.Fn fetchGetFTP "struct url *u" "char *flags" | 115.Fn fetchGetFTP "struct url *u" "const char *flags" |
116.Ft FILE * | 116.Ft FILE * |
117.Fn fetchPutFTP "struct url *u" "char *flags" | 117.Fn fetchPutFTP "struct url *u" "const char *flags" |
118.Ft int | 118.Ft int |
119.Fn fetchStatFTP "struct url *URL" "struct url_stat *us" "char *flags" | 119.Fn fetchStatFTP "struct url *u" "struct url_stat *us" "const char *flags" |
120.Ft struct url_ent * | 120.Ft struct url_ent * |
121.Fn fetchListFTP "struct url *" "char *flags" | 121.Fn fetchListFTP "struct url *u" "const char *flags" |
122.Sh DESCRIPTION 123.Pp 124These functions implement a high-level library for retrieving and 125uploading files using Uniform Resource Locators (URLs). 126.Pp 127.Fn fetchParseURL 128takes a URL in the form of a null-terminated string and splits it into 129its components function according to the Common Internet Scheme Syntax --- 458 unchanged lines hidden --- | 122.Sh DESCRIPTION 123.Pp 124These functions implement a high-level library for retrieving and 125uploading files using Uniform Resource Locators (URLs). 126.Pp 127.Fn fetchParseURL 128takes a URL in the form of a null-terminated string and splits it into 129its components function according to the Common Internet Scheme Syntax --- 458 unchanged lines hidden --- |