* * $Log: phatutil.c,v $ * Revision 1.5 2006/10/08 16:48:09 haraldkipp * Documentation fixed * * Revision 1.4 2006/06/18 16:39:46 haraldkipp * File modification date changed from GMT to local time for Windows * compatibility. * No need to set errno after malloc failed. * Support for long filenames (VFAT) added. * Fixed positioning bug, which caused several problems like limiting * directories to one cluster. * * Revision 1.3 2006/03/02 19:59:56 haraldkipp * ICCARM insists on a (void *) typecast for the second parameter of memcpy(). * * Revision 1.2 2006/02/23 15:45:22 haraldkipp * PHAT file system now supports configurable number of sector buffers. * This dramatically increased write rates of no-name cards. * AVR compile errors corrected. * * Revision 1.1 2006/01/05 16:31:50 haraldkipp * First check-in. * * *
Functions | |
void | GetDosTimeStamp (u_short *dostim, u_short *dosdat) |
Create a DOS timestamp of the current time and date. | |
int | MakePhatName (CONST char *src, u_char *dst) |
Convert filename to a directory entry name. | |
void | MakeVisibleName (CONST u_char *src, char *dst) |
Convert a directory entry name to a visible file name. | |
char * | GetParentPath (CONST char *path, CONST char **comp) |
Chop off the last component of a path. | |
int | IsFixedRootDir (NUTFILE *ndp) |
Test for PHAT12/PHAT16 root directory. | |
void | PhatFilePosRewind (PHATFILE *fcb) |
Set file pointer back to zero. | |
int | PhatFilePosSet (NUTFILE *nfp, u_long pos) |
Move file pointer to a specified position. |