Apache Mesos
Namespaces | Functions
os.hpp File Reference
#include <sys/utime.h>
#include <algorithm>
#include <list>
#include <map>
#include <memory>
#include <numeric>
#include <set>
#include <string>
#include <vector>
#include <stout/bytes.hpp>
#include <stout/duration.hpp>
#include <stout/none.hpp>
#include <stout/nothing.hpp>
#include <stout/option.hpp>
#include <stout/path.hpp>
#include <stout/stringify.hpp>
#include <stout/strings.hpp>
#include <stout/try.hpp>
#include <stout/version.hpp>
#include <stout/windows.hpp>
#include <stout/os/os.hpp>
#include <stout/os/getenv.hpp>
#include <stout/os/process.hpp>
#include <stout/os/read.hpp>
#include <stout/os/raw/environment.hpp>
#include <Psapi.h>
#include <TlHelp32.h>
#include <Userenv.h>

Go to the source code of this file.

Namespaces

 os
 
 os::internal
 

Functions

Try< std::string > os::internal::nodename ()
 
Try< std::set< pid_t > > os::pids (Option< pid_t > group, Option< pid_t > session)
 
Try< std::set< pid_t > > os::pids ()
 
void os::setenv (const std::string &key, const std::string &value, bool overwrite=true)
 
void os::unsetenv (const std::string &key)
 
void os::eraseenv (const std::string &key)
 
Result< pid_tos::waitpid (long pid, int *status, int options)
 
std::string os::hstrerror (int err)=delete
 
Try< Nothingos::chown (uid_t uid, gid_t gid, const std::string &path, bool recursive)
 
Try< Nothingos::chmod (const std::string &path, int mode)
 
Try< Nothingos::mknod (const std::string &path, mode_t mode, dev_t dev)
 
Try< Nothingos::sleep (const Duration &duration)
 
Try< std::list< std::string > > os::glob (const std::string &pattern)
 
Try< long > os::cpus ()
 
Try< Load > os::loadavg ()
 
Try< Memory > os::memory ()
 
Try< Versionos::release ()
 
Try< UTSInfo > os::uname ()
 
tm * os::gmtime_r (const time_t *timep, tm *result)
 
Result< PROCESSENTRY32W > os::process_entry (pid_t pid)
 
Result< Process > os::process (pid_t pid)
 
int os::random ()
 
Try< std::string > os::var ()
 
std::string os::host_default_path ()