Livox SDK API  V2.2.0
os.h File Reference
#include "../common.h"
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <string>
#include <sys/stat.h>
#include <sys/types.h>
#include <thread>
#include <fcntl.h>
#include <unistd.h>

Go to the source code of this file.

Namespaces

 spdlog
 
 spdlog::details
 
 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 () noexcept
 
std::tm spdlog::details::os::localtime (const std::time_t &time_tt) noexcept
 
std::tm spdlog::details::os::localtime () noexcept
 
std::tm spdlog::details::os::gmtime (const std::time_t &time_tt) noexcept
 
std::tm spdlog::details::os::gmtime () noexcept
 
void spdlog::details::os::prevent_child_fd (FILE *f)
 
bool spdlog::details::os::fopen_s (FILE **fp, const filename_t &filename, const filename_t &mode)
 
int spdlog::details::os::remove (const filename_t &filename) noexcept
 
int spdlog::details::os::rename (const filename_t &filename1, const filename_t &filename2) noexcept
 
bool spdlog::details::os::file_exists (const filename_t &filename) noexcept
 
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 () noexcept
 
size_t spdlog::details::os::thread_id () noexcept
 
void spdlog::details::os::sleep_for_millis (int milliseconds) noexcept
 
std::string spdlog::details::os::filename_to_str (const filename_t &filename)
 
int spdlog::details::os::pid ()
 
bool spdlog::details::os::is_color_terminal () noexcept
 
bool spdlog::details::os::in_terminal (FILE *file) noexcept
 

Variables

static constexpr const char * spdlog::details::os::default_eol = "\n"
 
static constexpr const char spdlog::details::os::folder_sep = '/'
 

Macro Definition Documentation

#define __has_feature (   x)    0

Definition at line 53 of file os.h.

#define SPDLOG_EOL   "\n"

Definition at line 116 of file os.h.

#define SPDLOG_FILENAME_T (   s)    s

Definition at line 369 of file os.h.