symbol-minimal.c (dd0a11815a339d6deeea8357574f8126a8404c92) symbol-minimal.c (779e24e2c777bffa9a6e3d5e821859e67008c98b)
1#include "symbol.h"
2
3#include <stdio.h>
4#include <fcntl.h>
5#include <string.h>
6#include <byteswap.h>
7#include <sys/stat.h>
8

--- 239 unchanged lines hidden (view full) ---

248 int fd = open(name, O_RDONLY);
249 if (fd < 0)
250 return -1;
251
252 ss->name = strdup(name);
253 if (!ss->name)
254 goto out_close;
255
1#include "symbol.h"
2
3#include <stdio.h>
4#include <fcntl.h>
5#include <string.h>
6#include <byteswap.h>
7#include <sys/stat.h>
8

--- 239 unchanged lines hidden (view full) ---

248 int fd = open(name, O_RDONLY);
249 if (fd < 0)
250 return -1;
251
252 ss->name = strdup(name);
253 if (!ss->name)
254 goto out_close;
255
256 ss->fd = fd;
256 ss->type = type;
257
258 return 0;
259out_close:
260 close(fd);
261 return -1;
262}
263

--- 39 unchanged lines hidden (view full) ---

303
304int file__read_maps(int fd __maybe_unused, bool exe __maybe_unused,
305 mapfn_t mapfn __maybe_unused, void *data __maybe_unused,
306 bool *is_64_bit __maybe_unused)
307{
308 return -1;
309}
310
257 ss->type = type;
258
259 return 0;
260out_close:
261 close(fd);
262 return -1;
263}
264

--- 39 unchanged lines hidden (view full) ---

304
305int file__read_maps(int fd __maybe_unused, bool exe __maybe_unused,
306 mapfn_t mapfn __maybe_unused, void *data __maybe_unused,
307 bool *is_64_bit __maybe_unused)
308{
309 return -1;
310}
311
312int kcore_extract__create(struct kcore_extract *kce __maybe_unused)
313{
314 return -1;
315}
316
317void kcore_extract__delete(struct kcore_extract *kce __maybe_unused)
318{
319}
320
321int kcore_copy(const char *from_dir __maybe_unused,
322 const char *to_dir __maybe_unused)
323{
324 return -1;
325}
326
311void symbol__elf_init(void)
312{
313}
327void symbol__elf_init(void)
328{
329}