FireBirdLib - Topfield TMS PVR TAP Programming Library
HDD_GetFileTimeByFileName.c
Go to the documentation of this file.
1
#include <sys/stat.h>
2
#include "
FBLib_hdd.h
"
3
#include "
libFireBird.h
"
4
5
dword
HDD_GetFileTimeByFileName
(
const
char
*FileName)
6
{
7
TRACEENTER
();
8
9
tstat64
statbuf;
10
dword ret;
11
char
AbsFileName[
FBLIB_DIR_SIZE
];
12
13
ret = 0;
14
if
(FileName && *FileName)
15
{
16
ConvertPathType
(FileName, AbsFileName,
PF_FullLinuxPath
);
17
if
(*AbsFileName && !
lstat64
(AbsFileName, &statbuf))
18
ret = statbuf.
st_mtime
;
19
}
20
21
TRACEEXIT
();
22
return
ret;
23
}
ConvertPathType
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
Definition:
ConvertPathType.c:4
FBLib_hdd.h
lstat64
int lstat64(__const char *__restrict __file, tstat64 *__restrict __buf) __THROW
HDD_GetFileTimeByFileName
dword HDD_GetFileTimeByFileName(const char *FileName)
Definition:
HDD_GetFileTimeByFileName.c:5
libFireBird.h
FBLIB_DIR_SIZE
#define FBLIB_DIR_SIZE
Definition:
libFireBird.h:1871
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
PF_FullLinuxPath
@ PF_FullLinuxPath
Definition:
libFireBird.h:1926
tstat64
Definition:
FBLib_hdd.h:73
tstat64::st_mtime
__time_t st_mtime
Definition:
FBLib_hdd.h:86
hdd
HDD_GetFileTimeByFileName.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3