/*
 * h.file
 *
 * $Log: file,v $
 * Revision 1.4  1998/09/28 15:55:16  joseph
 * Changed file_exists to take a const char *
 *
 * Revision 1.3  1998/06/16 18:29:40  joseph
 * Added recalculation of fetch portion for base href & redirections
 * Added processing of base href in fetch and rewrite
 * Moved file_truncate from rewrite to file
 * Logging of urls with unknown schemes
 * Errorlog file kept open across whole fetch
 * Log routines may handle effects of *close better.
 * Invalid chars in urls and hostnames replaced with ~'s on filesystem
 * Rewrite recovers from zero length log file
 * Removed permfail, softfail states as not used
 * Removed some unused bits from url structures
 * Changed proxy code to handle dotless hostnames okay.
 * Version to 0.06a.
 *
 * Revision 1.2  1998/04/05 11:36:41  jogu
 * Added file_exists
 *
 * Revision 1.1  1998/03/21 20:29:44  jogu
 * Created from http.
 *
 *
 */

#ifndef FILE_H
#define FILE_H

#include <time.h>
#include "kernel.h"

int file_settype(char *name, int type);
int file_setstampunix( const char *filename, time_t stamp );
int file_setstamp( const char *filename, char *riscos );
int file_readstamp( const char *filename, char *stamp );
int file_exists( const char */*name*/ );
_kernel_oserror *file_truncate( char */*name*/, long /*length*/ );

#endif
