2 #include "ace/OS_NS_errno.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 // Accessors to PWD file.
11 #if !defined (ACE_LACKS_PWD_FUNCTIONS)
13 #endif /* ! ACE_LACKS_PWD_FUNCTIONS */
16 ACE_INLINE struct passwd *
19 #if !defined (ACE_LACKS_PWD_FUNCTIONS)
22 ACE_NOTSUP_RETURN (0);
23 #endif /* ! ACE_LACKS_PWD_FUNCTIONS */
26 ACE_INLINE struct passwd *
27 ACE_OS::getpwnam (const char *name)
29 #if !defined (ACE_LACKS_PWD_FUNCTIONS)
30 return ::getpwnam (name);
32 ACE_UNUSED_ARG (name);
33 ACE_NOTSUP_RETURN (0);
34 #endif /* ACE_LACKS_PWD_FUNCTIONS */
38 ACE_OS::getpwnam_r (const char *name,
42 struct passwd **result)
44 #if defined (ACE_LACKS_PWD_FUNCTIONS)
45 ACE_UNUSED_ARG (name);
47 ACE_UNUSED_ARG (buffer);
48 ACE_UNUSED_ARG (bufsize);
49 ACE_UNUSED_ARG (result);
50 ACE_NOTSUP_RETURN (0);
52 return ::getpwnam_r (name, pwd, buffer, bufsize, result);
53 #endif /* ACE_LACKS_PWD_FUNCTIONS */
59 #if !defined (ACE_LACKS_PWD_FUNCTIONS)
61 #endif /* ! ACE_LACKS_PWD_FUNCTIONS */
64 ACE_END_VERSIONED_NAMESPACE_DECL