UnixUtils

Engine/source/platformX86UNIX/x86UNIXUtils.h

More...

Private Attributes

struct utsname *

Public Functions

const char *

Returns the name of the OS, as reported by uname.

bool

Returns true if we're running in the background, false otherwise.

Detailed Description

Private Attributes

struct utsname * mUnameInfo 

Public Functions

UnixUtils()

~UnixUtils()

getOSName()

Returns the name of the OS, as reported by uname.

inBackground()

Returns true if we're running in the background, false otherwise.

There's no "standard" way to determine this in unix, but modern job control unices should support the method described here:

http://www.faqs.org/faqs/unix-faq/faq/part3/

(question 3.7)