Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
os.h File Reference
#include "../common.h"
#include <cstdio>
#include <ctime>
#include <functional>
#include <string>
#include <chrono>
#include <thread>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
+ 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.

Namespaces

namespace  spdlog
 
namespace  spdlog::details
 
namespace  spdlog::details::os
 

Macros

#define __has_feature(x)   0
 
#define SPDLOG_EOL   "\n"
 
#define SPDLOG_FILENAME_T(s)   s
 

Functions

spdlog::log_clock::time_point spdlog::details::os::now ()
 
std::tm spdlog::details::os::localtime (const std::time_t &time_tt)
 
std::tm spdlog::details::os::localtime ()
 
std::tm spdlog::details::os::gmtime (const std::time_t &time_tt)
 
std::tm spdlog::details::os::gmtime ()
 
bool spdlog::details::os::operator== (const std::tm &tm1, const std::tm &tm2)
 
bool spdlog::details::os::operator!= (const std::tm &tm1, const std::tm &tm2)
 
void spdlog::details::os::prevent_child_fd (FILE *f)
 
int spdlog::details::os::fopen_s (FILE **fp, const filename_t &filename, const filename_t &mode)
 
int spdlog::details::os::remove (const filename_t &filename)
 
int spdlog::details::os::rename (const filename_t &filename1, const filename_t &filename2)
 
bool spdlog::details::os::file_exists (const filename_t &filename)
 
size_t spdlog::details::os::filesize (FILE *f)
 
int spdlog::details::os::utc_minutes_offset (const std::tm &tm=details::os::localtime())
 
size_t spdlog::details::os::_thread_id ()
 
size_t spdlog::details::os::thread_id ()
 
std::string spdlog::details::os::filename_to_str (const filename_t &filename)
 
std::string spdlog::details::os::errno_to_string (char[256], char *res)
 
std::string spdlog::details::os::errno_to_string (char buf[256], int res)
 
std::string spdlog::details::os::errno_str (int err_num)
 
int spdlog::details::os::pid ()
 
bool spdlog::details::os::is_color_terminal ()
 
bool spdlog::details::os::in_terminal (FILE *file)
 

Variables

static SPDLOG_CONSTEXPR const charspdlog::details::os::eol = SPDLOG_EOL
 
static SPDLOG_CONSTEXPR int spdlog::details::os::eol_size = sizeof(SPDLOG_EOL) - 1
 
static SPDLOG_CONSTEXPR const char spdlog::details::os::folder_sep = '/'
 

Macro Definition Documentation

◆ __has_feature

#define __has_feature ( x)    0

Definition at line 53 of file os.h.

◆ SPDLOG_EOL

#define SPDLOG_EOL   "\n"

Definition at line 139 of file os.h.

◆ SPDLOG_FILENAME_T

#define SPDLOG_FILENAME_T ( s)    s

Definition at line 375 of file os.h.