Annotation of hatari/src/includes/file.h, revision 1.1.1.19

1.1       root        1: /*
1.1.1.5   root        2:   Hatari - file.h
                      3: 
1.1.1.15  root        4:   This file is distributed under the GNU General Public License, version 2
                      5:   or at your option any later version. Read the file gpl.txt for details.
1.1       root        6: */
                      7: 
1.1.1.3   root        8: #ifndef HATARI_FILE_H
                      9: #define HATARI_FILE_H
                     10: 
1.1.1.16  root       11: #include "config.h"
1.1.1.18  root       12: #include <sys/types.h>         /* Needed for off_t */
1.1.1.16  root       13: 
                     14: #ifndef HAVE_FSEEKO
                     15: #define fseeko fseek
                     16: #endif
1.1.1.18  root       17: #ifndef HAVE_FTELLO
                     18: #define ftello ftell
                     19: #endif
1.1.1.16  root       20: 
1.1       root       21: extern void File_CleanFileName(char *pszFileName);
                     22: extern void File_AddSlashToEndFileName(char *pszFileName);
1.1.1.11  root       23: extern bool File_DoesFileExtensionMatch(const char *pszFileName, const char *pszExtension);
1.1.1.16  root       24: extern bool File_ChangeFileExtension(const char *Filename_old, const char *Extension_old , char *Filename_new , const char *Extension_new);
1.1.1.7   root       25: extern const char *File_RemoveFileNameDrive(const char *pszFileName);
1.1.1.11  root       26: extern bool File_DoesFileNameEndWithSlash(char *pszFileName);
1.1.1.10  root       27: extern Uint8 *File_Read(const char *pszFileName, long *pFileSize, const char * const ppszExts[]);
1.1.1.11  root       28: extern bool File_Save(const char *pszFileName, const Uint8 *pAddress, size_t Size, bool bQueryOverwrite);
1.1.1.13  root       29: extern off_t File_Length(const char *pszFileName);
1.1.1.11  root       30: extern bool File_Exists(const char *pszFileName);
1.1.1.14  root       31: extern bool File_DirExists(const char *psDirName);
1.1.1.11  root       32: extern bool File_QueryOverwrite(const char *pszFileName);
1.1.1.10  root       33: extern char* File_FindPossibleExtFileName(const char *pszFileName,const char * const ppszExts[]);
                     34: extern void File_SplitPath(const char *pSrcFileName, char *pDir, char *pName, char *Ext);
                     35: extern char* File_MakePath(const char *pDir, const char *pName, const char *pExt);
                     36: extern void File_ShrinkName(char *pDestFileName, const char *pSrcFileName, int maxlen);
                     37: extern FILE *File_Open(const char *path, const char *mode);
                     38: extern FILE *File_Close(FILE *fp);
1.1.1.17  root       39: extern bool File_Lock(FILE *fp);
                     40: extern void File_UnLock(FILE *fp);
1.1.1.12  root       41: extern bool File_InputAvailable(FILE *fp);
1.1.1.10  root       42: extern void File_MakeAbsoluteSpecialName(char *pszFileName);
1.1.1.5   root       43: extern void File_MakeAbsoluteName(char *pszFileName);
1.1.1.7   root       44: extern void File_MakeValidPathName(char *pPathName);
1.1.1.10  root       45: extern void File_PathShorten(char *path, int dirs);
                     46: extern void File_HandleDotDirs(char *path);
1.1.1.19! root       47: #if defined(WIN32)
        !            48: extern char* WinTmpFile(void);
        !            49: #endif
1.1.1.3   root       50: 
                     51: #endif /* HATARI_FILE_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.