os_pwd.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    os_pwd.h
00006  *
00007  *  password structure
00008  *
00009  *  os_pwd.h,v 1.3 2003/11/05 20:09:07 dhinton Exp
00010  *
00011  *  @author Don Hinton <dhinton@dresystems.com>
00012  *  @author This code was originally in various places including ace/OS.h.
00013  */
00014 //=============================================================================
00015 
00016 #ifndef ACE_OS_INCLUDE_OS_PWD_H
00017 #define ACE_OS_INCLUDE_OS_PWD_H
00018 
00019 #include /**/ "ace/pre.h"
00020 
00021 #include "ace/config-all.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #include "ace/os_include/sys/os_types.h"
00028 
00029 #if !defined (ACE_LACKS_PWD_H)
00030 # include /**/ <pwd.h>
00031 #endif /* !ACE_LACKS_PWD_H */
00032 
00033 // Place all additions (especially function declarations) within extern "C" {}
00034 #ifdef __cplusplus
00035 extern "C"
00036 {
00037 #endif /* __cplusplus */
00038 
00039 #if !defined (ACE_WIN32)
00040 // VAC++ doesn't correctly grok the ::getpwnam_r - the function is redefined
00041 // in pwd.h, and that redefinition is used here
00042 #  if defined (_AIX) && defined (__IBMCPP__) && (__IBMCPP__ >= 400)
00043   extern int _posix_getpwnam_r(const char *, struct passwd *, char *,
00044                                int, struct passwd **);
00045 #  endif /* AIX and VAC++ 4 */
00046 #endif /* !ACE_WIN32 */
00047 
00048 #if defined (DIGITAL_UNIX)
00049   extern int _Pgetpwnam_r (const char *, struct passwd *,
00050                            char *, size_t, struct passwd **);
00051 #endif /* DIGITAL_UNIX */
00052 
00053 #ifdef __cplusplus
00054 }
00055 #endif /* __cplusplus */
00056 
00057 #include /**/ "ace/post.h"
00058 #endif /* ACE_OS_INCLUDE_OS_PWD_H */

Generated on Thu Nov 9 09:41:58 2006 for ACE by doxygen 1.3.6