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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • hotspot
    • b131
    • x86, sparc
    • solaris_11, solaris_12

        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>

              alanbur Alan Burlison
              alanbur Alan Burlison
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: