blob: 1de348791cda165c61f9a1929f820b3c2c867e7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <string.h>
#include <netdb.h>
extern struct protoent __protoent_pw;
extern char __protoent_buf[1000];
struct protoent *getprotobyname(const char *name) {
struct protoent* tmp;
if (getprotobyname_r(name,&__protoent_pw,__protoent_buf,sizeof(__protoent_buf),&tmp)==0)
return tmp;
return 0;
}
|