Added linux support
Added linux functions

Signed-off-by: charlieamer <amer_zavlan@live.com>