/**/ /***************************************************************************/ /** **/ /** © Copyright 2010, Hewlett-Packard Development Company, L.P. **/ /** **/ /** Confidential computer software. Valid license from HP and/or **/ /** its subsidiaries required for possession, use, or copying. **/ /** **/ /** Consistent with FAR 12.211 and 12.212, Commercial Computer Software, **/ /** Computer Software Documentation, and Technical Data for Commercial **/ /** Items are licensed to the U.S. Government under vendor's standard **/ /** commercial license. **/ /** **/ /** Neither HP nor any of its subsidiaries shall be liable for technical **/ /** or editorial errors or omissions contained herein. The information **/ /** in this document is provided "as is" without warranty of any kind and **/ /** is subject to change without notice. The warranties for HP products **/ /** are set forth in the express limited warranty statements accompanying **/ /** such products. Nothing herein should be construed as constituting an **/ /** additional warranty. **/ /** **/ /***************************************************************************/ /********************************************************************************************************************************/ /* Created: 30-Mar-2010 17:27:09 by OpenVMS SDL EV3-3 */ /* Source: 25-FEB-2008 18:27:21 $1$DGA7274:[LIB_H.SRC]CTLP1FLAGSDEF.SDL;1 */ /********************************************************************************************************************************/ /*** MODULE $CTLP1FLAGSDEF ***/ #ifndef __CTLP1FLAGSDEF_LOADED #define __CTLP1FLAGSDEF_LOADED 1 #pragma __nostandard /* This file uses non-ANSI-Standard features */ #pragma __member_alignment __save #pragma __nomember_alignment #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __save /* Save the previously-defined required ptr size */ #pragma __required_pointer_size __short /* And set ptr size default to 32-bit pointers */ #endif #ifdef __cplusplus extern "C" { #define __unknown_params ... #define __optional_params ... #else #define __unknown_params #define __optional_params ... #endif #ifndef __struct #if !defined(__VAXC) #define __struct struct #else #define __struct variant_struct #endif #endif #ifndef __union #if !defined(__VAXC) #define __union union #else #define __union variant_union #endif #endif /* + */ /* CTL P1 flags */ /* */ /* These are flags in the CTL p1 region to define miscellaneous things. */ /* There are also some definitions relating to the instruction emulator here. */ /* - */ /* */ /* These reside in the cell CTL$GQ_MISC_P1_FLAGS, defined in SHELL.MAR. */ /* The byte alignment fillers are present for historical reasons. When */ /* the adjacent fields were added, $GETJPI was not capable of fetching */ /* bitfields in CTL structures, so these fields were byte aligned and */ /* fetched as byte items. Of course, this practice couldn't last and we */ /* ran out of available bits in the quadword. $GETJPI has been fixed and */ /* the space in the fillers is available for use. The fillers remain so */ /* that existing bits do not move. */ /* */ #define CTLP1FLAGS$M_GSD_CLEAN 0x1 #define CTLP1FLAGS$M_IPC_CLEAN 0x2 #define CTLP1FLAGS$M_PSX_PML 0x4 #define CTLP1FLAGS$M_MKTHREADS 0x8 #define CTLP1FLAGS$M_UPCALLS 0x10 #define CTLP1FLAGS$M_PTHREAD 0x20 #define CTLP1FLAGS$M_MEDDLE_ENABLE 0x40 #define CTLP1FLAGS$M_MEDDLE 0x80 #define CTLP1FLAGS$M_PARSE_STYLE_PERM 0x700 #define CTLP1FLAGS$M_SRCH_SYMLINK_PERM 0x1800 #define CTLP1FLAGS$M_PARSE_STYLE_IMAGE 0x70000 #define CTLP1FLAGS$M_SRCH_SYMLINK_TEMP 0x180000 #define CTLP1FLAGS$M_CASE_LOOKUP_PERM 0x7000000 #define CTLP1FLAGS$M_CASE_LOOKUP_IMAGE 0x700000000 #define CTLP1FLAGS$M_UNITS 0x10000000000 #define CTLP1FLAGS$M_TOKEN 0x1000000000000 #define CTLP1FLAGS$S_CTLP1DEF 8 /* Old size name - synonym */ typedef struct _ctlp1 { unsigned ctlp1flags$v_gsd_clean : 1; /* GSD clean-up is in progress */ unsigned ctlp1flags$v_ipc_clean : 1; /* $IPC association clean-up is in progress */ unsigned ctlp1flags$v_psx_pml : 1; /* POSIX user stack locked in working set */ unsigned ctlp1flags$v_mkthreads : 1; /* Multiple kernel threads enabled */ unsigned ctlp1flags$v_upcalls : 1; /* Upcalls enabled */ unsigned ctlp1flags$v_pthread : 1; /* PTHREAD$RTL has been image activated */ unsigned ctlp1flags$v_meddle_enable : 1; /* Record fact of process logical name & symbol alterations */ unsigned ctlp1flags$v_meddle : 1; /* Process logical names or symbols have been altered */ unsigned ctlp1flags$v_parse_style_perm : 3; /* Process-permanent parse_style */ unsigned ctlp1flags$v_srch_symlink_perm : 2; /* Process-permanent symlink search mode */ unsigned ctlp1flags$v_filler_2 : 3; /* Byte align for historical reasons */ unsigned ctlp1flags$v_parse_style_image : 3; /* Life-of-image parse_style */ unsigned ctlp1flags$v_srch_symlink_temp : 2; /* Life-of-image symlink search mode */ unsigned ctlp1flags$v_filler_3 : 3; /* Byte align for historical reasons */ unsigned ctlp1flags$v_case_lookup_perm : 3; /* Process-permanent case_lookup */ unsigned ctlp1flags$v_filler_4 : 5; /* Byte align for historical reasons */ unsigned ctlp1flags$v_case_lookup_image : 3; /* Life-of-image case_lookup */ unsigned ctlp1flags$v_filler_5 : 5; /* Byte align for historical reasons */ unsigned ctlp1flags$v_units : 1; /* Use bytes or blocks */ unsigned ctlp1flags$v_filler_6 : 7; /* Byte align for historical reasons */ unsigned ctlp1flags$v_token : 1; /* Use small or large tokens */ unsigned ctlp1flags$v_filler_7 : 15; /* Available space */ } CTLP1; /* */ /* The following are the flags that reside in CTL$GQ_EMULATOR_FLAGS */ /* */ #define CTLEMFLAGS$M_REINIT 0x1 #define CTLEMFLAGS$M_GET_SIG_COUNT 0x2 #define CTLEMFLAGS$M_NO_NEW_IMAGE_RESET 0x4 #define CTLEMFLAGS$M_SIGNAL_INNER_MODE 0x8 #define CTLEMFLAGS$M_NO_MASK_INIT 0x10 #define CTLEMFLAGS$M_NO_SIGNAL_MAX_INIT 0x20 #define CTLEMFLAGS$M_NO_PC_RING_INIT 0x40 #define CTLEMFLAGS$M_NO_COUNT_INIT 0x80 #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _ctlemflags { #pragma __nomember_alignment unsigned ctlemflags$v_reinit : 1; /* A new image started: reinitialize P1 cells */ unsigned ctlemflags$v_get_sig_count : 1; /* Get the sig count from EMULATE_DATA */ unsigned ctlemflags$v_no_new_image_reset : 1; /* Inhibit initialization */ unsigned ctlemflags$v_signal_inner_mode : 1; /* Signal SS$_EMULATED even for inner mode emulation */ /* ...(you need a condition handler else SSERVEXC bugcheck) */ unsigned ctlemflags$v_no_mask_init : 1; /* Run init in emulator, but don't init these fields... */ unsigned ctlemflags$v_no_signal_max_init : 1; unsigned ctlemflags$v_no_pc_ring_init : 1; unsigned ctlemflags$v_no_count_init : 1; /* ...End of "init but" bits */ char ctlemflags$b_fill_0_ [7]; } CTLEMFLAGS; /* */ /* The following are the flags that reside in the CTL$GQ_EXCEPTION_FLAGS */ /* */ #define CTLEXCFLAGS$M_SIGNAL_ACTIVE 0x1 #if !defined(__NOBASEALIGN_SUPPORT) && !defined(__cplusplus) /* If using pre DECC V4.0 or C++ */ #pragma __nomember_alignment __quadword #else #pragma __nomember_alignment #endif typedef struct _ctlexcflags { #pragma __nomember_alignment unsigned ctlexcflags$v_signal_active : 1; /* Signal processing is in */ /* progress */ unsigned ctlexcflags$v_fill_1__1 : 32; unsigned ctlexcflags$v_fill_1__2 : 31; } CTLEXCFLAGS; /* */ /* These constants relate to CTL$GQ_EMULATE_PC_RING */ /* */ #define CTL$C_EMULATE_RING_SIZE 8 #define CTL$M_EMULATE_RING_SIZE 7 /* Mask for valid bits to index ring */ #pragma __member_alignment __restore #ifdef __INITIAL_POINTER_SIZE /* Defined whenever ptr size pragmas supported */ #pragma __required_pointer_size __restore /* Restore the previously-defined required ptr size */ #endif #ifdef __cplusplus } #endif #pragma __standard #endif /* __CTLP1FLAGSDEF_LOADED */