#include #include extern struct protoent __protoent_pw; extern char __protoent_buf[1000]; struct protoent *getprotobynumber(int proto) { struct protoent* tmp; if (getprotobynumber_r(proto,&__protoent_pw,__protoent_buf,sizeof(__protoent_buf),&tmp)==0) return tmp; return 0; }