os: Implement few file and process functions.