Add truncate and ftruncate