common.h (106046) | common.h (109695) |
---|---|
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 106046 2002-10-27 16:11:21Z des $ | 28 * $FreeBSD: head/lib/libfetch/common.h 109695 2003-01-22 17:53:58Z 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 --- 46 unchanged lines hidden (view full) --- 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); 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 *); | 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 --- 46 unchanged lines hidden (view full) --- 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); 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 *); |
91int _fetch_netrc_auth(struct url *url); |
|
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) 95#define _url_seterr(n) _fetch_seterr(_url_errlist, n) 96 97#ifndef NDEBUG 98#define DEBUG(x) do { if (fetchDebug) { x; } } while (0) --- 24 unchanged lines hidden --- | 92 93#define _ftp_seterr(n) _fetch_seterr(_ftp_errlist, n) 94#define _http_seterr(n) _fetch_seterr(_http_errlist, n) 95#define _netdb_seterr(n) _fetch_seterr(_netdb_errlist, n) 96#define _url_seterr(n) _fetch_seterr(_url_errlist, n) 97 98#ifndef NDEBUG 99#define DEBUG(x) do { if (fetchDebug) { x; } } while (0) --- 24 unchanged lines hidden --- |