What is the grammatical function of man in man yaḥtarith?

Imruʾ al-Qays: The Long Night, Travel, and the Wolf (Verses 43–51)