FireBirdLib - Topfield TMS PVR TAP Programming Library
ELFReadELFHeader.c
Go to the documentation of this file.
1
#include <stdlib.h>
2
#include "
ELF.h
"
3
#include "
FBLib_elf.h
"
4
5
bool
ELFReadELFHeader
(
void
)
6
{
7
TRACEENTER
();
8
9
if
(!(
ELFHeader
= TAP_MemAlloc(
sizeof
(
Elf32_Ehdr
))))
10
{
11
TRACEEXIT
();
12
return
FALSE;
13
}
14
15
if
(read(
fTAP
,
ELFHeader
,
sizeof
(
Elf32_Ehdr
)) !=
sizeof
(
Elf32_Ehdr
))
16
{
17
TRACEEXIT
();
18
return
FALSE;
19
}
20
21
TRACEEXIT
();
22
return
TRUE;
23
}
ELFHeader
Elf32_Ehdr * ELFHeader
Definition:
ELFOpenFile.c:6
fTAP
int fTAP
Definition:
ELFOpenFile.c:5
ELFReadELFHeader
bool ELFReadELFHeader(void)
Definition:
ELFReadELFHeader.c:5
ELF.h
FBLib_elf.h
TRACEEXIT
#define TRACEEXIT()
Definition:
libFireBird.h:1244
TRACEENTER
#define TRACEENTER()
Definition:
libFireBird.h:1243
Elf32_Ehdr
Definition:
ELF.h:31
elf
ELFReadELFHeader.c
Generated on Fri Apr 29 2022 13:34:01 for FireBirdLib - Topfield TMS PVR TAP Programming Library by
1.9.3