lib/util_nscd.c

説明を見る。
00001 /* 
00002    Unix SMB/CIFS implementation.
00003    Samba utility functions
00004    Copyright (C) Guenther Deschner 2006
00005 
00006    This program is free software; you can redistribute it and/or modify
00007    it under the terms of the GNU General Public License as published by
00008    the Free Software Foundation; either version 2 of the License, or
00009    (at your option) any later version.
00010    
00011    This program is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014    GNU General Public License for more details.
00015    
00016    You should have received a copy of the GNU General Public License
00017    along with this program; if not, write to the Free Software
00018    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019 */
00020 
00021 #include "includes.h"
00022 
00023 static void smb_nscd_flush_cache(const char *service)
00024 {
00025 #ifdef HAVE_NSCD_FLUSH_CACHE
00026         if (!nscd_flush_cache(service)) {
00027                 DEBUG(10,("failed to flush nscd cache for '%s' service: %s. "
00028                           "Is nscd running?\n",
00029                           service, strerror(errno)));
00030         }
00031 #endif
00032 }
00033 
00034 void smb_nscd_flush_user_cache(void)
00035 {
00036         smb_nscd_flush_cache("passwd");
00037 }
00038 
00039 void smb_nscd_flush_group_cache(void)
00040 {
00041         smb_nscd_flush_cache("group");
00042 }

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