MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / elf_file_open

Function elf_file_open

components/lwp/lwp_elf.c:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187static int elf_file_open(const char *filename)
188{
189 int fd = -1;
190
191 fd = open(filename, O_BINARY | O_RDONLY, 0);
192 if (fd < 0)
193 {
194 LOG_E("%s : elf file [%s] open failed!", __func__, filename);
195 }
196
197 return fd;
198}
199
200static int elf_file_close(int fd)
201{

Callers 1

elf_load_ehdrFunction · 0.85

Calls 1

openFunction · 0.50

Tested by

no test coverage detected