HP 3000 Manuals

Aoptions [ HP C/iX Library Reference Manual ] MPE/iX 5.0 Documentation


HP C/iX Library Reference Manual

Aoptions 

Similar to the fop structure, the aop structure provides access to the
aoptions used in FOPEN. It is defined as:

     struct aop {
         unsigned short reserved:3;      /* reserved for MPE/iX */
         unsigned short copy:1;          /* copy open mode */
         unsigned short no_wait:1;       /* I/O without wait */
         unsigned short multi:2;         /* multi-access mode */
         unsigned short no_buf:1;        /* no buffering */
         unsigned short exclusive:2;     /* exclusive access flag */
         unsigned short locking:1;       /* allow locking */
         unsigned short multirecord:1;   /* multi-record flag */
         unsigned short access:4;        /* mode of access */
     };

Also, a typedef that defines a union type named aoptions is provided:

     typedef union {
         struct aop as;
         unsigned short av;
     } aoptions;

If variable a is declared as being type aoptions, then a.av accesses the
unsigned short version of the aoptions while a.as accesses the structural
definition of the aoptions.



MPE/iX 5.0 Documentation