BPXYMSGH — Map the message header

BPXYMSGH is used by the sendmsg and recvmsg syscalls. AMODE 64 callers use BPXYMSGH — Map the message header.

                                                      
            BPXYMSGH   ,                                                        
** BPXYMSGH: MSGH system call structure                                         
**  Used By: SendMsg / RecvMsg                                                  
MSGH                 DSECT ,                                                    
MSGHBEGIN            DS    0D                                                   
* ------------- 32-Bit Version                                                  
MSGHNAMEPTR          DS    A(0)   Pointer to a structure that contains          
*                                  the recipient's address.                     
MSGHNAMELEN          DS    F'0'   Buffer length.                                
MSGHIOVPTR           DS    A(0)   Pointer to an array of IOVEC buffers.         
MSGHIOVNUM           DS    F'0'   Number of elements in IOVEC array.            
MSGHCONTROLPTR       DS    0AL4   Pointer to ancillary data buffer              
MSGHACCRIGHTSPTR     DS    A(0)   Pointer to access rights buffer.              
MSGHCONTROLLEN       DS    0FL4   Length of ancillary data buffer               
MSGHACCRIGHTSLEN     DS    F'0'   Access rights buffer length.                  
MSGHFLAGS            DS    F'0'   Output flags on received message              
*                                                                               
*   Constants                                                                   
*                                                                               
MSGH#LENGTH          EQU   *-MSGH   Length of MsgH                              
*                                                                               
CMSGPTR              DS    A(0)   CMsg pointer                                  
*                                                                               
CMSGHDR              DSECT ,                                                    
CMSGLEN              DS    F'0'   Length, including header                      
CMSGLEVEL            DS    F'0'   Level                                         
CMSGTYPE             DS    F'0'   Type                                          
CMSGDATA             DS    0C     Data                                          
*                                                                               
*   Constants                                                                   
*                                                                               
SCM_RIGHTS           EQU   1        Access Rights                               
SCM_SECINFO          EQU   16386    Security Information                        
*                                                                               
** BPXYMSGH End