MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / UnixUtils

Method UnixUtils

Engine/source/platformPOSIX/POSIXUtils.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38UnixUtils utils;
39
40UnixUtils::UnixUtils()
41{
42 UUtils = this;
43
44 mUnameInfo = (struct utsname*)dRealMalloc(sizeof(struct utsname));;
45 if (uname(mUnameInfo) == -1)
46 {
47 // oh well
48 dRealFree(mUnameInfo);
49 mUnameInfo = NULL;
50 }
51}
52
53UnixUtils::~UnixUtils()
54{

Callers

nothing calls this directly

Calls 2

dRealMallocFunction · 0.70
dRealFreeFunction · 0.70

Tested by

no test coverage detected