IBM Support

IV43100: SETBUFFER()/SETVBUF() IGNORES USER SUPPLIED BUFFER

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as fixed if next.

Error description

  • "Technical Reference: Base Operating System and
    Extensions,
    Volume 2" specifies that in the case a user supplies a
    buffer to the setbuffer()/setvbuf() calls that is not a
    NULL pointer, the buffer supplied by the user will be
    used instead of an automatically created one.  The actual
    behavior of the setbuffer()/setvbuf() call is that it
    uses an automatically created buffer even if the user
    supplies their own.
    
    
    Quoting the documentation:
    
    "If the Buffer parameter is not a null character pointer,
    the array it points to is used for buffering."
    
    and
    
    "The character array Buffer, whose size is determined by
    the Size parameter, is used instead of an automatically
    allocated buffer."
    
    The setbuffer() call appears to be included only for
    BSD compatibility purposes.  The setvbuf() call appears
    to conform to the ANSI C standard, however it's actual
    behavior conflicts with its documented behaviour.
    

Local fix

  • N/A
    

Problem summary

  • SETBUFFER()/SETVBUF() IGNORES USER SUPPLIED BUFFER
    

Problem conclusion

Temporary fix

Comments

  • This APAR is being closed FIN. This means that a solution to
    this APAR is expected to be delivered from IBM in a release
    (if any) to be available within the next 24 months.
    

APAR Information

  • APAR number

    IV43100

  • Reported component name

    AIX V7.1

  • Reported component ID

    5765H4000

  • Reported release

    710

  • Status

    CLOSED FIN

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Submitted date

    2013-05-24

  • Closed date

    2013-07-16

  • Last modified date

    2013-07-23

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

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

    IV45844 IV46022

Fix information

Applicable component levels

  • R710 PSY

       UP

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSMV87","label":"AIX 6.1 Enterprise Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSMVAX","label":"AIX Express Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG11R","label":"AIX 7.1 HIPERS, APARs and Fixes"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"710","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
23 July 2013