/freebsd/sys/cddl/dev/dtrace/ |
H A D | dtrace_sysctl.c | 27 char *p_name = NULL; in sysctl_dtrace_providers() local 42 if ((p_name = kmem_alloc(len, KM_SLEEP)) == NULL) in sysctl_dtrace_providers() 46 *p_name = '\0'; in sysctl_dtrace_providers() 54 (void) strlcat(p_name, " ", len); in sysctl_dtrace_providers() 56 (void) strlcat(p_name, prov->dtpv_name, len); in sysctl_dtrace_providers() 65 if (p_name != NULL) { in sysctl_dtrace_providers() 66 error = sysctl_handle_string(oidp, p_name, len, req); in sysctl_dtrace_providers() 68 kmem_free(p_name, 0); in sysctl_dtrace_providers()
|
/freebsd/lib/libc/tests/nss/ |
H A D | getproto_test.c | 87 if (src->p_name != NULL) { in IMPLEMENT_TEST_FILE_SNAPSHOT() 88 dest->p_name = strdup(src->p_name); in IMPLEMENT_TEST_FILE_SNAPSHOT() 89 assert(dest->p_name != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT() 116 free(pe->p_name); in free_protoent() 134 if ((strcmp(pe1->p_name, pe2->p_name) != 0) || in compare_protoent() 170 pe->p_name, pe->p_proto); in sdump_protoent() 210 pe->p_name = strdup(s); in protoent_read_snapshot_func() 211 assert(pe->p_name != NULL); in protoent_read_snapshot_func() 217 free(pe->p_name); in protoent_read_snapshot_func() 246 free(pe->p_name); in protoent_read_snapshot_func() [all …]
|
/freebsd/lib/libc/net/ |
H A D | getprotoent.c | 171 if (proto->p_name != NULL) in __proto_marshal_func() 172 desired_size += strlen(proto->p_name) + 1; in __proto_marshal_func() 199 if (new_proto.p_name != NULL) { in __proto_marshal_func() 200 size = strlen(new_proto.p_name); in __proto_marshal_func() 201 memcpy(p, new_proto.p_name, size); in __proto_marshal_func() 202 new_proto.p_name = p; in __proto_marshal_func() 273 NS_APPLY_OFFSET(proto->p_name, orig_buf, p, char *); in __proto_unmarshal_func() 304 len += strlen(pe->p_name) + 1; in __copy_protoent() 318 n = strlen(pe->p_name) + 1; in __copy_protoent() 319 strcpy(cp, pe->p_name); in __copy_protoent() [all …]
|
H A D | getprotoname.c | 81 if (strcmp(pe.p_name, name) == 0) in files_getprotobyname()
|
/freebsd/contrib/tcpdump/ |
H A D | print-cnfp.c | 159 const char *p_name; in cnfp_v1_print() local 218 if (!ndo->ndo_nflag && (p_name = netdb_protoname(proto)) != NULL) in cnfp_v1_print() 219 ND_PRINT("%s ", p_name); in cnfp_v1_print() 254 const char *p_name; in cnfp_v5_print() local 320 if (!ndo->ndo_nflag && (p_name = netdb_protoname(proto)) != NULL) in cnfp_v5_print() 321 ND_PRINT("%s ", p_name); in cnfp_v5_print() 356 const char *p_name; in cnfp_v6_print() local 422 if (!ndo->ndo_nflag && (p_name = netdb_protoname(proto)) != NULL) in cnfp_v6_print() 423 ND_PRINT("%s ", p_name); in cnfp_v6_print()
|
H A D | print-ip-demux.c | 42 const char *p_name; in ip_demux_print() local 228 if (ndo->ndo_nflag==0 && (p_name = netdb_protoname(nh)) != NULL) in ip_demux_print() 229 ND_PRINT(" %s", p_name); in ip_demux_print()
|
H A D | print-ip.c | 328 const char *p_name; in ip_print() local 492 if (!ndo->ndo_nflag && (p_name = netdb_protoname(ip_proto)) != NULL) in ip_print() 493 ND_PRINT(" %s", p_name); in ip_print()
|
H A D | addrtoname.c | 210 const char *p_name; member 908 tp->p_name = strdup(eproto_db[i].s); in init_protoidarray() 909 if (tp->p_name == NULL) in init_protoidarray() 917 if (tp->p_name != NULL) in init_protoidarray() 920 tp->p_name = pl->name; in init_protoidarray()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_sys.c | 752 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname)); in bridge_port_set_priority() 759 "failed: %s", bp->p_name, strerror(errno)); in bridge_port_set_priority() 784 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname)); in bridge_port_set_stp_enable() 789 "failed: %s", bp->p_name, strerror(errno)); in bridge_port_set_stp_enable() 801 "failed: %s", bp->p_name, strerror(errno)); in bridge_port_set_stp_enable() 826 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname)); in bridge_port_set_path_cost() 833 "failed: %s", bp->p_name, strerror(errno)); in bridge_port_set_path_cost() 859 strlcpy(b_req.ifbr_ifsname, bp->p_name, sizeof(b_req.ifbr_ifsname)); in bridge_port_set_admin_ptp() 864 "failed: %s", bp->p_name, strerror(errno)); in bridge_port_set_admin_ptp() 885 "failed: %s", bp->p_name, strerror(errno)); in bridge_port_set_admin_ptp() [all …]
|
/freebsd/usr.bin/indent/ |
H A D | args.c | 86 const char *p_name; /* name, e.g. -bl, -cli */ member 253 for (p = pro; p->p_name; p++) in set_defaults() 265 for (p = pro; p->p_name; p++) in set_option() 266 if (*p->p_name == *arg && (param_start = eqin(p->p_name, arg)) != NULL) in set_option() 322 errx(1, "%s: ``%s'' requires a parameter", option_source, p->p_name); in set_option()
|
/freebsd/sys/dev/bhnd/tools/ |
H A D | nvram_map_gen.awk | 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, "name") 325 map_set(BaseTypes, get(UInt8, p_name), UInt8) [all …]
|
/freebsd/lib/libcasper/services/cap_netdb/ |
H A D | cap_netdb.c | 58 pp->p_name = nvlist_take_string(nvl, "name"); in protoent_unpack() 66 free(pp->p_name); in protoent_unpack() 102 nvlist_add_string(nvl, "name", pp->p_name); in protoent_pack()
|
/freebsd/sbin/ipf/libipf/ |
H A D | printproto.c | 27 PRINTF("%s", pr->p_name); in printproto() 32 PRINTF("%s", pr->p_name); in printproto()
|
H A D | printactivenat.c | 62 PRINTF(" %s", pproto->p_name); in printactivenat() 87 PRINTF(" %s", pproto->p_name); in printactivenat() 111 PRINTF(" %s", pproto->p_name); in printactivenat()
|
H A D | getportproto.c | 34 s = getservbyname(name, p ? p->p_name : NULL); in getportproto()
|
H A D | portname.c | 32 if ((sv = getservbyport(htons(port), p->p_name))) { in portname()
|
H A D | getport.c | 81 s = getservbyname(name, p ? p->p_name : NULL); in getport()
|
/freebsd/usr.bin/bluetooth/bthost/ |
H A D | bthost.c | 127 printf("%s", pe->p_name); in protomode() 132 pe->p_name, pe->p_proto); in protomode()
|
/freebsd/contrib/netbsd-tests/lib/libc/net/ |
H A D | t_getprotoent.c | 95 ATF_REQUIRE(strcmp(p->p_name, protos[i].name) == 0); in ATF_TC_BODY() 141 ATF_REQUIRE(strcmp(p->p_name, protos[i].name) == 0); in ATF_TC_BODY()
|
H A D | h_protoent.c | 43 prp->p_name, prp->p_proto); in pserv()
|
/freebsd/lib/libcasper/services/cap_netdb/tests/ |
H A D | netdb_test.c | 76 ATF_REQUIRE(pp->p_name != NULL); in ATF_TC_BODY()
|
/freebsd/lib/libbluetooth/ |
H A D | bluetooth.c | 182 if (strcmp(p->p_name, name) == 0) in bt_getprotobyname() 226 proto.p_name = p; in bt_getprotoent()
|
/freebsd/usr.sbin/ctld/ |
H A D | ctld.c | 1143 port->p_name = name; in port_new() 1189 port->p_name = name; in port_new_ioctl() 1218 port->p_name = name; in port_new_pp() 1233 if (strcasecmp(port->p_name, name) == 0) in port_find() 1264 free(port->p_name); in port_delete() 1974 newport = port_find(newconf, oldport->p_name); in conf_apply() 1977 log_debugx("removing port \"%s\"", oldport->p_name); in conf_apply() 1981 oldport->p_name); in conf_apply() 2097 oldport = port_find(oldconf, newport->p_name); in conf_apply() 2100 log_debugx("adding port \"%s\"", newport->p_name); in conf_apply() [all …]
|
/freebsd/usr.sbin/ppp/ |
H A D | filter.c | 148 tgt->f_srcport = ParsePort(argv[2], pe->p_name); in ParseUdpOrTcp() 163 tgt->f_dstport = ParsePort(argv[2], pe->p_name); in ParseUdpOrTcp() 475 prompt_Printf(prompt, "%s", pe->p_name); in doShowFilter()
|
/freebsd/include/ |
H A D | netdb.h | 128 char *p_name; /* official protocol name */ member
|