move pty functions in netbsd to end
do not pass constants to native types, they can fetch