00001 #ifndef misc_h 00002 #define misc_h 00003 00004 #include"iosbdef.h" 00005 00006 struct iosb { unsigned short iostat; unsigned short iolen; unsigned int device_info; 00007 }; 00008 00009 struct __iosb { unsigned short iostat; unsigned short iolen; unsigned int device_info; 00010 }; 00011 00012 struct item_list_2 { short complen, item_code; 00013 void *compaddr; 00014 }; 00015 00016 struct item_list_3 { short buflen, item_code; 00017 void *bufaddr; 00018 void *retlenaddr; 00019 }; 00020 00021 struct return_values { 00022 void * val1; 00023 void * val2; 00024 void * val3; 00025 void * val4; 00026 }; 00027 00028 struct lock_blk { 00029 unsigned short condition,reserved; 00030 unsigned int lock_id; 00031 }; 00032 00033 #define vms_block_factor(x) (1<<(x-9)) 00034 00035 #define vms_block_factor2(x) (x>>9) 00036 00037 // #define VMS_BLOCK_FACTOR 2 not! this is dangerous! 00038 00039 struct _exh { 00040 long exh_l_flink; 00041 long exh_l_handler; 00042 long exh_l_numargs; 00043 char exh_b_numargs; 00044 char exh_l_mbz[3]; 00045 long exh_l_status_a; 00046 long exh_l_first_arg; 00047 }; 00048 00049 #endif 00050