blob: 8d3f4b1c8675064ce946d7c67e4a49aee260e97f [file] [log] [blame]
subrata_modake03fa312009-08-26 06:44:25 +00001#include <stdio.h>
2#include <errno.h>
subrata_modake03fa312009-08-26 06:44:25 +00003
4/* Harness Specific Include Files. */
5#include "test.h"
subrata_modake03fa312009-08-26 06:44:25 +00006#include "linux_syscall_numbers.h"
7#include "config.h"
8
9#if defined HAVE_ASM_LDT_H
yaberauneya335f6502009-10-22 09:25:19 +000010#include <linux/unistd.h>
subrata_modake03fa312009-08-26 06:44:25 +000011#include <asm/ldt.h>
12
13#if defined HAVE_STRUCT_USER_DESC
14typedef struct user_desc thread_area_s;
15#elif defined HAVE_STRUCT_MODIFY_LDT_LDT_S
16typedef struct modify_ldt_ldt_s thread_area_s;
17#else
18typedef struct user_desc {
19 unsigned int entry_number;
20 unsigned long int base_addr;
21 unsigned int limit;
22 unsigned int seg_32bit:1;
23 unsigned int contents:2;
24 unsigned int read_exec_only:1;
25 unsigned int limit_in_pages:1;
26 unsigned int seg_not_present:1;
27 unsigned int useable:1;
28 unsigned int empty:25;
29} thread_area_s;
30#endif /* HAVE_STRUCT_USER_DESC */
31#endif /* HAVE_ASM_LDT_H */