Merge "Cleanup uses of sprintf, add modes to open() with O_CREAT."