getpeername:Function not implemented

I am attempting to start telnetd on a qnx6.2.1 embeded system. When starting it attempts to load and fails with the error

getpeername:Function Not Implemented

getpeername is only dependent on the socket library and I have tried several copies.

Can someone please direct me towards figuring out how to solve this problem.

telnetd expects its stdin to be a socket. inetd takes care of this (run inetd and have it start telnetd).

If you really want to start telnetd yourself (as oppose to let inetd start it),
you HAVE TO use the -debug option.