FireBirdLib - Topfield TMS PVR TAP Programming Library
ELFOpenFile.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include "
ELF.h
"
3
#include "
FBLib_elf.h
"
4
5
int
fTAP
= 0;
6
Elf32_Ehdr
*
ELFHeader
= NULL;
7
Elf32_Shdr
*
SectionHeaders
= NULL;
8
char
*
shstrtab
= NULL;
9
char
*
strtab
= NULL;
10
Elf32_Sym
*
symtab
= NULL;
11
12
bool
ELFOpenFile
(
const
char
*FileName)
13
{
14
TRACEENTER
();
15
16
bool
ret = FALSE;
17
char
AbsFileName[
FBLIB_DIR_SIZE
];
18
19
if
(FileName && *FileName)
20
{
21
ConvertPathType
(FileName, AbsFileName,
PF_FullLinuxPath
);
22
fTAP
= open(AbsFileName, O_RDONLY);
23
ret = (
fTAP
>= 0);
24
}
25
26
TRACEEXIT
();
27
return
ret;
28
}
ConvertPathType
void ConvertPathType(const char *Source, char *Dest, tPathFormat DestFormat)
Definition:
ConvertPathType.c:4
symtab
Elf32_Sym * symtab
Definition:
ELFOpenFile.c:10
SectionHeaders
Elf32_Shdr * SectionHeaders
Definition:
ELFOpenFile.c:7
ELFOpenFile
bool ELFOpenFile(const char *FileName)
Definition:
ELFOpenFile.c:12
strtab
char * strtab
Definition:
ELFOpenFile.c:9
shstrtab
char * shstrtab
Definition:
ELFOpenFile.c:8
ELFHeader
Elf32_Ehdr * ELFHeader
Definition:
ELFOpenFile.c:6
fTAP
int fTAP
Definition:
ELFOpenFile.c:5
ELF.h
FBLib_elf.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
Elf32_Ehdr
Definition:
ELF.h:31
Elf32_Shdr
Definition:
ELF.h:49
Elf32_Sym
Definition:
ELF.h:75
elf
ELFOpenFile.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3