]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - arch/um/util/mk_task_user.c
Linux-2.6.12-rc2
[mirror_ubuntu-zesty-kernel.git] / arch / um / util / mk_task_user.c
1 #include <stdio.h>
2
3 void print(char *name, char *type, int offset)
4 {
5 printf("#define %s(task) *((%s *) &(((char *) (task))[%d]))\n", name, type,
6 offset);
7 }
8
9 void print_ptr(char *name, char *type, int offset)
10 {
11 printf("#define %s(task) ((%s *) &(((char *) (task))[%d]))\n", name, type,
12 offset);
13 }
14
15 void print_head(void)
16 {
17 printf("/*\n");
18 printf(" * Generated by mk_task\n");
19 printf(" */\n");
20 printf("\n");
21 printf("#ifndef __TASK_H\n");
22 printf("#define __TASK_H\n");
23 printf("\n");
24 }
25
26 void print_tail(void)
27 {
28 printf("\n");
29 printf("#endif\n");
30 }