Searched refs:s_proto (Results 1 - 14 of 14) sorted by relevance

/freebsd-10-stable/tools/regression/lib/libc/nss/
H A Dtest-getserv.c97 if (src->s_proto != NULL) {
98 dest->s_proto = strdup(src->s_proto);
99 assert(dest->s_proto != NULL);
127 free(serv->s_proto);
146 (strcmp(serv1->s_proto, serv2->s_proto) != 0) ||
182 serv->s_name, ntohs(serv->s_port), serv->s_proto);
237 serv->s_proto = strdup(s);
238 assert(serv->s_proto !
[all...]
/freebsd-10-stable/lib/libc/tests/nss/
H A Dgetserv_test.c94 if (src->s_proto != NULL) {
95 dest->s_proto = strdup(src->s_proto);
96 ATF_REQUIRE(dest->s_proto != NULL);
123 free(serv->s_proto);
142 (strcmp(serv1->s_proto, serv2->s_proto) != 0) ||
178 serv->s_name, ntohs(serv->s_port), serv->s_proto);
232 serv->s_proto = strdup(s);
233 ATF_REQUIRE(serv->s_proto !
[all...]
/freebsd-10-stable/usr.sbin/nscd/agents/
H A Dservices.c62 if (serv->s_proto != NULL)
63 desired_size += strlen(serv->s_proto) + 1;
97 if (new_serv.s_proto != NULL) {
98 size = strlen(new_serv.s_proto);
99 memcpy(p, new_serv.s_proto, size);
100 new_serv.s_proto = p;
/freebsd-10-stable/contrib/netbsd-tests/lib/libc/net/
H A Dh_servent.c43 svp->s_name, ntohs((uint16_t)svp->s_port), svp->s_proto);
/freebsd-10-stable/contrib/ntp/include/
H A Dntp_machine.h150 char *s_proto; /* protocol to use */ member in struct:servent
/freebsd-10-stable/contrib/less/
H A Dprompt.c42 static constant char s_proto[] = variable
71 prproto[0] = save(s_proto);
/freebsd-10-stable/lib/libc/net/
H A Dgetservent.c198 serv->s_proto = cp;
409 if (proto == NULL || strcmp(serv->s_proto, proto) == 0)
416 if (proto == NULL || strcmp(serv->s_proto, proto) == 0)
979 if (serv->s_proto != NULL)
980 desired_size += strlen(serv->s_proto) + 1;
1014 if (new_serv.s_proto != NULL) {
1015 size = strlen(new_serv.s_proto);
1016 memcpy(p, new_serv.s_proto, size);
1017 new_serv.s_proto = p;
1091 NS_APPLY_OFFSET(serv->s_proto, orig_bu
[all...]
/freebsd-10-stable/include/
H A Dnetdb.h114 char *s_proto; /* protocol to use */ member in struct:servent
/freebsd-10-stable/contrib/ntp/libntp/
H A Dntp_rfc2553.c395 if (strcmp(sp->s_proto, "tcp") == 0)
397 else if (strcmp(sp->s_proto, "udp") == 0)
H A Dmachines.c73 serv1->s_proto = "udp"; /* protocol to use */
/freebsd-10-stable/contrib/tcpdump/
H A Daddrtoname.c736 if (strcmp(sv->s_proto, "tcp") == 0)
738 else if (strcmp(sv->s_proto, "udp") == 0)
/freebsd-10-stable/lib/libc/resolv/
H A Dres_mkupdate.c992 slp->proto = strdup(sp->s_proto);
1140 serv.s_proto = lp->proto;
/freebsd-10-stable/contrib/ipfilter/tools/
H A Dipmon.c438 if (s->s_proto == NULL)
440 else if (!strcmp(s->s_proto, "tcp")) {
444 } else if (!strcmp(s->s_proto, "udp")) {
/freebsd-10-stable/usr.bin/getent/
H A Dgetent.c509 se->s_name, ntohs(se->s_port), se->s_proto)

Completed in 214 milliseconds