15 # undef __STRICT_ANSI__ 26 #if defined __APPLE__ || defined(__FreeBSD__) 33 # if defined(_WIN32) && !defined(__MINGW32__) 35 # define FMT_POSIX(call) _##call 37 # define FMT_POSIX(call) call 43 # define FMT_POSIX_CALL(call) FMT_SYSTEM(call) 45 # define FMT_SYSTEM(call) call 48 # define FMT_POSIX_CALL(call) ::_##call 50 # define FMT_POSIX_CALL(call) ::call 57 # define FMT_RETRY_VAL(result, expression, error_result) \ 59 result = (expression); \ 60 } while (result == error_result && errno == EINTR) 62 # define FMT_RETRY_VAL(result, expression, error_result) result = (expression) 65 #define FMT_RETRY(result, expression) FMT_RETRY_VAL(result, expression, -1) 96 #if !FMT_USE_RVALUE_REFERENCES 167 int (fileno)()
const;
186 explicit File(
int fd) : fd_(fd) {}
202 #if !FMT_USE_RVALUE_REFERENCES 279 std::size_t
write(
const void *buffer, std::size_t count);
283 static File dup(
int fd);
295 static void pipe(
File &read_end,
File &write_end);
305 #if (defined(LC_NUMERIC_MASK) || defined(_MSC_VER)) && !defined(__ANDROID__) 314 typedef _locale_t locale_t;
316 enum { LC_NUMERIC_MASK = LC_NUMERIC };
318 static locale_t newlocale(
int category_mask,
const char *locale, locale_t) {
319 return _create_locale(category_mask, locale);
322 static void freelocale(locale_t locale) {
323 _free_locale(locale);
326 static double strtod_l(
const char *nptr,
char **endptr, _locale_t locale) {
327 return _strtod_l(nptr, endptr, locale);
336 typedef locale_t
Type;
338 Locale() : locale_(newlocale(LC_NUMERIC_MASK,
"C", NULL)) {
342 ~Locale() { freelocale(locale_); }
344 Type
get()
const {
return locale_; }
348 double strtod(
const char *&str)
const {
350 double result = strtod_l(str, &end, locale_);
358 #if !FMT_USE_RVALUE_REFERENCES 366 #endif // FMT_POSIX_H_ File(Proxy p) FMT_NOEXCEPT
BufferedFile & operator=(Proxy p)
File & operator=(Proxy p)
FMT_FUNC void write(std::ostream &os, Writer &w)
GLsizei const GLfloat * value
GLsizei const GLchar *const * path
BufferedFile(Proxy p) FMT_NOEXCEPT
ErrorCode(int value=0) FMT_NOEXCEPT
BufferedFile & operator=(BufferedFile &other)
GLuint GLuint GLsizei count
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
File(File &other) FMT_NOEXCEPT
FMT_FUNC void print(std::FILE *f, CStringRef format_str, ArgList args)
void print(CStringRef format_str, const ArgList &args)
int descriptor() const FMT_NOEXCEPT
BufferedFile() FMT_NOEXCEPT
fmt::File & move(fmt::File &f)
File & operator=(File &other)
FMT_GCC_EXTENSION typedef long long LongLong
BufferedFile(BufferedFile &f) FMT_NOEXCEPT