[Mono-bugs] [Bug 72818][Nor] Changed - getpwuid_r, getpwnam_r, getgrgid_r, getgrnam_r expects only 4 arguments

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 24 Feb 2005 12:44:13 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jonpryor@vt.edu.

http://bugzilla.ximian.com/show_bug.cgi?id=72818

--- shadow/72818	2005-02-24 12:25:33.000000000 -0500
+++ shadow/72818.tmp.8511	2005-02-24 12:44:13.000000000 -0500
@@ -96,6 +96,19 @@
 attach that.
 
 ------- Additional Comments From jonpryor@vt.edu  2005-02-24 12:25 -------
 Created an attachment (id=14386)
 configure.in patch to check for get*_r variants.
 
+
+------- Additional Comments From jonpryor@vt.edu  2005-02-24 12:44 -------
+Solaris supports the POSIX variants if you define
+_POSIX_PTHREAD_SEMANTICS: from one of the man pages:
+
+POSIX
+     cc [ flag...] file... -D_POSIX_PTHREAD_SEMANTICS [ library... ]
+ 
+     int getpwnam_r(const char *name, struct  passwd  *pwd,  char
+     *buffer, size_t bufsize, struct passwd **result);
+
+This implies we can continue to use exiting code by adding
+_POSIX_PTHREAD_SEMANTICS to <config.h> or elsewhere.