move futimens to common code