Deleted Added
full compact
common.h (98117) common.h (106046)
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1998 Dag-Erling Co�dan Sm�rgrav
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/lib/libfetch/common.h 98117 2002-06-11 11:27:28Z des $
28 * $FreeBSD: head/lib/libfetch/common.h 106046 2002-10-27 16:11:21Z des $
29 */
30
31#ifndef _COMMON_H_INCLUDED
32#define _COMMON_H_INCLUDED
33
34#define FTP_DEFAULT_PORT 21
35#define HTTP_DEFAULT_PORT 80
36#define FTP_DEFAULT_PROXY_PORT 21

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

63
64/* Structure used for error message lists */
65struct fetcherr {
66 const int num;
67 const int cat;
68 const char *string;
69};
70
29 */
30
31#ifndef _COMMON_H_INCLUDED
32#define _COMMON_H_INCLUDED
33
34#define FTP_DEFAULT_PORT 21
35#define HTTP_DEFAULT_PORT 80
36#define FTP_DEFAULT_PROXY_PORT 21

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

63
64/* Structure used for error message lists */
65struct fetcherr {
66 const int num;
67 const int cat;
68 const char *string;
69};
70
71/* for _fetch_writev */
72struct iovec;
73
71void _fetch_seterr(struct fetcherr *, int);
72void _fetch_syserr(void);
73void _fetch_info(const char *, ...);
74int _fetch_default_port(const char *);
75int _fetch_default_proxy_port(const char *);
76conn_t *_fetch_connect(const char *, int, int, int);
77conn_t *_fetch_reopen(int);
78conn_t *_fetch_ref(conn_t *);
79int _fetch_ssl(conn_t *, int);
80ssize_t _fetch_read(conn_t *, char *, size_t);
81int _fetch_getln(conn_t *);
82ssize_t _fetch_write(conn_t *, const char *, size_t);
74void _fetch_seterr(struct fetcherr *, int);
75void _fetch_syserr(void);
76void _fetch_info(const char *, ...);
77int _fetch_default_port(const char *);
78int _fetch_default_proxy_port(const char *);
79conn_t *_fetch_connect(const char *, int, int, int);
80conn_t *_fetch_reopen(int);
81conn_t *_fetch_ref(conn_t *);
82int _fetch_ssl(conn_t *, int);
83ssize_t _fetch_read(conn_t *, char *, size_t);
84int _fetch_getln(conn_t *);
85ssize_t _fetch_write(conn_t *, const char *, size_t);
86ssize_t _fetch_writev(conn_t *, struct iovec *, int);
83int _fetch_putln(conn_t *, const char *, size_t);
84int _fetch_close(conn_t *);
85int _fetch_add_entry(struct url_ent **, int *, int *,
86 const char *, struct url_stat *);
87
88#define _ftp_seterr(n) _fetch_seterr(_ftp_errlist, n)
89#define _http_seterr(n) _fetch_seterr(_http_errlist, n)
90#define _netdb_seterr(n) _fetch_seterr(_netdb_errlist, n)

--- 28 unchanged lines hidden ---
87int _fetch_putln(conn_t *, const char *, size_t);
88int _fetch_close(conn_t *);
89int _fetch_add_entry(struct url_ent **, int *, int *,
90 const char *, struct url_stat *);
91
92#define _ftp_seterr(n) _fetch_seterr(_ftp_errlist, n)
93#define _http_seterr(n) _fetch_seterr(_http_errlist, n)
94#define _netdb_seterr(n) _fetch_seterr(_netdb_errlist, n)

--- 28 unchanged lines hidden ---