diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-13 00:33:39 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1998-09-13 00:33:39 +0000 |
commit | 78863f3fe96fd2bce66b8553d4e35526a77d6515 (patch) | |
tree | f22534e570a104730a9a376daee5150f2417a556 /ace/OS.i | |
parent | 8f646cddddbc81f4c7711803accb4a5d56f62c87 (diff) | |
download | ATCD-78863f3fe96fd2bce66b8553d4e35526a77d6515.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/OS.i')
-rw-r--r-- | ace/OS.i | 38 |
1 files changed, 38 insertions, 0 deletions
@@ -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) |