| /freebsd-14-stable/lib/libc/tests/nss/ |
| HD | 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-14-stable/lib/libc/net/ |
| HD | getprotoent.c | 146 struct protoent *proto; in __proto_marshal_func() 150 struct protoent new_proto; in __proto_marshal_func() 169 proto = va_arg(ap, struct protoent *); in __proto_marshal_func() 173 desired_size = _ALIGNBYTES + sizeof(struct protoent) + sizeof(char *); in __proto_marshal_func() 194 memcpy(&new_proto, proto, sizeof(struct protoent)); in __proto_marshal_func() 198 p = buffer + sizeof(struct protoent) + sizeof(char *); in __proto_marshal_func() 199 memcpy(buffer + sizeof(struct protoent), &p, sizeof(char *)); in __proto_marshal_func() 223 memcpy(buffer, &new_proto, sizeof(struct protoent)); in __proto_marshal_func() 233 struct protoent *proto; in __proto_unmarshal_func() 255 proto = va_arg(ap, struct protoent *); in __proto_unmarshal_func() [all …]
|
| HD | getproto.c | 52 struct protoent pe; in files_getprotobynumber() 57 struct protoent *pptr; in files_getprotobynumber() 63 pptr = va_arg(ap, struct protoent *); in files_getprotobynumber() 88 *((struct protoent **)retval) = pptr; in files_getprotobynumber() 93 getprotobynumber_r(int proto, struct protoent *pptr, char *buffer, in getprotobynumber_r() 94 size_t buflen, struct protoent **result) in getprotobynumber_r() 124 struct protoent * 128 struct protoent *rval; in getprotobynumber()
|
| HD | getprotoname.c | 59 struct protoent pe; in files_getprotobyname() 65 struct protoent *pptr; in files_getprotobyname() 71 pptr = va_arg(ap, struct protoent *); in files_getprotobyname() 102 *((struct protoent **)retval) = pptr; in files_getprotobyname() 108 getprotobyname_r(const char *name, struct protoent *pptr, char *buffer, in getprotobyname_r() 109 size_t buflen, struct protoent **result) in getprotobyname_r() 138 struct protoent * 142 struct protoent *rval; in getprotobyname()
|
| HD | 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-14-stable/include/ |
| HD | netdb.h | 128 struct protoent { struct 241 struct protoent *getprotobyname(const char *); 242 struct protoent *getprotobynumber(int); 243 struct protoent *getprotoent(void); 281 int getprotobyname_r(const char *, struct protoent *, char *, 282 size_t, struct protoent **); 283 int getprotobynumber_r(int, struct protoent *, char *, size_t, 284 struct protoent **); 285 int getprotoent_r(struct protoent *, char *, size_t, 286 struct protoent **);
|
| /freebsd-14-stable/usr.bin/getaddrinfo/ |
| HD | getaddrinfo.c | 189 struct protoent *protoent; in parse_protocol() local 206 protoent = getprotobyname(string); in parse_protocol() 207 if (protoent == NULL) in parse_protocol() 210 *protop = protoent->p_proto; in parse_protocol() 266 struct protoent *protoent; in printaddrinfo() local 290 protoent = getprotobynumber(ai->ai_protocol); in printaddrinfo() 291 if (protoent == NULL) in printaddrinfo() 294 n = printf(" %s", protoent->p_name); in printaddrinfo()
|
| /freebsd-14-stable/lib/libcasper/services/cap_netdb/ |
| HD | 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()
|
| HD | cap_netdb.h | 40 struct protoent *cap_getprotobyname(cap_channel_t *chan, const char *name);
|
| /freebsd-14-stable/contrib/netbsd-tests/lib/libc/net/ |
| HD | 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()
|
| HD | t_protoent.sh | 28 atf_test_case protoent 90 atf_add_test_case protoent
|
| HD | h_protoent.c | 38 pserv(const struct protoent *prp) in pserv() 62 struct protoent *prp; in main()
|
| /freebsd-14-stable/lib/libbluetooth/ |
| HD | 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 *
|
| HD | bluetooth.h | 81 struct protoent * bt_getprotobyname (char const *name); 82 struct protoent * bt_getprotobynumber (int proto); 83 struct protoent * bt_getprotoent (void);
|
| /freebsd-14-stable/sys/netgraph/ |
| HD | 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-14-stable/crypto/heimdal/lib/roken/ |
| HD | 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-14-stable/contrib/libpcap/ |
| HD | nametoaddr.c | 511 struct protoent *p; in pcap_nametoproto() 516 struct protoent result_buf; in pcap_nametoproto() 532 struct protoent result_buf; in pcap_nametoproto() 540 struct protoent result_buf; in pcap_nametoproto()
|
| /freebsd-14-stable/sbin/ipf/libipf/ |
| HD | getproto.c | 18 struct protoent *p; in getproto()
|
| HD | getportproto.c | 17 struct protoent *p; in getportproto()
|
| HD | printproto.c | 16 printproto(struct protoent *pr, int p, ipnat_t *np) in printproto()
|
| HD | portname.c | 16 struct protoent *p = NULL; in portname()
|
| HD | getport.c | 16 struct protoent *p; in getport()
|
| /freebsd-14-stable/sbin/ipfw/ |
| HD | nat.c | 571 struct protoent *protoent; in setup_redir_proto() local 583 protoent = getprotobyname(**av); in setup_redir_proto() 584 if (protoent == NULL) in setup_redir_proto() 587 r->proto = protoent->p_proto; in setup_redir_proto() 640 struct protoent *p; in nat_show_cfg()
|
| /freebsd-14-stable/lib/libcasper/services/cap_netdb/tests/ |
| HD | netdb_test.c | 69 struct protoent *pp; in ATF_TC_BODY()
|
| /freebsd-14-stable/contrib/tcp_wrappers/ |
| HD | fix_options.c | 44 struct protoent *ip; in fix_options()
|