[PATCH 2/4] simple: Add fdopen