Searched refs:p_name (Results 1 - 25 of 56) sorted by relevance

123

/freebsd-current/sys/cddl/dev/dtrace/
H A Ddtrace_sysctl.c27 char *p_name = NULL; local
42 if ((p_name = kmem_alloc(len, KM_SLEEP)) == NULL)
46 *p_name = '\0';
54 (void) strlcat(p_name, " ", len);
56 (void) strlcat(p_name, prov->dtpv_name, len);
65 if (p_name != NULL) {
66 error = sysctl_handle_string(oidp, p_name, len, req);
68 kmem_free(p_name, 0);
/freebsd-current/sbin/ipf/libipf/
H A Dprintproto.c27 PRINTF("%s", pr->p_name);
32 PRINTF("%s", pr->p_name);
H A Dgetportproto.c34 s = getservbyname(name, p ? p->p_name : NULL);
H A Dportname.c32 if ((sv = getservbyport(htons(port), p->p_name))) {
H A Dgetport.c81 s = getservbyname(name, p ? p->p_name : NULL);
H A Dprintactivenat.c62 PRINTF(" %s", pproto->p_name);
87 PRINTF(" %s", pproto->p_name);
111 PRINTF(" %s", pproto->p_name);
/freebsd-current/lib/libc/tests/nss/
H A Dgetproto_test.c87 if (src->p_name != NULL) {
88 dest->p_name = strdup(src->p_name);
89 assert(dest->p_name != NULL);
116 free(pe->p_name);
134 if ((strcmp(pe1->p_name, pe2->p_name) != 0) ||
170 pe->p_name, pe->p_proto);
210 pe->p_name = strdup(s);
211 assert(pe->p_name !
[all...]
/freebsd-current/lib/libcasper/services/cap_netdb/
H A Dcap_netdb.c58 pp->p_name = nvlist_take_string(nvl, "name");
66 free(pp->p_name);
102 nvlist_add_string(nvl, "name", pp->p_name);
/freebsd-current/lib/libc/net/
H A Dgetprotoent.c171 if (proto->p_name != NULL)
172 desired_size += strlen(proto->p_name) + 1;
199 if (new_proto.p_name != NULL) {
200 size = strlen(new_proto.p_name);
201 memcpy(p, new_proto.p_name, size);
202 new_proto.p_name = p;
273 NS_APPLY_OFFSET(proto->p_name, orig_buf, p, char *);
304 len += strlen(pe->p_name) + 1;
318 n = strlen(pe->p_name) + 1;
319 strcpy(cp, pe->p_name);
[all...]
H A Dgetprotoname.c81 if (strcmp(pe.p_name, name) == 0)
/freebsd-current/usr.bin/bluetooth/bthost/
H A Dbthost.c127 printf("%s", pe->p_name);
132 pe->p_name, pe->p_proto);
/freebsd-current/contrib/tcpdump/
H A Dprint-cnfp.c161 const char *p_name; local
220 if (!ndo->ndo_nflag && (p_name = netdb_protoname(proto)) != NULL)
221 ND_PRINT("%s ", p_name);
256 const char *p_name; local
322 if (!ndo->ndo_nflag && (p_name = netdb_protoname(proto)) != NULL)
323 ND_PRINT("%s ", p_name);
358 const char *p_name; local
424 if (!ndo->ndo_nflag && (p_name = netdb_protoname(proto)) != NULL)
425 ND_PRINT("%s ", p_name);
H A Dprint-ip-demux.c44 const char *p_name; local
230 if (ndo->ndo_nflag==0 && (p_name = netdb_protoname(nh)) != NULL)
231 ND_PRINT(" %s", p_name);
H A Dprint-ip.c330 const char *p_name; local
506 if (!ndo->ndo_nflag && (p_name = netdb_protoname(ip_proto)) != NULL)
507 ND_PRINT(" %s", p_name);
H A Daddrtoname.c212 const char *p_name; member in struct:protoidmem
911 tp->p_name = strdup(eproto_db[i].s);
912 if (tp->p_name == NULL)
920 if (tp->p_name != NULL)
923 tp->p_name = pl->name;
/freebsd-current/usr.bin/indent/
H A Dargs.c86 const char *p_name; /* name, e.g. -bl, -cli */ member in struct:pro
253 for (p = pro; p->p_name; p++)
265 for (p = pro; p->p_name; p++)
266 if (*p->p_name == *arg && (param_start = eqin(p->p_name, arg)) != NULL)
322 errx(1, "%s: ``%s'' requires a parameter", option_source, p->p_name);
/freebsd-current/contrib/netbsd-tests/lib/libc/net/
H A Dh_protoent.c43 prp->p_name, prp->p_proto);
H A Dt_getprotoent.c95 ATF_REQUIRE(strcmp(p->p_name, protos[i].name) == 0);
141 ATF_REQUIRE(strcmp(p->p_name, protos[i].name) == 0);
/freebsd-current/lib/libcasper/services/cap_netdb/tests/
H A Dnetdb_test.c76 ATF_REQUIRE(pp->p_name != NULL);
/freebsd-current/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_sys.c752 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname));
759 "failed: %s", bp->p_name, strerror(errno));
784 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname));
789 "failed: %s", bp->p_name, strerror(errno));
801 "failed: %s", bp->p_name, strerror(errno));
826 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname));
833 "failed: %s", bp->p_name, strerror(errno));
859 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname));
864 "failed: %s", bp->p_name, strerror(errno));
885 "failed: %s", bp->p_name, strerro
[all...]
/freebsd-current/sys/dev/bhnd/tools/
H A Dnvram_map_gen.awk143 PROP_NAME = "p_name"
234 class_add_prop(MacroType, p_name, "name")
243 class_add_prop(MacroDefine, p_name, "name")
254 class_add_prop(Fmt, p_name, "name")
269 map_set(ValueFormats, get(FmtHex, p_name), FmtHex)
270 map_set(ValueFormats, get(FmtDec, p_name), FmtDec)
271 map_set(ValueFormats, get(FmtMAC, p_name), FmtMAC)
272 map_set(ValueFormats, get(FmtLEDDC, p_name), FmtLEDDC)
273 map_set(ValueFormats, get(FmtStr, p_name), FmtStr)
277 class_add_prop(Type, p_name, "nam
[all...]
/freebsd-current/lib/libbluetooth/
H A Dbluetooth.c182 if (strcmp(p->p_name, name) == 0)
226 proto.p_name = p;
/freebsd-current/include/
H A Dnetdb.h128 char *p_name; /* official protocol name */ member in struct:protoent
/freebsd-current/usr.sbin/ppp/
H A Dfilter.c148 tgt->f_srcport = ParsePort(argv[2], pe->p_name);
163 tgt->f_dstport = ParsePort(argv[2], pe->p_name);
475 prompt_Printf(prompt, "%s", pe->p_name);
/freebsd-current/usr.sbin/ctld/
H A Dctld.c1247 port->p_name = name;
1292 port->p_name = name;
1321 port->p_name = name;
1336 if (strcasecmp(port->p_name, name) == 0)
1367 free(port->p_name);
1994 newport = port_find(newconf, oldport->p_name);
1997 log_debugx("removing port \"%s\"", oldport->p_name);
2001 oldport->p_name);
2117 oldport = port_find(oldconf, newport->p_name);
2120 log_debugx("adding port \"%s\"", newport->p_name);
[all...]

Completed in 221 milliseconds

123