Motion Master 6.0.0-alpha.86
Next-generation motion control software
Loading...
Searching...
No Matches
platform.cc File Reference
#include "core/platform.h"
#include <fcntl.h>
#include <sys/file.h>
#include <unistd.h>
#include <cerrno>
#include <cstdlib>
#include <optional>
#include <string>
#include <system_error>
#include <utility>
Include dependency graph for platform.cc:

Namespaces

namespace  mm
 
namespace  mm::core
 

Functions

std::filesystem::path mm::core::exeDir ()
 Return the directory that contains the running executable.
 
std::filesystem::path mm::core::userCacheDir ()
 Return Motion Master's per-user cache directory.
 
std::string mm::core::errnoMessage (int err)
 Describe an errno value, safely from any thread.
 
void mm::core::openInBrowser (const std::string &url)
 Open the given URL in the system default browser.
 
std::expected< SingleInstanceLock, std::string > mm::core::acquireSingleInstanceLock ()
 Acquire the process-wide lock that permits only one running Motion Master.