summaryrefslogtreecommitdiff
path: root/ace/OS.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-13 00:33:39 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-09-13 00:33:39 +0000
commit78863f3fe96fd2bce66b8553d4e35526a77d6515 (patch)
treef22534e570a104730a9a376daee5150f2417a556 /ace/OS.i
parent8f646cddddbc81f4c7711803accb4a5d56f62c87 (diff)
downloadATCD-78863f3fe96fd2bce66b8553d4e35526a77d6515.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/OS.i')
-rw-r--r--ace/OS.i38
1 files changed, 38 insertions, 0 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 35751ea90fb..e711153bba8 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -4837,6 +4837,44 @@ ACE_OS::getpwnam (const char *name)
#endif /* ! ACE_LACKS_PWD_FUNCTIONS */
}
+ACE_INLINE void
+ACE_OS::setpwent (void)
+{
+#if !defined (ACE_LACKS_PWD_FUNCTIONS)
+# if !defined (ACE_WIN32)
+ ::setpwent ();
+# else
+# endif /* ACE_WIN32 */
+#else
+#endif /* ! ACE_LACKS_PWD_FUNCTIONS */
+}
+
+ACE_INLINE void
+ACE_OS::endpwent (void)
+{
+#if !defined (ACE_LACKS_PWD_FUNCTIONS)
+# if !defined (ACE_WIN32)
+ ::endpwent ();
+# else
+# endif /* ACE_WIN32 */
+#else
+#endif /* ! ACE_LACKS_PWD_FUNCTIONS */
+}
+
+ACE_INLINE struct passwd *
+ACE_OS::getpwent (void)
+{
+#if !defined (ACE_LACKS_PWD_FUNCTIONS)
+# if !defined (ACE_WIN32)
+ return ::getpwent ();
+# else
+ ACE_NOTSUP_RETURN (0);
+# endif /* ACE_WIN32 */
+#else
+ ACE_NOTSUP_RETURN (0);
+#endif /* ! ACE_LACKS_PWD_FUNCTIONS */
+}
+
ACE_INLINE struct passwd *
ACE_OS::getpwnam_r (const char *name, struct passwd *pwent,
char *buffer, int buflen)