File operations in base and fork+exec