32 return yarp::os::impl::mkdir(
p, 0755);
40 if (index == std::string::npos) {
43 if (index == std::string::npos) {
50 std::string base =
fileName.substr(0, index);
70 return yarp::os::impl::rmdir(
p);
81 return yarp::os::impl::stat(path, &dummy);
86 pid_t pid = yarp::os::impl::getpid();
92 yarp::os::impl::gethostname(hostname, size);
93 if (std::strlen(hostname) == 0) {
94 std::strncpy(hostname,
"no_hostname", size);
107 return yarp::os::impl::getcwd(buf, size);
112#if defined(__APPLE__)
114 if (!enabled && !
handle) {
void restoreAppNap(void *activityInfo)
A mini-server for performing network communication in the background.
int mkdir(const char *p)
Portable wrapper for the mkdir() function.
int rename(const char *oldname, const char *newname)
Portable wrapper for the rename() function.
void setEnergySavingModeState(bool enabled)
Toggle the OS energy saving feature.
char * getcwd(char *buf, size_t size)
Portable wrapper for the getcwd() function.
int stat(const char *path)
Portable wrapper for the stat() function.
int getpid()
Portable wrapper for the getppid() function.
int rmdir(const char *p)
Portable wrapper for the rmdir() function.
std::string gethostname()
Portable wrapper for the gethostname() function.
int mkdir_p(const char *p, int ignoreLevels=0)
Create a directory and all parent directories needed.