UserUtils.cpp File Reference

#include "blocxx/BLOCXX_config.h"
#include "blocxx/Mutex.hpp"
#include "blocxx/MutexLock.hpp"
#include "blocxx/GlobalMutex.hpp"
#include "blocxx/UserUtils.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
#include <cerrno>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE
namespace  BLOCXX_NAMESPACE::UserUtils

Functions

String BLOCXX_NAMESPACE::UserUtils::getEffectiveUserId ()
 Get the effective user id.
String BLOCXX_NAMESPACE::UserUtils::getCurrentUserName ()
long BLOCXX_NAMESPACE::UserUtils::getSysconfValue (int name, long default_value, int &error)
long BLOCXX_NAMESPACE::UserUtils::getSysconfValue (int name, long default_value)
String BLOCXX_NAMESPACE::UserUtils::getUserName (UserID uid, bool &success)
 If the username is invalid, or if getUserName() fails for any other reason, 'success' will be set to false.
UserID BLOCXX_NAMESPACE::UserUtils::getUserId (const String &userName, bool &validUserName)
 Convert a textual username into a platform native user type.

Variables

GlobalMutex BLOCXX_NAMESPACE::UserUtils::g_getpwMutex = { 0 , 0, {0, PTHREAD_MUTEX_INITIALIZER} }


Generated on Wed Feb 25 19:05:01 2009 for blocxx by  doxygen 1.5.6