/openbsd/gnu/usr.bin/perl/lib/Net/ |
H A D | protoent.t | 19 our @protoent = getprotobyname "tcp"; # This is the function getprotobyname. 20 unless (@protoent) { print "1..0 # Skip: no tcp protocol\n"; exit 0 } 25 use Net::protoent; 29 my $protoent = getprotobyname "tcp"; # This is the OO getprotobyname. 31 print "not " unless $protoent->name eq $protoent[0]; 34 print "not " unless $protoent->proto == $protoent[2];
|
H A D | protoent.pm | 1 package Net::protoent;
|
/openbsd/regress/lib/libc/netdb/ |
H A D | netdb.c | 15 checkp(int n, struct protoent *p, int proto, const char *name, ...) in checkp() 101 struct protoent *p; in main() 102 struct protoent protoent; in main() local 126 r = getprotobynumber_r(35, &protoent, &protoent_data); in main() 130 checkp(5, &protoent, 35, "idpr", "IDPR", (char *)NULL); in main() 132 r = getprotobyname_r("vrrp", &protoent, &protoent_data); in main() 135 checkp(6, &protoent, 112, "carp", "CARP", "vrrp", (char *) NULL); in main() 137 r = getprotobyname_r("nonexistent", &protoent, &protoent_data); in main() 141 r = getprotobyname_r("", &protoent, &protoent_data); in main() 146 r = getprotobynumber_r(256, &protoent, &protoent_data); in main()
|
/openbsd/gnu/usr.bin/perl/plan9/ |
H A D | plan9.c | 62 struct protoent *getprotobyname(const char *a) in getprotobyname() 65 return (struct protoent *)NULL; in getprotobyname() 68 struct protoent *getprotobynumber(int a) in getprotobynumber() 71 return (struct protoent *)NULL; in getprotobynumber() 74 struct protoent *getprotoent() in getprotoent() 77 return (struct protoent *)NULL; in getprotoent()
|
/openbsd/include/ |
H A D | netdb.h | 135 struct protoent { struct 283 struct protoent *getprotobyname(const char *); 284 struct protoent *getprotobynumber(int); 285 struct protoent *getprotoent(void); 302 int getprotobyname_r(const char *, struct protoent *, 304 int getprotobynumber_r(int, struct protoent *, 311 int getprotoent_r(struct protoent *, struct protoent_data *);
|
/openbsd/lib/libc/net/ |
H A D | getproto.c | 35 getprotobynumber_r(int num, struct protoent *pe, struct protoent_data *pd) in getprotobynumber_r() 51 struct protoent * 55 static struct protoent proto; in getprotobynumber()
|
H A D | getprotoname.c | 36 getprotobyname_r(const char *name, struct protoent *pe, in getprotobyname_r() 59 struct protoent * 63 static struct protoent proto; in getprotobyname()
|
H A D | getprotoent.c | 69 getprotoent_r(struct protoent *pe, struct protoent_data *pd) in getprotoent_r() 161 struct protoent * 164 static struct protoent proto; in getprotoent()
|
/openbsd/gnu/usr.bin/perl/win32/include/sys/ |
H A D | socket.h | 92 struct protoent * win32_getprotobynumber(int proto); 93 struct protoent * win32_getprotobyname(const char * name); 94 struct protoent *win32_getprotoent(void);
|
/openbsd/gnu/usr.bin/perl/win32/ |
H A D | win32sck.c | 662 struct protoent * 665 struct protoent *r; in win32_getprotobyname() 671 struct protoent * 674 struct protoent *r; in win32_getprotobynumber() 794 struct protoent * 798 return (struct protoent *) NULL; in win32_getprotoent()
|
/openbsd/gnu/usr.bin/perl/hints/ |
H A D | linux-android.sh | 117 struct protoent* test = getprotobyname("tcp"); 134 struct protoent* test = getprotobynumber(1);
|
/openbsd/gnu/usr.bin/perl/ |
H A D | reentr.h | 723 struct protoent _protoent_struct; 731 struct protoent* _protoent_ptr; 1267 …rant_buffer->_protoent_ptr : ((PL_reentrant_retint == ERANGE) ? (struct protoent *) Perl_reentrant… 1270 …? &PL_reentrant_buffer->_protoent_struct : ((errno == ERANGE) ? (struct protoent *) Perl_reentrant… 1273 …t_buffer->_protoent_struct : ((PL_reentrant_retint == ERANGE) ? (struct protoent *) Perl_reentrant… 1286 …rant_buffer->_protoent_ptr : ((PL_reentrant_retint == ERANGE) ? (struct protoent *) Perl_reentrant… 1289 …? &PL_reentrant_buffer->_protoent_struct : ((errno == ERANGE) ? (struct protoent *) Perl_reentrant… 1305 …rant_buffer->_protoent_ptr : ((PL_reentrant_retint == ERANGE) ? (struct protoent *) Perl_reentrant… 1308 …t_buffer->_protoent_struct : ((PL_reentrant_retint == ERANGE) ? (struct protoent *) Perl_reentrant… 1311 …? &PL_reentrant_buffer->_protoent_struct : ((errno == ERANGE) ? (struct protoent *) Perl_reentrant… [all …]
|
/openbsd/lib/libc/rpc/ |
H A D | clnt_generic.c | 49 struct protoent *p; in clnt_create()
|
/openbsd/gnu/usr.bin/perl/regen/ |
H A D | reentr.pl | 1215 getprotobyname C|netdb |struct protoent|I_CSBWR|S_CSBI|I_CSD|D=struct protoent_data* 1216 getprotobynumber I |netdb |struct protoent|I_ISBWR|S_ISBI|I_ISD|D=struct protoent_data* 1217 getprotoent |netdb |struct protoent|I_SBWR|I_SBI|S_SBI|I_SD|D=struct protoent_data*
|
/openbsd/usr.sbin/dhcpd/ |
H A D | icmp.c | 69 struct protoent *proto; in icmp_startup()
|
/openbsd/gnu/gcc/gcc/ |
H A D | sys-types.h | 76 struct protoent;
|
H A D | sys-protos.h | 483 extern struct protoent * getprotobyname(/* ??? */); 484 extern struct protoent * getprotobynumber(/* ??? */); 485 extern struct protoent * getprotoent(/* ??? */);
|
/openbsd/gnu/usr.bin/gcc/gcc/ |
H A D | sys-types.h | 76 struct protoent;
|
H A D | sys-protos.h | 483 extern struct protoent * getprotobyname(/* ??? */); 484 extern struct protoent * getprotobynumber(/* ??? */); 485 extern struct protoent * getprotoent(/* ??? */);
|
/openbsd/gnu/gcc/libmudflap/ |
H A D | mf-hooks2.c | 2126 WRAPPER2(struct protoent *, getprotoent, void) in WRAPPER2() argument 2128 struct protoent *buf; in WRAPPER2() 2138 WRAPPER2(struct protoent *, getprotobyname, const char *name) in WRAPPER2() argument 2140 struct protoent *buf; in WRAPPER2() 2153 WRAPPER2(struct protoent *, getprotobynumber, int port) in WRAPPER2() argument 2155 struct protoent *buf; in WRAPPER2()
|
/openbsd/lib/libpcap/ |
H A D | nametoaddr.c | 175 struct protoent *p; in pcap_nametoproto()
|
/openbsd/regress/usr.bin/make/ |
H A D | mk16 | 173 Net::protoent 3p lib/Net/protoent.pm \
|
/openbsd/usr.bin/netstat/ |
H A D | main.c | 454 struct protoent *p; in name2protox()
|
/openbsd/usr.bin/getent/ |
H A D | getent.c | 329 struct protoent *pe; in protocols()
|
/openbsd/sbin/pfctl/ |
H A D | pf_print_state.c | 206 struct protoent *p; in print_state()
|