head	1.4;
access;
symbols
	RELENG_4_11_0_RELEASE:1.3.6.1
	RELENG_4_11:1.3.6.1.0.8
	RELENG_4_11_BP:1.3.6.1
	RELENG_4_10_0_RELEASE:1.3.6.1
	RELENG_4_10:1.3.6.1.0.6
	RELENG_4_10_BP:1.3.6.1
	RELENG_4_9_0_RELEASE:1.3.6.1
	RELENG_4_9:1.3.6.1.0.4
	RELENG_4_9_BP:1.3.6.1
	RELENG_4_8_0_RELEASE:1.3.6.1
	RELENG_4_8:1.3.6.1.0.2
	RELENG_4_8_BP:1.3.6.1
	RELENG_4_7_0_RELEASE:1.3
	RELENG_4_7:1.3.0.16
	RELENG_4_7_BP:1.3
	RELENG_4_6_2_RELEASE:1.3
	RELENG_4_6_1_RELEASE:1.3
	RELENG_4_6_0_RELEASE:1.3
	RELENG_4_6:1.3.0.14
	RELENG_4_6_BP:1.3
	RELENG_4_5_0_RELEASE:1.3
	RELENG_4_5:1.3.0.12
	RELENG_4_5_BP:1.3
	RELENG_4_4_0_RELEASE:1.3
	RELENG_4_4:1.3.0.10
	RELENG_4_4_BP:1.3
	RELENG_4_3_0_RELEASE:1.3
	RELENG_4_3:1.3.0.8
	RELENG_4_3_BP:1.3
	RELENG_4_2_0_RELEASE:1.3
	RELENG_4_1_1_RELEASE:1.3
	PRE_SMPNG:1.3
	RELENG_4_1_0_RELEASE:1.3
	RELENG_3_5_0_RELEASE:1.3
	RELENG_4_0_0_RELEASE:1.3
	RELENG_4:1.3.0.6
	RELENG_4_BP:1.3
	RELENG_3_4_0_RELEASE:1.3
	RELENG_3_3_0_RELEASE:1.3
	RELENG_3_2_PAO:1.3.0.4
	RELENG_3_2_PAO_BP:1.3
	RELENG_3_2_0_RELEASE:1.3
	RELENG_3_1_0_RELEASE:1.3
	RELENG_3:1.3.0.2
	RELENG_3_BP:1.3
	RELENG_3_0_0_RELEASE:1.2
	start:1.1.1.1
	DES:1.1.1;
locks; strict;
comment	@# @;


1.4
date	2002.01.01.16.27.26;	author des;	state dead;
branches;
next	1.3;

1.3
date	98.11.05.19.48.16;	author des;	state Exp;
branches
	1.3.6.1;
next	1.2;

1.2
date	98.08.17.09.30.19;	author des;	state Exp;
branches;
next	1.1;

1.1
date	98.07.09.16.52.43;	author des;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	98.07.09.16.52.43;	author des;	state Exp;
branches;
next	;

1.3.6.1
date	2002.11.27.15.36.45;	author des;	state dead;
branches;
next	;


desc
@@


1.4
log
@Remove long-obsolete README.
@
text
@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. Smrgrav (des@@FreeBSD.org)
@


1.3
log
@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
@
text
@@


1.3.6.1
log
@OBE
@
text
@@


1.2
log
@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.
@
text
@d6 3
a8 14
warnings), but there is much left to be implemented. Amongst other
items:

  * The man page needs work. Really. I mean it. Now.

  * HTTP authentication doesn't work. I'm not sure if I bungled http.c
    or fubared base64.c (which was ripped from MIT fetch(1)).

  * The library needs a decent interface for reporting errors. I've
    started on something (sending back an error code in the url_t that
    was sent in) but we're Not There (tm) yet.

Comments, patches etc. of all kinds are welcome, but please don't
commit anything without talking to me first.
@


1.1
log
@Initial revision
@
text
@a10 2
  * ftp.c is not even half-written.

@


1.1.1.1
log
@Imported libfetch into the tree. It compiles, but there's still some
work to do. I especially need help with the man page.
@
text
@@
