add the getpinfo under macosx or bsd