1 /* File Access HTFile.h
4 ** These are routines for file access used by WWW browsers.
10 /* Convert filenames between local and WWW formats
11 ** -----------------------------------------------
12 ** Make up a suitable name for saving the node in
14 ** E.g. $(HOME)/WWW/news/1234@cernvax.cern.ch
15 ** $(HOME)/WWW/http/crnvmc/FIND/xx.xxx.xx
18 extern char * HTLocalName(const char * name);
20 extern char * HTLocalName();
23 /* Make a WWW name from a full local path name
26 extern char * WWW_nameOfFile PARAMS((const char * name));
29 /* Generate the name of a cache file
32 extern char * HTCacheFileName PARAMS((CONST char * name));
35 /* Determine file format from file name
36 ** ------------------------------------
40 extern int HTFileFormat(const char * filename);
42 extern int HTFileFormat();
46 /* Determine write access to a file
47 // --------------------------------
50 // return value YES if file can be accessed and can be written to.
52 // Isn't there a quicker way?
56 extern BOOL HTEditable(const char * filename);
58 extern BOOL HTEditable();
62 /* Open a file descriptor for a document
63 ** -------------------------------------
66 ** addr must point to the fully qualified hypertext reference.
69 ** returns <0 Error has occured.
70 ** >=0 Value of file descriptor or socket to be used
72 ** *pFormat Set to the format of the file, if known.
81 HTParentAnchor * anchor