Apache Mesos
Namespaces | Functions
os.hpp File Reference
#include <errno.h>
#include <fts.h>
#include <glob.h>
#include <grp.h>
#include <limits.h>
#include <netdb.h>
#include <pwd.h>
#include <signal.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <utime.h>
#include <sys/ioctl.h>
#include <sys/utsname.h>
#include <sys/wait.h>
#include <list>
#include <map>
#include <mutex>
#include <set>
#include <string>
#include <vector>
#include <stout/synchronized.hpp>
#include <stout/os/close.hpp>
#include <stout/os/environment.hpp>
#include <stout/os/fcntl.hpp>
#include <stout/os/find.hpp>
#include <stout/os/fork.hpp>
#include <stout/os/getcwd.hpp>
#include <stout/os/killtree.hpp>
#include <stout/os/os.hpp>
#include <stout/os/permissions.hpp>
#include <stout/os/read.hpp>
#include <stout/os/rename.hpp>
#include <stout/os/sendfile.hpp>
#include <stout/os/signals.hpp>
#include <stout/os/strerror.hpp>
#include <stout/os/write.hpp>
#include <stout/os/open.hpp>
#include <stout/os/posix/chown.hpp>
#include <stout/os/raw/environment.hpp>
#include <stout/os/shell.hpp>

Go to the source code of this file.

Namespaces

 os
 

Functions

Try< Nothingos::utime (const std::string &path)
 
Try< std::list< Process > > os::processes ()
 
Result< pid_tos::waitpid (pid_t pid, int *status, int options)
 
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)
 
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< UTSInfo > os::uname ()
 
Try< std::set< pid_t > > os::pids (Option< pid_t > group, Option< pid_t > session)
 
Try< Nothingos::tar (const std::string &path, const std::string &archive)
 
Try< Versionos::release ()
 
Try< std::string > os::var ()
 
Try< Nothingos::dup2 (int oldFd, int newFd)
 
Try< std::string > os::ptsname (int master)
 
Try< Nothingos::setctty (int fd)
 
Try< Nothingos::setWindowSize (int fd, unsigned short rows, unsigned short columns)
 
std::string os::host_default_path ()