summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/file.c
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/file.c
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/file.c')
-rw-r--r--lib/libfetch/file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libfetch/file.c b/lib/libfetch/file.c
index 66a681f..fb10f8a 100644
--- a/lib/libfetch/file.c
+++ b/lib/libfetch/file.c
@@ -25,10 +25,10 @@
* (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: file.c,v 1.1.1.1 1998/07/09 16:52:41 des Exp $
+ * $Id: file.c,v 1.2 1998/11/06 22:14:08 des Exp $
*/
-#include <sys/types.h>
+#include <sys/param.h>
#include <sys/stat.h>
#include <stdio.h>
#include <string.h>
@@ -73,6 +73,7 @@ fetchStatFile(struct url *u, struct url_stat *us, char *flags)
return -1;
}
us->size = sb.st_size;
- us->time = sb.st_mtime;
+ us->atime = sb.st_atime;
+ us->mtime = sb.st_mtime;
return 0;
}
OpenPOWER on IntegriCloud