Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / ksysguard / ksysguardd / PWUIDCache.h
blobce28df0fcf6c24ca7b804e11be2dfe5917569335
1 /*
2 KSysGuard, the KDE System Guard
4 Copyright (c) 2000 Chris Schlaeger <cs@kde.org>
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of version 2 of the GNU General Public
8 License as published by the Free Software Foundation.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 #include <sys/types.h>
23 #ifndef KSG_PWUIDCACHE_H
24 #define KSG_PWUIDCACHE_H
26 /**
27 getpwuid() can be fairly expensive on NIS or LDAP systems that do not
28 use chaching. This module implements a cache for uid to user name
29 mappings.
31 void initPWUIDCache( void );
32 void exitPWUIDCache( void );
34 const char* getCachedPWUID( uid_t uid );
36 #endif