mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
842a95cc23
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
11 lines
440 B
Plaintext
11 lines
440 B
Plaintext
This is the new fetch(3) library, which is to replace the ftpio(3)
|
|
library and provide a new, unified backend for all fetch(1),
|
|
pkg_add(1) and sysinstall(8).
|
|
|
|
Note that this is very much work in progress. It compiles (with a few
|
|
warnings), but there is much left to be implemented. Comments, patches
|
|
etc. of all kinds are welcome, but please don't commit anything
|
|
without talking to me first.
|
|
|
|
-- Dag-Erling C. Smørgrav (des@FreeBSD.org)
|