Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | latin1 -> utf8 | des | 2011-10-19 | 1 | -1/+1 |
| | |||||
* | Update copyright dates and strip my middle name. | des | 2011-09-27 | 1 | -1/+1 |
| | |||||
* | Mark all socket and file descriptors close-on-exec. | des | 2011-05-13 | 1 | -0/+3 |
| | | | | | PR: bin/151866 MFC after: 3 weeks | ||||
* | Clean up namespace violations. | des | 2007-12-14 | 1 | -10/+10 |
| | | | | MFC after: 1 week | ||||
* | Update copyright years. | des | 2004-09-21 | 1 | -1/+1 |
| | |||||
* | style(9): add parentheses to sizeof even when not strictly required. | des | 2003-01-28 | 1 | -3/+3 |
| | | | | MFC after: 3 days | ||||
* | Reindent, and add parentheses to return statements. Some functions in | des | 2002-02-05 | 1 | -76/+76 |
| | | | | | 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. | ||||
* | Add __FBSDID()s to libfetch | dillon | 2001-09-30 | 1 | -2/+3 |
| | |||||
* | Use fseeko() instead of fseek() (u->offset is already an off_t), and mark | des | 2001-09-05 | 1 | -4/+4 |
| | | | | some function arguments as unused. | ||||
* | MAXPATHLEN -> PATH_MAX | des | 2001-05-26 | 1 | -1/+1 |
| | |||||
* | Apply 'const' liberally. | archie | 2001-04-24 | 1 | -6/+6 |
| | | | | Fix some other minor glitches. | ||||
* | Use CHECK_FLAG | des | 2000-10-29 | 1 | -1/+1 |
| | |||||
* | Introduce fetchXGet*(), which combine the functionalities of fetchGet*() and | des | 2000-07-17 | 1 | -1/+10 |
| | | | | | | 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. | ||||
* | Initialize the struct url_stat at the beginning of _fetch_stat_file(). | des | 2000-05-15 | 1 | -0/+2 |
| | |||||
* | Implement restart | des | 2000-05-07 | 1 | -1/+13 |
| | |||||
* | Patches I've had lying around for several months: | des | 2000-01-07 | 1 | -1/+1 |
| | | | | | | | * Add the 'h' ftp flag (allocate local port in high range) * Add the 'd' flag (use direct connection even if proxy is defined) * Make sure flags != NULL before calling strchr(). * Minor changes to some comments. | ||||
* | $Id$ -> $FreeBSD$ | peter | 1999-08-28 | 1 | -1/+1 |
| | |||||
* | Implement and document file list retrieval. | des | 1998-12-21 | 1 | -4/+47 |
| | |||||
* | Add verbose flag, and support functions. | des | 1998-12-16 | 1 | -3/+4 |
| | | | | | | | | | 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. | ||||
* | Second of a series of cleanups to libfetch. | des | 1998-11-06 | 1 | -7/+36 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
* | Imported libfetch into the tree. It compiles, but there's still some | des | 1998-07-09 | 1 | -0/+49 |
work to do. I especially need help with the man page. |