From ccccd4f670a6e76c4bce4ae87f2d80deee09033d Mon Sep 17 00:00:00 2001 From: schmidt Date: Sat, 23 Jun 2001 11:26:09 +0000 Subject: ChangeLogTag:Sat Jun 23 06:19:39 2001 Douglas C. Schmidt --- ChangeLog | 6 ++++++ ChangeLogs/ChangeLog-02a | 6 ++++++ ChangeLogs/ChangeLog-03a | 6 ++++++ THANKS | 1 + ace/OS.i | 7 ++++++- 5 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0b214a57522..24bf6fc4494 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sat Jun 23 06:19:39 2001 Douglas C. Schmidt + + * ace/OS.i: Fixed the getpwdnam_r() wrapper so that it conforms to + POSIX on platforms that support POSIX. Thanks to + Craig L. Ching for reporting this. + Fri Jun 22 18:35:46 2001 Balachandran Natarajan * ace/OS_TLI.inl: Fixed a compile error in win 32. diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 0b214a57522..24bf6fc4494 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,3 +1,9 @@ +Sat Jun 23 06:19:39 2001 Douglas C. Schmidt + + * ace/OS.i: Fixed the getpwdnam_r() wrapper so that it conforms to + POSIX on platforms that support POSIX. Thanks to + Craig L. Ching for reporting this. + Fri Jun 22 18:35:46 2001 Balachandran Natarajan * ace/OS_TLI.inl: Fixed a compile error in win 32. diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 0b214a57522..24bf6fc4494 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,9 @@ +Sat Jun 23 06:19:39 2001 Douglas C. Schmidt + + * ace/OS.i: Fixed the getpwdnam_r() wrapper so that it conforms to + POSIX on platforms that support POSIX. Thanks to + Craig L. Ching for reporting this. + Fri Jun 22 18:35:46 2001 Balachandran Natarajan * ace/OS_TLI.inl: Fixed a compile error in win 32. diff --git a/THANKS b/THANKS index ec6e7ad2973..29993ea68ae 100644 --- a/THANKS +++ b/THANKS @@ -1269,6 +1269,7 @@ Srikanth Vedire J Shane Culpepper Benn Howard Steffen Hieber +Craig L. Ching I would particularly like to thank Paul Stephenson, who worked with me at Ericsson in the early 1990's. Paul devised the recursive Makefile diff --git a/ace/OS.i b/ace/OS.i index d1b70d5578e..60511620ae3 100644 --- a/ace/OS.i +++ b/ace/OS.i @@ -6827,11 +6827,16 @@ ACE_INLINE struct passwd * ACE_OS::getpwnam_r (const char *name, struct passwd *pwent, char *buffer, int buflen) { -#if defined (ACE_HAS_PACE) +#if defined (ACE_HAS_PACE) || defined (_POSIX_C_SOURCE) struct passwd *result; int status; +# if defined (ACE_HAS_PACE) status = ::pace_getpwnam_r (name, pwent, buffer, buflen, &result); +# else + status = ::getpwnam_r (name, pwent, buffer, buflen, &result); +# endif /* ACE_HAS_PACE */ + if (status != 0) { errno = status; -- cgit v1.2.1