This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / um / os-Linux / util / mk_user_constants.c
1 #include <stdio.h>
2 #include <user-offsets.h>
3
4 int main(int argc, char **argv)
5 {
6   printf("/*\n");
7   printf(" * Generated by mk_user_constants\n");
8   printf(" */\n");
9   printf("\n");
10   printf("#ifndef __UM_USER_CONSTANTS_H\n");
11   printf("#define __UM_USER_CONSTANTS_H\n");
12   printf("\n");
13   /* I'd like to use FRAME_SIZE from ptrace.h here, but that's wrong on
14    * x86_64 (216 vs 168 bytes).  user_regs_struct is the correct size on
15    * both x86_64 and i386.
16    */
17   printf("#define UM_FRAME_SIZE %d\n", __UM_FRAME_SIZE);
18
19   printf("\n");
20   printf("#endif\n");
21
22   return(0);
23 }