Initial Patch of Auction House bot rev. 135
[auctionmangos.git] / dep / ACE_wrappers / ace / os_include / os_pwd.h
blobb1bc94af3819af4cab8cd4e39908ef6101a2eafd
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file os_pwd.h
7 * password structure
9 * $Id: os_pwd.h 80826 2008-03-04 14:51:23Z wotte $
11 * @author Don Hinton <dhinton@dresystems.com>
12 * @author This code was originally in various places including ace/OS.h.
14 //=============================================================================
16 #ifndef ACE_OS_INCLUDE_OS_PWD_H
17 #define ACE_OS_INCLUDE_OS_PWD_H
19 #include /**/ "ace/pre.h"
21 #include /**/ "ace/config-all.h"
23 #if !defined (ACE_LACKS_PRAGMA_ONCE)
24 # pragma once
25 #endif /* ACE_LACKS_PRAGMA_ONCE */
27 #include "ace/os_include/sys/os_types.h"
29 #if !defined (ACE_LACKS_PWD_H)
30 # include /**/ <pwd.h>
31 #endif /* !ACE_LACKS_PWD_H */
33 // Place all additions (especially function declarations) within extern "C" {}
34 #ifdef __cplusplus
35 extern "C"
37 #endif /* __cplusplus */
39 #if !defined (ACE_WIN32)
40 // VAC++ doesn't correctly grok the ::getpwnam_r - the function is redefined
41 // in pwd.h, and that redefinition is used here
42 # if defined (_AIX) && defined (__IBMCPP__) && (__IBMCPP__ >= 400)
43 extern int _posix_getpwnam_r(const char *, struct passwd *, char *,
44 int, struct passwd **);
45 # endif /* AIX and VAC++ 4 */
46 #endif /* !ACE_WIN32 */
48 #if defined (DIGITAL_UNIX)
49 extern int _Pgetpwnam_r (const char *, struct passwd *,
50 char *, size_t, struct passwd **);
51 #endif /* DIGITAL_UNIX */
53 #ifdef __cplusplus
55 #endif /* __cplusplus */
57 #include /**/ "ace/post.h"
58 #endif /* ACE_OS_INCLUDE_OS_PWD_H */