nsswitch/winbind_nss_solaris.h

説明を見る。
00001 /* 
00002    Unix SMB/CIFS implementation.
00003 
00004    Winbind daemon for ntdom nss module
00005 
00006    Copyright (C) Tim Potter 2000
00007    
00008    This library is free software; you can redistribute it and/or
00009    modify it under the terms of the GNU Library General Public
00010    License as published by the Free Software Foundation; either
00011    version 2 of the License, or (at your option) any later version.
00012    
00013    This library is distributed in the hope that it will be useful,
00014    but WITHOUT ANY WARRANTY; without even the implied warranty of
00015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016    Library General Public License for more details.
00017    
00018    You should have received a copy of the GNU Library General Public
00019    License along with this library; if not, write to the
00020    Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00021    Boston, MA  02111-1307, USA.   
00022 */
00023 
00024 #ifndef _WINBIND_NSS_SOLARIS_H
00025 #define _WINBIND_NSS_SOLARIS_H
00026 
00027 /* Solaris has a broken nss_common header file containing C++ reserved names. */
00028 #ifndef __cplusplus
00029 #undef class
00030 #undef private
00031 #undef public
00032 #undef protected
00033 #undef template
00034 #undef this
00035 #undef new
00036 #undef delete
00037 #undef friend
00038 #endif
00039 
00040 #include <nss_common.h>
00041 
00042 #ifndef __cplusplus
00043 #define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00044 #define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00045 #define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00046 #define protected #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00047 #define template #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00048 #define this #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00049 #define new #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00050 #define delete #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00051 #define friend #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00052 #endif
00053 
00054 #include <nss_dbdefs.h>
00055 #include <nsswitch.h>
00056 
00057 typedef nss_status_t NSS_STATUS;
00058 
00059 #define NSS_STATUS_SUCCESS     NSS_SUCCESS
00060 #define NSS_STATUS_NOTFOUND    NSS_NOTFOUND
00061 #define NSS_STATUS_UNAVAIL     NSS_UNAVAIL
00062 #define NSS_STATUS_TRYAGAIN    NSS_TRYAGAIN
00063 
00064 /* The solaris winbind is implemented as a wrapper around the linux
00065    version. */
00066 
00067 NSS_STATUS _nss_winbind_setpwent(void);
00068 NSS_STATUS _nss_winbind_endpwent(void);
00069 NSS_STATUS _nss_winbind_getpwent_r(struct passwd* result, char* buffer,
00070                                    size_t buflen, int* errnop);
00071 NSS_STATUS _nss_winbind_getpwuid_r(uid_t, struct passwd*, char* buffer,
00072                                    size_t buflen, int* errnop);
00073 NSS_STATUS _nss_winbind_getpwnam_r(const char* name, struct passwd* result,
00074                                    char* buffer, size_t buflen, int* errnop);
00075 
00076 NSS_STATUS _nss_winbind_setgrent(void);
00077 NSS_STATUS _nss_winbind_endgrent(void);
00078 NSS_STATUS _nss_winbind_getgrent_r(struct group* result, char* buffer,
00079                                    size_t buflen, int* errnop);
00080 NSS_STATUS _nss_winbind_getgrnam_r(const char *name,
00081                                    struct group *result, char *buffer,
00082                                    size_t buflen, int *errnop);
00083 NSS_STATUS _nss_winbind_getgrgid_r(gid_t gid,
00084                                    struct group *result, char *buffer,
00085                                    size_t buflen, int *errnop);
00086 
00087 #endif /* _WINBIND_NSS_SOLARIS_H */

Sambaに対してSat Aug 29 21:23:09 2009に生成されました。  doxygen 1.4.7