Functions | |
void | GetDosTimeStamp (u_short *dostim, u_short *dosdat) |
Create a DOS timestamp of the current time and date. | |
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. | |
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. | |
void | PhatFilePosRewind (PHATFILE *fcb) |
Set file pointer back to zero. | |
int | PhatFilePosSet (NUTFILE *nfp, u_long pos) |
Move file pointer to a specified position. |
Create a DOS timestamp of the current time and date.
dostim | Receives the time of day part. | |
dosdat | Receives the calendar date part. |
char* GetParentPath | ( | CONST char * | path, | |
CONST char ** | comp | |||
) |
Chop off the last component of a path.
path | Full path. | |
comp | Points to a pointer which will be set to the last component within the full path. |
int IsFixedRootDir | ( | NUTFILE * | ndp | ) |
Test for PHAT12/PHAT16 root directory.
ndp | Handle of an opened file to check. |
int MakePhatName | ( | CONST char * | src, | |
u_char * | dst | |||
) |
Convert filename to a directory entry name.
src | Original name in the format 'name.ext'. | |
dst | Converted name in the format 'name ext'. |
void MakeVisibleName | ( | CONST u_char * | src, | |
char * | dst | |||
) |
Convert a directory entry name to a visible file name.
src | Original name in the format 'name ext'. | |
dst | Converted name in the format 'name.ext'. |
void PhatFilePosRewind | ( | PHATFILE * | fcb | ) |
Set file pointer back to zero.
fcb | Specifies the file control block. |
Move file pointer to a specified position.
Moving beyond the current file size is not supported.
nfp | File descriptor. | |
pos | Requested file position. |