Yet Another Robot Platform
No Matches
Os.h File Reference
#include <yarp/os/api.h>
#include <cstddef>
#include <string>
+ Include dependency graph for Os.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  yarp
 The main, catch-all namespace for YARP.
namespace  yarp::os
 An interface to the operating system, including Port based communication.


const charyarp::os::getenv (const char *var)
 Portable wrapper for the getenv() function.
int yarp::os::getpid ()
 Portable wrapper for the getppid() function.
void yarp::os::gethostname (char *hostname, size_t size)
 Portable wrapper for the gethostname() function.
std::string yarp::os::gethostname ()
 Portable wrapper for the gethostname() function.
int yarp::os::mkdir (const char *p)
 Portable wrapper for the mkdir() function.
int yarp::os::mkdir_p (const char *p, int ignoreLevels=0)
 Create a directory and all parent directories needed.
int yarp::os::rmdir (const char *p)
 Portable wrapper for the rmdir() function.
int yarp::os::rename (const char *oldname, const char *newname)
 Portable wrapper for the rename() function.
int yarp::os::stat (const char *path)
 Portable wrapper for the stat() function.
charyarp::os::getcwd (char *buf, size_t size)
 Portable wrapper for the getcwd() function.
void yarp::os::setEnergySavingModeState (bool enabled)
 Toggle the OS energy saving feature.
void yarp::os::setprogname (const char *progname)
 Portable wrapper for the setprogname() function.
void yarp::os::getprogname (char *progname, size_t size)
 Portable wrapper for the getprogname() function.
int yarp::os::fork ()
 Portable wrapper for the fork() function.