What part of speech is “homeless” in this sentence?

“Within a few years, he found himself literally homeless and sleeping occasionally under a pier on the Gulf Coast.