#
b3e76948 |
|
16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
Remove $FreeBSD$: two-line .h pattern Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
|
#
5e53a4f9 |
|
25-Nov-2017 |
Pedro F. Giffuni <pfg@FreeBSD.org> |
lib: further adoption of SPDX licensing ID tags. Mainly focus on files that use BSD 2-Clause license, however the tool I was using mis-identified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
|
#
d8713bf3 |
|
19-Feb-2017 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Add a file descriptor in struct url for netrc When using libfetch in an application that drops privileges when fetching like pkg(8) then user complain because the application does not read anymore ${HOME}/.netrc. Now a caller can prepare a fd to the said file and manually assign it to the structure. It is also a first step to allow to capsicumize libfetch applications Reviewed by: allanjude, des Approved by: des Differential Revision: https://reviews.freebsd.org/D9678
|
#
c4199130 |
|
05-Jun-2014 |
Baptiste Daroussin <bapt@FreeBSD.org> |
Add support for arbitrary http requests Submitted by: Alex Hornung <alex@alexhornung.com> Reviewed by: des Obtained from: Dragonfly MFC after: 3 week
|
#
578153f1 |
|
19-Oct-2011 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
latin1 -> utf8
|
#
6337341d |
|
27-Sep-2011 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Update copyright dates and strip my middle name.
|
#
a7d5f7eb |
|
19-Oct-2010 |
Jamie Gritton <jamie@FreeBSD.org> |
A new jail(8) with a configuration file, to replace the work currently done by /etc/rc.d/jail.
|
#
fe0506d7 |
|
09-Mar-2010 |
Marcel Moolenaar <marcel@FreeBSD.org> |
Create the altix project branch. The altix project will add support for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting is a two-module system, consisting of a base compute module and a CPU expansion module. SGI's NUMAFlex architecture can be an excellent platform to test CPU affinity and NUMA-aware features in FreeBSD.
|
#
7f92799f |
|
15-Dec-2008 |
Murray Stokely <murray@FreeBSD.org> |
Add support for HTTP 1.1 If-Modified-Since behavior. fetch(1) accepts a new argument -i <file> that if specified will cause the file to be downloaded only if it is more recent than the mtime of <file>. libfetch(3) accepts the mtime in the url structure and a flag to indicate when this behavior is desired. PR: bin/87841 Submitted by: Jukka A. Ukkonen <jau@iki.fi> (partially) Reviewed by: des, ru MFC after: 3 weeks
|
#
d7f03759 |
|
19-Oct-2008 |
Ulf Lilleengen <lulf@FreeBSD.org> |
- Import the HEAD csup code which is the basis for the cvsmode work.
|
#
2cbbf9da |
|
21-Sep-2004 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Update copyright years.
|
#
190c185e |
|
22-Jul-2002 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Surround prototypes with __BEGIN_DECLS / __END_DECLS. PR: misc/40399 MFC after: 3 days
|
#
e19e6098 |
|
05-Feb-2002 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Reindent, and add parentheses to return statements. Some functions in ftp.c and http.c now have exceedingly long lines due to deep nesting; this will be corrected by reorganizing the code in a later revision.
|
#
7eb2f34d |
|
09-Dec-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Introduce a fetchDebug global. Change the DEBUG macro so it only runs the debugging code if fetchDebug is set. PR: bin/32615 MFC after: 1 week
|
#
6490b215 |
|
26-May-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add rudimentary support for an authentication callback function.
|
#
38c7e4a6 |
|
23-Apr-2001 |
Archie Cobbs <archie@FreeBSD.org> |
Apply 'const' liberally. Fix some other minor glitches.
|
#
025bb05a |
|
01-Dec-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add SCHEME_HTTPS.
|
#
be9e1d8a |
|
12-Oct-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add macros for the names of the URL schemes we support.
|
#
1a5faa10 |
|
17-Jul-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Introduce fetchXGet*(), which combine the functionalities of fetchGet*() and fetchStat*(). In most cases, either fetchGet*() or fetchXGet*() is a wrapper around the other; in all cases, calling fetchGet*() is identical to calling fetchXGet*() with the second argument set to NULL.
|
#
d999dcac |
|
17-Jul-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Don't forget to declare fetchRestartCalls.
|
#
7c80207e |
|
17-Jul-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Remove fetchContentType(), which disappeared in the HTTP rewrite.
|
#
9a964d6a |
|
25-May-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add (and document) fetchMakeURL()
|
#
ba101983 |
|
25-May-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Dump com_err, it's a stinking crock of shit.
|
#
60245e42 |
|
11-May-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Reorganize some of the http code and split it into more functions. Implement fetchStatHTTP(). Unbungle struct url, and add fetchFreeURL(). Document it.
|
#
068cd285 |
|
07-May-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
While we're at it, add a length field too in case we want to fully implement partial fetches later.
|
#
fd75cc90 |
|
07-May-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add offset field to struct url
|
#
fc6e9e65 |
|
06-Jan-2000 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
More old uncommitted patches: implement timeouts at the protocol level. Currently only supported for ftp connections.
|
#
7f3dea24 |
|
27-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
#
ce71b736 |
|
21-Dec-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Implement and document file list retrieval.
|
#
0fba3a00 |
|
16-Dec-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add verbose flag, and support functions. Brucify the Makefile. Differentiate atime and mtime in fetch*Stat(). Fix a few pointer bugs. Tweak some error messages. Don't #include sys/param.h and stdio.h in fetch.h. Document that sys/param.h and stdio.h must be #included before fetch.h.
|
#
d8acd8dc |
|
06-Nov-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Second of a series of cleanups to libfetch. This commit introduces the following features: a) the fetchStat*() functions, which return meta-information for a document, such as size, modification time, etc. b) the use of the com_err(3) facilities to report errors. It also fixes a bunch of style bugs and a few logic bugs and somewhat improves the man page. Changed files, in alphabetical order: Makefile: Don't generate macros in {ftp,http}err.c. Generate category fields for the error message lists. Compile the error table. Install fetch_err.h along with fetch.h. common.c: Remove the _netdb_errstring() macro, and add FETCH_ERR_NETDB to the error code in the _netdb_seterr() macro. Add categories to the _netdb_errlist table. Report errors through the Common Error library. common.h: Add the DEBUG macros. Add prototype for fetchConnect(). Remove the prototype for _fetch_errstring(), which is local to common.c Add a categroy field to struct fetcherr, and define constants for error categories. Define macros for _{url,netdb,ftp,http}_seterr(). errors.et: (new file) List error categories. fetch.3: Document the fetchStat*() functions. Move the "unimplemented functionality" comments from NOTES to BUGS. Document that applications which use libfetch must also use libcom_err, and list existing error codes. Undocument fetchLastErr{Code,String}. Remove the (empty) DIAGNOSTICS section. Mention Eugene Skepner in the AUTHORS section. fetch.c: Move the DEBUG macros to common.c Add fetchStat() and fetchStatURL(). Generate error messages for URL parser errors, and fix a minor bug in the parser. Use 'struct url' instead of 'url_t'. Remove fetchLastErr{Code,String}. fetch.h: Use 'struct url' instead of 'url_t', and remove the typedef. Define struct url_stat (used by fetchStat()). Add prototypes for fetchStat*(). Remove the declarations for fetchLastErr{Code,String}. Include fetch_err.h. fetch_err.et: (new file) Error table for libfetch. file.c: Add fetchStatFile(). Use 'struct url' instead of 'url_t'. ftp.c: Add fetchStatFTP(). Use 'struct url' instead of 'url_t'. Don't use fetchLastErrCode. ftp.errors: Add categories to all error messages. http.c: Add fetchStatHTTP(). Use 'struct url' instead of 'url_t'. Don't use fetchLastErr{Code,Text}. http.errors: Add categories to all error messages. Prompted by: jkh and Eugene Skepner Numerous sugestions from: Garett Wollman and Eugene Skepner
|
#
842a95cc |
|
05-Nov-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
First of a series of cleanups to libfetch. Changed files, in alphabetical order: Makefile: Add common.c to SRCS. Make debugging easier by making 'CFLAGS += -DNDEBUG' conditional on DEBUG Don't declare struct {ftp,http}err in {ftp,http}err.c; use struct fetcherr instead. README: Remove the todo list, which is out of date anyway. common.c: (new file) Gather utility functions in this file. Merge the error reporting functions intp _fetch_errstring(), _fetch_seterr() and _fetch_syserr(). Set fetchLastErrCode and fetchLastErrText appropriately when fetchConnect fails. common.h: (new file) Gather internal prototypes and structures in this files. fetch.3: Undocument fetchFreeURL(). Document a few more known bugs. Document fetchLastErrCode and fetchLastErrText. fetch.c: Add descriptive comments to all functions that lacked them. Move fetchConnect() to common.c. Obviate the need for fetchFreeURL(), and remove it. fetch.h: Modify struct url_t so the document part is at the end. ftp.c: Remove code that is duplicated elsewhere. http.c: Remove code that is duplicated elsewhere. Prompted by: jkh
|
#
ecc91352 |
|
17-Aug-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Commit a bunch of patches that have been accumulating: - Fix the README to reflect the new status of the ftp code. - Change tons of 'if (xxx < 0)' to 'if (xxx == -1)' - Add two new interface functions - Fix the Makefile so it actually works (yay!) Now the manpage is lagging even further behind... :( Next on the todo list is to clean up the http code.
|
#
346298f0 |
|
11-Jul-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
FTP retrieve works.
|
#
8e3986ea |
|
11-Jul-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Too many changes to list. Basically, FTP is nearly there and error reporting is kinda sorted out. Now HTTP needs to catch up...
|
#
4ca1ab94 |
|
09-Jul-1998 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Imported libfetch into the tree. It compiles, but there's still some work to do. I especially need help with the man page.
|