fdopen mode requires append