o_trunc not supported

also removed warnings