RSC  0.16.0
LinuxProcessInfo.cpp File Reference
#include "ProcessInfo.h"
#include <sys/types.h>
#include <pwd.h>
#include <unistd.h>
#include <linux/param.h>
#include <stdexcept>
#include <algorithm>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "HostInfo.h"
Include dependency graph for LinuxProcessInfo.cpp:

Go to the source code of this file.

Namespaces

 rsc
 
 rsc::os
 

Functions

std::string rsc::os::procFilename (PID pid, const std::string &filename)
 
PID rsc::os::currentProcessId ()
 Return the id the current process. More...
 
std::vector< std::string > rsc::os::getCommandlineComponents (PID pid)
 
std::string rsc::os::getProgramName (PID pid)
 Return the name of the program executed in the process designated by pid. More...
 
std::string rsc::os::currentProgramName ()
 Return the name of the program executed in the current process. More...
 
std::string rsc::os::getExecutablePath (PID pid)
 Return the absolute path of the executable file that is executed in the process designated by pid. More...
 
std::string rsc::os::currentExecutablePath ()
 Return the absolute path of the executable file that is executed in the current process. More...
 
std::vector< std::string > rsc::os::getCommandlineArguments (PID pid)
 Return the list of commandline arguments of the process designated by pid. More...
 
std::vector< std::string > rsc::os::currentCommandlineArguments ()
 Return the list of commandline arguments of the current process. More...
 
boost::posix_time::ptime rsc::os::getProcessStartTime (PID pid)
 Return the start time of the process designated by pid. More...
 
boost::posix_time::ptime rsc::os::currentProcessStartTime ()
 Return the start time of the current process. More...
 
std::string rsc::os::uidToName (uid_t id)
 
std::string rsc::os::getExecutingUser (PID pid)
 Return login- or account-name of the user executing pid. More...
 
std::string rsc::os::currentExecutingUser ()
 Return the login- or account-name of the user executing the current process. More...