Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8160997

Solaris: deprecated <pwd.h> and <gid.h> interfaces should be replaced

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b131
    • CPU:
      x86, sparc
    • OS:
      solaris_11, solaris_12

      Description

      From the Solaris getpwnam(3C) manpage:

             Solaris 2.4 and earlier releases provided definitions of the getpw-
             nam_r() and getpwuid_r() functions as specified in POSIX.1c Draft 6.
             The final POSIX.1c standard changed the interface for these functions.
             Support for the Draft 6 interface is provided for compatibility only
             and might not be supported in future releases. New applications and
             libraries should use the standard-conforming interface.

      The getgrnam(3C) manpage contains a similar section.

      The easiest way to use the standard-conforming interfaces is to #define _POSIX_PTHREAD_SEMANTICS before #including <pwd.h> or <gid.h>

        Attachments

          Activity

            People

            Assignee:
            alanbur Alan Burlison
            Reporter:
            alanbur Alan Burlison
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: