File: moduleops.c

package info (click to toggle)
busybox-cvs 20040623-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,292 kB
  • ctags: 11,454
  • sloc: ansic: 107,671; sh: 3,093; makefile: 1,022; yacc: 575; lex: 366; perl: 252
file content (22 lines) | stat: -rw-r--r-- 506 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* The nasty work of reading 32 and 64-bit modules is in here. */
#include <elf.h>
#include <sys/types.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "depmod.h"
#include "moduleops.h"

#define PERBIT(x) x##32
#define ElfPERBIT(x) Elf32_##x
#define ELFPERBIT(x) ELF32_##x
#include "moduleops_core.c"

#undef PERBIT
#undef ElfPERBIT
#undef ELFPERBIT
#define PERBIT(x) x##64
#define ElfPERBIT(x) Elf64_##x
#define ELFPERBIT(x) ELF64_##x
#include "moduleops_core.c"