supported versions but mkostemp(3) is only available from 10.0. Therfore, the fd was not properly initialized on them.