Completed system dependent functions for linux.