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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: 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>

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

                Created:
                Updated:
                Resolved: