libnative/io: fix compile error in 0117be7.

Function name was wrong.
Also, incidentally rename type parameter.