00001 #ifndef LDT_KEEPER_H 00002 #define LDT_KEEPER_H 00003 00004 #ifdef __cplusplus 00005 extern "C" 00006 { 00007 #endif 00008 00009 typedef struct { 00010 void* fs_seg; 00011 char* prev_struct; 00012 int fd; 00013 } ldt_fs_t; 00014 00015 void Setup_FS_Segment(void); 00016 ldt_fs_t* Setup_LDT_Keeper(void); 00017 void Restore_LDT_Keeper(ldt_fs_t* ldt_fs); 00018 #ifdef __cplusplus 00019 } 00020 #endif 00021 00022 #endif /* LDT_KEEPER_H */