BPXYFCTL — Command values and flags for fcntl

                                                      
            BPXYFCTL   ,                                                        
** BPXYFCTL: File descriptor flags and command values                           
**  Used By: FCT                                                                
FCTL                 DSECT ,                                                    
*                                 External file descriptor flags                
FCTLFDFL1            DS    B                                                    
FCTLRS01             EQU   X'80'  Reserved-DO NOT USE THIS BIT!                 
*                                 FCTLFDFLAGS must never be < 0                 
FCTLFDFL2            DS    B      Reserved                                      
FCTLFDFL3            DS    B      Reserved                                      
FCTLFDFL4            DS    B                                                    
FCTLCLOFORK          EQU   X'02'  1= close_on_fork                              
FCTLCLOEXEC          EQU   X'01'  1= close_on_exec                              
*                                 Command value definitions                     
F_CVT                DSECT ,      F_CONTROL_CVT section                         
FCVT_CMD             DS    F      Sub-Command                                   
SETCVTALL            EQU   4      Unicode Services enabled                      
SETCVTAUTOALL        EQU   5      Unicode Services enabled if AUTOCVT(ALL)
SETCVTOFF            EQU   0      Set Off                                       
SETCVTON             EQU   1      Set On                                        
SETAUTOCVTON         EQU   2      Set On if AUTOCVT(YES)                        
QUERYCVT             EQU   3      Query current mode                            
FCVT_PCCSID          DS    H      Program CCSID                                 
FCVT_FCCSID          DS    H      File CCSID                                    
*                                 External file descriptor flags                
F_DUPFD              EQU   0      Duplicate file descriptor                     
F_GETFD              EQU   1      Get file descriptor flags                     
F_SETFD              EQU   2      Set file descriptor flags                     
F_GETFL              EQU   3      Get file status flags                         
F_SETFL              EQU   4      Set file status flags                         
F_GETLK              EQU   5      Get record locking information                
F_SETLK              EQU   6      Set record locking information                
F_SETLKW             EQU   7      Set record locking information -              
*                                 wait if blocked                               
F_DUPFD2             EQU   8      Duplicate file descriptor, option 2           
F_CLOSFD             EQU   9      Close file descriptors                        
F_GETOWN             EQU   10     Get process id or process group               
F_SETOWN             EQU   11     Set process id or process group               
F_SETTAG             EQU   12     Set File Tag                                  
F_CONTROL_CVT        EQU   13     Control conversion                            
FCTL#LENGTH          EQU   *-FCTL Length of this structure                      
** BPXYFCTL End