Add a "type" argument to bufopen and make it capable of reserving space before openin...