U32 http_finfo (U8 *fname) {
/* Read last modification time of a file. Return time in UTC format. */
FINFO *info;
U32 utc;
info = (FINFO *)alloc_mem (sizeof (FINFO));
info->fileID = 0;
utc = 0;
if (ffind ((const char *)fname, info) == 0) {
/* File found, save creation date in UTC format. */
utc = http_date (&info->time);
}
free_mem ((OS_FRAME *)info);
return (utc);
}
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.