getprotoent_r
int getprotoent_r(struct protoent *, char *, size_t,
if (getprotoent_r(&pd->proto, pd->data, sizeof(pd->data), &rval) != 0)