open with O_CREAT expects 3 arguments.
patch to make binmode.c build on ubuntu
Reproduced on Ubuntu 10.04. This seems to be due to an updated GCC - past versions of Ubuntu didn't have problems with this file. This revealed two warnings that will be dealt with as well due to unused results. Thanks for the patch! Update committed to git.