Skip to main content

PM84041: FGETS DOES NOT RETURN A NULL AFTER A SPORADIC EIO ERROR ENCOUNTERED WHEN READING FROM AN NFS FILE


Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as unreproducible in next release.

Error description

  • When reading from an NFS file, the application sometimes
    encounters the following message:
    
     EDC5122I Input/output error. (errno2=0x6E288872)
    
    EDC5122I is equivalent to errno x'7A' EIO reporting an I/O
    error occurred and fgets() returns the partial data in the
    buffer instead of returning a NULL.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: C/C++ applications that call the fgets()     *
    *                 library function.                            *
    ****************************************************************
    * PROBLEM DESCRIPTION: According to the Single UNIX            *
    *                      Specification, the fgets() function     *
    *                      should return NULL if an I/O error is   *
    *                      encountered during a read.  However,    *
    *                      the z/OS XL C/C++ implementation of     *
    *                      fgets() is returning a non-NULL value   *
    *                      when some data is read into the user    *
    *                      supplied buffer as the result of a      *
    *                      partial read prior to the occurrence    *
    *                      of an I/O error.                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    See Problem Description.
    

Problem conclusion

Temporary fix

Comments

  • This APAR is being closed UR1 with concurrence from the
    submitting customer. This means that a fix to this APAR is
    expected to be delivered from IBM in a release (if any) to be
    available within the next 36 months.
    

APAR Information

  • APAR number

    PM84041

  • Reported component name

    LE C LIBRARY

  • Reported component ID

    568819805

  • Reported release

    770

  • Status

    CLOSED UR1

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-03-04

  • Closed date

    2013-04-24

  • Last modified date

    2013-04-24

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

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

Fix information

  • Fixed component name

    LE C LIBRARY

  • Fixed component ID

    568819805

Applicable component levels

  • R770 PSN

       UP

  • R780 PSN

       UP

  • R790 PSN

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

z/OS XL C/C++

Runtime


Software version:
770


Operating system(s):
MVS, z/OS


Reference #:
PM84041


Modified date:
2013-04-24

Translate my page

Content navigation