BPXYATT — Map file attributes for chattr and fchattr

                                                      
            BPXYATT    ,                                                        
**  BPXYATT:  File attributes for chattr system call                            
**  Used By:  CHR FCR                                                           
ATT                  DSECT ,                                                    
ATTBEGIN             DS    0D                                                   
*                                                                               
ATTID                DC    C'ATT '  Eye Catcher                                 
ATTVERSION           DC    AL2(ATT#VER)                                         
*                                 Version of this structure                     
ATTRES01             DS    CL2    Reserved                                      
ATTSETFLAGS          DS    0XL4   Flags - which fields to set                   
ATTSETFLAGS1         DS    X      Flag byte 1                                   
ATTMODECHG           EQU   X'80'  1 = Change to the mode indicated              
ATTOWNERCHG          EQU   X'40'  1 = Change to Owner indicated                 
ATTSETGEN            EQU   X'20'  1 = Set General attributes                    
ATTTRUNC             EQU   X'10'  1 = Truncate size                             
ATTATIMECHG          EQU   X'08'  1 = Change the Atime                          
ATTATIMETOD          EQU   X'04'  1 = Change to the Current Time                
ATTMTIMECHG          EQU   X'02'  1 = Change the Mtime                          
ATTMTIMETOD          EQU   X'01'  1 = Change to the Current Time                
ATTSETFLAGS2         DS    X      Flag byte 2                                   
ATTMAAUDIT           EQU   X'80'  1 = Modify auditor audit info                 
ATTMUAUDIT           EQU   X'40'  1 = Modify user audit info                    
ATTCTIMECHG          EQU   X'20'  1 = Change the Ctime                          
ATTCTIMETOD          EQU   X'10'  1 = Change Ctime to the Current               
*                                     Time                                      
ATTREFTIMECHG        EQU   X'08'  1 = Change the RefTime                        
ATTREFTIMETOD        EQU   X'04'  1 = Change RefTime to Current Time            
ATTFILEFMTCHG        EQU   X'02'  1 = Change File Format                        
ATTRES04             EQU   X'01'  Reserved                                      
ATTSETFLAGS3         DS    X      Reserved                                      
ATTRES05             EQU   X'80'  Reserved                                      
ATTCHARSETIDCHG      EQU   X'40'  1 = Change File tag                           
ATTLP64TIMES         EQU   X'20'  1 = Use 64-bit times                          
ATTSECLABELCHG       EQU   X'10'  1 = Set Seclabel                              
ATTSETFLAGS4         DS    X      Reserved                                      
ATTMODE              DS    F      File Mode, mapped by BPXYMODE                 
ATTUID               DS    F      User ID of the owner of the file              
ATTGID               DS    F      Group ID of the Group of the file             
ATTGENMASK           DS    0XL4   Mask to indicate which General                
*                                 attributes bits to modify                     
*                                 --Must match AttGenValue                      
ATTOPAQUEMASK        DS    XL3    Opaque attribute flags - Reserved             
*                                  for ADSTAR use                               
ATTVISIBLEMASK       DS    X      Visible attribute flags                       
ATTNODELFILESMASK    EQU   X'20'  Files should not be deleted                   
ATTSHARELIBMASK      EQU   X'10'  Shared Library                                
ATTNOSHAREASMASK     EQU   X'08'  No shareas flag                               
ATTAPFAUTHMASK       EQU   X'04'  APF authorized flag                           
ATTPROGCTLMASK       EQU   X'02'  Program controlled flag                       
ATTGENVALUE          DS    0XL4   General attribute values                      
*                                 --Must match AttGenMask                       
ATTOPAQUE            DS    XL3    Opaque attribute flags - Reserved             
*                                  for ADSTAR use                               
ATTVISIBLE           DS    X      Visible attribute flags                       
ATTNODELFILES        EQU   X'20'  Files should not be deleted                   
ATTSHARELIB          EQU   X'10'  Shared Library                                
ATTNOSHAREAS         EQU   X'08'  No shareas flag                               
ATTAPFAUTH           EQU   X'04'  APF authorized flag                           
ATTPROGCTL           EQU   X'02'  Program controlled flag                       
ATTSIZE              DS    0D     File Size in bytes, for regular               
*                                 files.  Unspecified, for others               
ATTSIZE_H            DS    F      First word of size                            
ATTSIZE_L            DS    F      Second word of size                           
ATTATIME             DS    F      Time of last access                           
ATTMTIME             DS    F      Time of last data modification                
ATTAUDITORAUDIT      DS    F      Area for auditor audit info                   
ATTUSERAUDIT         DS    F      Area for user audit info                      
ATTCTIME             DS    F      Time of last file status change               
*                                 Time is in seconds since                      
*                                 00:00:00 GMT, Jan. 1, 1970                    
ATTREFTIME           DS    F      Reference time                                
ATTENDVER1           DS    0D     End of Version 1                              
ATTFILEFMT           DS    XL1    File Format                                   
ATTRES02             DS    XL3    Reserved for future                           
ATTFILETAG           DS    F      File tag (see BPXYSTAT)                       
ATTRES03             DS    CL8    Reserved for future                           
ATTENDVER2           DS    0D     End of Version 2                              
*                                                                               
ATTATIME64           DS    D      Access Time                                   
ATTMTIME64           DS    D      Data Mod Time                                 
ATTCTIME64           DS    D      Medadata Change Time                          
ATTREFTIME64         DS    D      Reference Time                                
ATTSECLABEL          DS    CL8    Security Label                                
ATTVER3RES02         DS    CL8    Reserved for R6                               
ATTENDVER3           DS    0D     End of Version 3                              
*                                                                               
*   Constants                                                                   
*                                                                               
ATT#VER              EQU   ATT#VER03 Current version                            
ATT#VER01            EQU   1         Version 1 of this structure                
ATT#VER02            EQU   2         Version 2 of this structure                
ATT#VER03            EQU   3         Version 3 of this structure                
ATT#LENGTH           EQU   *-ATTBEGIN                                  X        
                                     Length of ATT                              
ATT#VER1LEN          EQU   ATTENDVER1-ATTBEGIN                         X        
                                     Length of Version 1 ATT                    
ATT#VER2LEN          EQU   ATTENDVER2-ATTBEGIN                         X        
                                     Length of Version 2 ATT                    
ATT#VER3LEN          EQU   ATTENDVER3-ATTBEGIN                         X        
                                     Length of Version 3 ATT                    
** BPXYATT  End