Home
last modified time | relevance | path

Searched refs:protoent (Results 1 – 25 of 63) sorted by relevance

123

/openbsd/gnu/usr.bin/perl/lib/Net/
H A Dprotoent.t19 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 Dprotoent.pm1 package Net::protoent;
/openbsd/regress/lib/libc/netdb/
H A Dnetdb.c15 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 Dplan9.c62 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 Dnetdb.h135 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 Dgetproto.c35 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 Dgetprotoname.c36 getprotobyname_r(const char *name, struct protoent *pe, in getprotobyname_r()
59 struct protoent *
63 static struct protoent proto; in getprotobyname()
H A Dgetprotoent.c69 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 Dsocket.h92 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 Dwin32sck.c662 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 Dlinux-android.sh117 struct protoent* test = getprotobyname("tcp");
134 struct protoent* test = getprotobynumber(1);
/openbsd/gnu/usr.bin/perl/
H A Dreentr.h723 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 Dclnt_generic.c49 struct protoent *p; in clnt_create()
/openbsd/gnu/usr.bin/perl/regen/
H A Dreentr.pl1215 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 Dicmp.c69 struct protoent *proto; in icmp_startup()
/openbsd/gnu/gcc/gcc/
H A Dsys-types.h76 struct protoent;
H A Dsys-protos.h483 extern struct protoent * getprotobyname(/* ??? */);
484 extern struct protoent * getprotobynumber(/* ??? */);
485 extern struct protoent * getprotoent(/* ??? */);
/openbsd/gnu/usr.bin/gcc/gcc/
H A Dsys-types.h76 struct protoent;
H A Dsys-protos.h483 extern struct protoent * getprotobyname(/* ??? */);
484 extern struct protoent * getprotobynumber(/* ??? */);
485 extern struct protoent * getprotoent(/* ??? */);
/openbsd/gnu/gcc/libmudflap/
H A Dmf-hooks2.c2126 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 Dnametoaddr.c175 struct protoent *p; in pcap_nametoproto()
/openbsd/regress/usr.bin/make/
H A Dmk16173 Net::protoent 3p lib/Net/protoent.pm \
/openbsd/usr.bin/netstat/
H A Dmain.c454 struct protoent *p; in name2protox()
/openbsd/usr.bin/getent/
H A Dgetent.c329 struct protoent *pe; in protocols()
/openbsd/sbin/pfctl/
H A Dpf_print_state.c206 struct protoent *p; in print_state()

123