RSC  0.16.0
MacProcessInfo.cpp File Reference
#include "ProcessInfo.h"
#include <sys/sysctl.h>
#include <sys/types.h>
#include <pwd.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <libproc.h>
#include <boost/shared_array.hpp>
#include <boost/format.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include "HostInfo.h"
Include dependency graph for MacProcessInfo.cpp:

Go to the source code of this file.

Namespaces

 rsc
 
 rsc::os
 

Functions

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::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...