protoent
struct protoent *getprotobyname(const char *);
struct protoent *getprotobynumber(int);
struct protoent *getprotoent(void);
int getprotobyname_r(const char *, struct protoent *,
int getprotobynumber_r(int, struct protoent *,
int getprotoent_r(struct protoent *, struct protoent_data *);
getprotobynumber_r(int num, struct protoent *pe, struct protoent_data *pd)
struct protoent *
static struct protoent proto;
struct protoent *
static struct protoent proto;
getprotoent_r(struct protoent *pe, struct protoent_data *pd)
getprotobyname_r(const char *name, struct protoent *pe,
struct protoent *
static struct protoent proto;
struct protoent *p;
struct protoent *p;
struct protoent *p;
struct protoent protoent;
r = getprotobynumber_r(35, &protoent, &protoent_data);
checkp(5, &protoent, 35, "idpr", "IDPR", (char *)NULL);
r = getprotobyname_r("vrrp", &protoent, &protoent_data);
checkp(6, &protoent, 112, "carp", "CARP", "vrrp", (char *) NULL);
r = getprotobyname_r("nonexistent", &protoent, &protoent_data);
r = getprotobyname_r("", &protoent, &protoent_data);
r = getprotobynumber_r(256, &protoent, &protoent_data);
checkp(int n, struct protoent *p, int proto, const char *name, ...)
struct protoent *pent;
struct protoent *p;
struct protoent *p;
struct protoent *p;
struct protoent *p;
struct protoent *pe = NULL;
struct protoent *pr;
struct protoent *p;
struct protoent *pe;
struct protoent *p;
struct protoent *p;
struct protoent *p;
struct protoent *p = getprotobyname(token);
struct protoent *protocol;
struct protoent *pe;
struct protoent *pe;
struct protoent *pe;
struct protoent *p = getprotobynumber(cmsg->cmsg_level);
struct protoent *ep;
struct protoent *p;
struct protoent *p = getprotobynumber(pr->proto);
struct protoent *p;
struct protoent *p;
struct protoent *proto;
struct protoent *pp;
struct protoent *p;
struct protoent *pe;
struct protoent *pent;
struct protoent *p = getprotobyname(token);
struct protoent *protocol;