IBM Support

IV61091: 64-BIT UNIX OPEN FLAGS APPLIES TO AIX 7100-02

A fix is available

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • open() flags are defined as 64bit values.
    

Local fix

Problem summary

  • some of the open() flags are defined as 64bit values.
    
    The O_NOFOLLOW along with some other open flags is currently
    defined as follows in fcntl.h
    
    
    
     mustfix template continued in the next note
    
        <Note by arunhn (Nagaraj, Arun H.), 2014/08/07 08:57:53,
        seq: 5 rel: 0  action: note> #if defined(_LONG_LONG) &&
    !defined(__64BIT__) #define _FRAW
    0x0000000100000000LL #define _FEFSON
    0x0000000200000000LL #define _FEFSOFF
    0x0000000400000000LL #define _FCIOR
    0x0000000800000000LL #if (_XOPEN_SOURCE >= 700) #define
    _FCLOEXEC       0x0000001000000000LL #define _FNOFOLLOW
    0x0000002000000000LL #define _FTTYINIT
    0x0000004000000000LL #endif #else #define _FRAW
    0x0000000100000000L #define _FEFSON         0x0000000200000000L
    #define _FEFSOFF        0x0000000400000000L #define
    _FCIOR          0x0000000800000000L #if (_XOPEN_SOURCE >= 700)
    #define _FCLOEXEC       0x0000001000000000L #define
    _FNOFOLLOW      0x0000002000000000L #define _FTTYINIT
    0x0000004000000000L #endif #endif  ...  #define FNOFOLLOW
    _FNOFOLLOW #define O_NOFOLLOW FNOFOLLOW
    
    So these are long long values (64bits), they can not hold in a
    int (32bits).
    
    Also open() takes and int as parameter (32bits), as per man
    pages :  Syntax
           #include int open ( Path, OFlag  , Mode ) const char
           *Path; int OFlag; mode_t Mode;
    

Problem conclusion

  • Defined O_NOFOLLOW as 32bit.
    

Temporary fix

Comments

  • 7100-02 - use AIX APAR IV61091
    7100-03 - use AIX APAR IV63784
    

APAR Information

  • APAR number

    IV61091

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2014-06-02

  • Closed date

    2014-08-17

  • Last modified date

    2015-01-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    IV63784 IV63861 U868606

Fix information

  • Fixed component name

    AIX V7.1

  • Fixed component ID

    5765H4000

Applicable component levels

  • R710 PSY U868606

       UP15/01/19 I 1000



Document information

More support for: AIX Enterprise Edition

Software version: 710

Operating system(s): AIX

Reference #: IV61091

Modified date: 21 January 2015