| /freebsd/lib/libc/tests/nss/ |
| H A D | getproto_test.c | 50 DECLARE_TEST_DATA(protoent) 51 DECLARE_TEST_FILE_SNAPSHOT(protoent) 52 DECLARE_1PASS_TEST(protoent) 53 DECLARE_2PASS_TEST(protoent) 55 static void clone_protoent(struct protoent *, struct protoent const *); 56 static int compare_protoent(struct protoent *, struct protoent *, void *); 57 static void dump_protoent(struct protoent *); 58 static void free_protoent(struct protoent *); 60 static void sdump_protoent(struct protoent *, char *, size_t); 61 static int protoent_read_snapshot_func(struct protoent *, char *); [all …]
|
| /freebsd/lib/libc/net/ |
| H A D | getprotoent.c | 143 struct protoent *proto; in __proto_marshal_func() 147 struct protoent new_proto; in __proto_marshal_func() 166 proto = va_arg(ap, struct protoent *); in __proto_marshal_func() 170 desired_size = _ALIGNBYTES + sizeof(struct protoent) + sizeof(char *); in __proto_marshal_func() 191 memcpy(&new_proto, proto, sizeof(struct protoent)); in __proto_marshal_func() 195 p = buffer + sizeof(struct protoent) + sizeof(char *); in __proto_marshal_func() 196 memcpy(buffer + sizeof(struct protoent), &p, sizeof(char *)); in __proto_marshal_func() 220 memcpy(buffer, &new_proto, sizeof(struct protoent)); in __proto_marshal_func() 230 struct protoent *proto; in __proto_unmarshal_func() 252 proto = va_arg(ap, struct protoent *); in __proto_unmarshal_func() [all …]
|
| H A D | getproto.c | 49 struct protoent pe; in files_getprotobynumber() 54 struct protoent *pptr; in files_getprotobynumber() 60 pptr = va_arg(ap, struct protoent *); in files_getprotobynumber() 85 *((struct protoent **)retval) = pptr; in files_getprotobynumber() 90 getprotobynumber_r(int proto, struct protoent *pptr, char *buffer, in getprotobynumber_r() 91 size_t buflen, struct protoent **result) in getprotobynumber_r() 121 struct protoent * 125 struct protoent *rval; in getprotobynumber()
|
| H A D | getprotoname.c | 56 struct protoent pe; in files_getprotobyname() 62 struct protoent *pptr; in files_getprotobyname() 68 pptr = va_arg(ap, struct protoent *); in files_getprotobyname() 99 *((struct protoent **)retval) = pptr; in files_getprotobyname() 105 getprotobyname_r(const char *name, struct protoent *pptr, char *buffer, in getprotobyname_r() 106 size_t buflen, struct protoent **result) in getprotobyname_r() 135 struct protoent * 139 struct protoent *rval; in getprotobyname()
|
| H A D | netdb_private.h | 114 struct protoent proto; 127 int __copy_protoent(struct protoent *, struct protoent *, char *, size_t); 130 int __getprotoent_p(struct protoent *, struct protoent_data *);
|
| /freebsd/include/ |
| H A D | netdb.h | 127 struct protoent { struct 240 struct protoent *getprotobyname(const char *); 241 struct protoent *getprotobynumber(int); 242 struct protoent *getprotoent(void); 280 int getprotobyname_r(const char *, struct protoent *, char *, 281 size_t, struct protoent **); 282 int getprotobynumber_r(int, struct protoent *, char *, size_t, 283 struct protoent **); 284 int getprotoent_r(struct protoent *, char *, size_t, 285 struct protoent **);
|
| /freebsd/usr.bin/getaddrinfo/ |
| H A D | getaddrinfo.c | 188 struct protoent *protoent; in parse_protocol() local 205 protoent = getprotobyname(string); in parse_protocol() 206 if (protoent == NULL) in parse_protocol() 209 *protop = protoent->p_proto; in parse_protocol() 265 struct protoent *protoent; in printaddrinfo() local 289 protoent = getprotobynumber(ai->ai_protocol); in printaddrinfo() 290 if (protoent == NULL) in printaddrinfo() 293 n = printf(" %s", protoent->p_name); in printaddrinfo()
|
| /freebsd/lib/libcasper/services/cap_netdb/ |
| H A D | cap_netdb.c | 45 static struct protoent * 48 struct protoent *pp; in protoent_unpack() 79 struct protoent * 98 protoent_pack(const struct protoent *pp, nvlist_t *nvl) in protoent_pack() 117 struct protoent *pp; in netdb_getprotobyname()
|
| H A D | cap_netdb.h | 40 struct protoent *cap_getprotobyname(cap_channel_t *chan, const char *name);
|
| /freebsd/contrib/netbsd-tests/lib/libc/net/ |
| H A D | t_getprotoent.c | 57 struct protoent *p; in ATF_TC_BODY() 86 struct protoent *p; in ATF_TC_BODY() 129 struct protoent *p; in ATF_TC_BODY() 172 struct protoent *p; in ATF_TC_BODY() 194 struct protoent *p; in ATF_TC_BODY()
|
| H A D | t_protoent.sh | 28 atf_test_case protoent 90 atf_add_test_case protoent
|
| H A D | h_protoent.c | 38 pserv(const struct protoent *prp) in pserv() 62 struct protoent *prp; in main()
|
| /freebsd/lib/libbluetooth/ |
| H A D | bluetooth.c | 53 static struct protoent proto; 174 struct protoent * 177 struct protoent *p; in bt_getprotobyname() 194 struct protoent * 197 struct protoent *p; in bt_getprotobynumber() 208 struct protoent *
|
| H A D | bluetooth.h | 81 struct protoent * bt_getprotobyname (char const *name); 82 struct protoent * bt_getprotobynumber (int proto); 83 struct protoent * bt_getprotoent (void);
|
| /freebsd/sys/netgraph/ |
| H A D | ng_cisco.c | 89 struct protoent { struct 101 struct protoent downstream; argument 102 struct protoent inet; /* IP information */ 105 struct protoent inet6; /* IPv6 information */ 106 struct protoent atalk; /* AppleTalk information */ 107 struct protoent ipx; /* IPX information */ 341 struct protoent *pep; in cisco_rcvdata() 416 struct protoent *pep; in cisco_disconnect() 441 struct protoent *pep; in cisco_input()
|
| /freebsd/crypto/heimdal/lib/roken/ |
| H A D | getaddrinfo.c | 55 struct protoent *protoent = getprotobynumber (hints->ai_protocol); in get_port_protocol_socktype() local 57 if (protoent == NULL) in get_port_protocol_socktype() 60 proto_str = protoent->p_name; in get_port_protocol_socktype() 61 *protocol = protoent->p_proto; in get_port_protocol_socktype()
|
| /freebsd/sbin/ipf/libipf/ |
| H A D | getproto.c | 18 struct protoent *p; in getproto()
|
| H A D | getportproto.c | 17 struct protoent *p; in getportproto()
|
| H A D | printproto.c | 13 printproto(struct protoent *pr, int p, ipnat_t *np) in printproto()
|
| H A D | portname.c | 16 struct protoent *p = NULL; in portname()
|
| H A D | getport.c | 16 struct protoent *p; in getport()
|
| /freebsd/sbin/ipfw/ |
| H A D | nat.c | 572 struct protoent *protoent; in setup_redir_proto() local 584 protoent = getprotobyname(**av); in setup_redir_proto() 585 if (protoent == NULL) in setup_redir_proto() 588 r->proto = protoent->p_proto; in setup_redir_proto() 641 struct protoent *p; in nat_show_cfg()
|
| /freebsd/contrib/libpcap/ |
| H A D | nametoaddr.c | 486 struct protoent *p; in pcap_nametoproto() 491 struct protoent result_buf; in pcap_nametoproto() 507 struct protoent result_buf; in pcap_nametoproto() 515 struct protoent result_buf; in pcap_nametoproto()
|
| /freebsd/lib/libcasper/services/cap_netdb/tests/ |
| H A D | netdb_test.c | 68 struct protoent *pp; in ATF_TC_BODY()
|
| /freebsd/crypto/krb5/src/lib/rpc/ |
| H A D | clnt_generic.c | 59 struct protoent *p; in clnt_create()
|