6#if defined(DART_HOST_OS_LINUX)
8#include <sys/utsname.h>
37 int retval = vsnprintf(str, size,
format,
args);
39 FATAL(
"Fatal error in Utils::VSNPrint with format '%s'",
format);
48size_t Utils::Read(
int filedes,
void* buf,
size_t nbyte) {
49 return read(filedes, buf, nbyte);
56bool Utils::IsWindowsSubsystemForLinux() {
58 if (uname(&
info) != 0) {
64 return strstr(
info.release,
"icrosoft") !=
nullptr;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
static bool read(SkStream *stream, void *buffer, size_t amount)
static int SNPrint(char *str, size_t size, const char *format,...) PRINTF_ATTRIBUTE(3
static char * StrDup(const char *s)
static int static int VSNPrint(char *str, size_t size, const char *format, va_list args)
static size_t Read(int filedes, void *buf, size_t nbyte)
static intptr_t StrNLen(const char *s, intptr_t n)
static int Close(int fildes)
static int Unlink(const char *path)
static char * StrNDup(const char *s, intptr_t n)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
uint32_t uint32_t * format
#define MSAN_UNPOISON(ptr, len)
char * strdup(const char *str1)