root/tools/elf2flt/myio.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef __MYIO_H__
   2 #define __MYIO_H__
   3 
   4 #include <stdio.h>
   5 
   6 typedef struct
   7 {
   8     unsigned short  major;
   9     unsigned short  minor;
  10 } _version_t;
  11 
  12 #ifndef O_BINARY
  13 #define O_BINARY 0 //not defined on linux
  14 #endif
  15 
  16 
  17 int b_file_preload(char* filename);
  18 int b_read (void* buf, int count);
  19 int b_seek(long offset);
  20 char* b_get_buf();
  21 
  22 int b_seek_read(long offset, char *buf, int len);
  23 
  24 int load_import(char* importfile);
  25 int find_import_symbol(char* sym);
  26 char* get_import_symbol( unsigned symidx );
  27 
  28 int load_stoplist(char* importfile);
  29 int stoplist_check(char *sym);  //1 - found in stoplist, 0- not found
  30 
  31 extern int FLAG_DUMP_SOURCE;
  32 extern int FLAG_DUMP_SYMBOLS;
  33 extern int FLAG_DUMP_RELOC;
  34 extern int FLAG_DUMP_FLT_HEADERS;
  35 extern int FLAG_DUMP_FLAT;
  36 extern int FLAG_VERBOSE;
  37 extern int FLAG_DUMP_SECTIONS;
  38 extern int FLAG_WARNSYMBOL;
  39 
  40 extern char* filename_elf;
  41 void raise_error();
  42 #define PRINTERR(...) { raise_error(); fprintf(__VA_ARGS__);}
  43 
  44 
  45 #endif /* __MYIO_H__ */

/* [<][>][^][v][top][bottom][index][help] */