1 /* This is an example import file, showing how to import the
2 * Linux task_struct structure from header files.
4 * Use: bitmatch-import-c task_struct.c > task_struct.ml
6 * Tip: Add the --debug flag to that command line to see what's going on.
9 /* Any defines, etc. necessary to get the include to work. */
12 #define CONFIG_PAGE_OFFSETUL 0xc0000000 /* XXX? */
13 #define THREAD_SIZE 4096 /* XXX? */
15 /* Include files necessary to get the structure(s) and constant(s) we're
18 * Note in this case glibc strips the useful structures out of the
19 * so-called "kernel headers" that it supplies, so instead I have
20 * a local copy of the real headers from a version of Linux.
22 #include "linux/sched.h"
24 /* This tells the importer program what structures and constants to import. */
25 typedef struct task_struct BITMATCH_IMPORT(task_struct);