libbb: [x]fopen_for_{read,write} introduced and used.