OpenTTD Source: src/os/unix/unix.cpp File Reference

OpenTTD Source 14.1

Functions
unix.cpp File Reference
`#include "../../stdafx.h"`
`#include "../../textbuf_gui.h"`
`#include "../../debug.h"`
`#include "../../string_func.h"`
`#include "../../fios.h"`
`#include "../../thread.h"`
`#include <dirent.h>`
`#include <unistd.h>`
`#include <sys/stat.h>`
`#include <time.h>`
`#include <signal.h>`
`#include <pthread.h>`
`#include "../../safeguards.h"`

Go to the source code of this file.

## Functions
bool | FiosIsRoot (const std::string &path)
void | FiosGetDrives (FileList &)
std::optional< uint64_t > | FiosGetDiskFreeSpace (const std::string &path)
bool | FiosIsValidFile (const std::string &path, const struct dirent *ent, struct stat *sb)
bool | FiosIsHiddenFile (const struct dirent *ent)
void | ShowInfoI (const std::string &str)
void | ShowOSErrorBox (const char *buf, bool)
std::optional< std::string > | GetClipboardContents ()
| Try to retrieve the current clipboard contents. More...
void | OSOpenBrowser (const std::string &url)
void | SetCurrentThreadName ([[maybe_unused]] const char *threadName)

## Detailed Description

Implementation of Unix specific file handling.

Definition in file unix.cpp.

## Function Documentation

## ◆ GetClipboardContents()

std::optional<std::string> GetClipboardContents | ( |  | ) |

Try to retrieve the current clipboard contents.

Note
  OS-specific function.

Returns
  The (optional) clipboard contents.

Definition at line 214 of file unix.cpp.