summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.h
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1998-12-16 10:24:55 +0000
committerdes <des@FreeBSD.org>1998-12-16 10:24:55 +0000
commit37f6ae6efa76ffd76030b285155c142929e27e71 (patch)
tree46bd30e5ec6a8aa52bcbef848e3726d299305880 /lib/libfetch/fetch.h
parent0dfe97f554b9685389c9e58615db7e9453368503 (diff)
downloadFreeBSD-src-37f6ae6efa76ffd76030b285155c142929e27e71.zip
FreeBSD-src-37f6ae6efa76ffd76030b285155c142929e27e71.tar.gz
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.
Diffstat (limited to 'lib/libfetch/fetch.h')
-rw-r--r--lib/libfetch/fetch.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/libfetch/fetch.h b/lib/libfetch/fetch.h
index 286b253..6ec7d67 100644
--- a/lib/libfetch/fetch.h
+++ b/lib/libfetch/fetch.h
@@ -25,15 +25,12 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: fetch.h,v 1.5 1998/11/05 19:48:17 des Exp $
+ * $Id: fetch.h,v 1.6 1998/11/06 22:14:08 des Exp $
*/
#ifndef _FETCH_H_INCLUDED
#define _FETCH_H_INCLUDED
-#include <sys/param.h>
-#include <stdio.h>
-
#include <fetch_err.h>
#define _LIBFETCH_VER "libfetch/1.0"
@@ -53,7 +50,8 @@ struct url {
struct url_stat {
off_t size;
- time_t time;
+ time_t atime;
+ time_t mtime;
};
/* FILE-specific functions */
@@ -81,4 +79,7 @@ FILE *fetchGet(struct url *, char *);
FILE *fetchPut(struct url *, char *);
int fetchStat(struct url *, struct url_stat *, char *);
+/* Last error code */
+extern int fetchLastErrCode;
+
#endif
OpenPOWER on IntegriCloud