Searched refs:protoent (Results 1 - 25 of 29) sorted by relevance

12

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/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;
19 struct 'Net::protoent' => [
49 Net::protoent - by-name interface to Perl's built-in getproto*() functions
53 use Net::protoent;
58 use Net::protoent qw(:FIELDS);
66 versions that return "Net::protoent" objects. They take default
68 similarly named structure field name from the C's protoent structure
/osnet-11/usr/src/lib/libsocket/inet/
H A Dgetprotoent.c46 NSS_XbyY_ALLOC(&buffer, (int)sizeof (struct protoent), NSS_BUFLEN_PROTOCOLS)
49 struct protoent *
53 struct protoent *res = 0;
61 struct protoent *
65 struct protoent *res = 0;
74 struct protoent *
78 struct protoent *res = 0;
H A Dgetprotoent_r.c53 struct protoent *
54 getprotobyname_r(const char *name, struct protoent *result,
71 return ((struct protoent *)arg.returnval);
74 struct protoent *
75 getprotobynumber_r(int proto, struct protoent *result, char *buffer, int buflen)
87 return ((struct protoent *)arg.returnval);
107 struct protoent *
108 getprotoent_r(struct protoent *result, char *buffer, int buflen)
118 return ((struct protoent *)arg.returnval);
130 void *ent /* it is really (struct protoent *) */,
[all...]
/osnet-11/usr/src/lib/libresolv/
H A Dnetdb.h83 struct protoent { struct
107 struct protoent *getprotobyname_r
108 (const char *, struct protoent *, char *, int);
109 struct protoent *getprotobynumber_r
110 (int, struct protoent *, char *, int);
111 struct protoent *getprotoent_r(struct protoent *, char *, int);
126 struct protoent *getprotobyname(const char *);
127 struct protoent *getprotobynumber(int);
128 struct protoent *getprotoen
[all...]
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dgetprotoent_r.c37 copy_protoent(struct protoent *, struct protoent *, PROTO_R_COPY_ARGS);
40 getprotobyname_r(const char *name, struct protoent *pptr, PROTO_R_ARGS) {
41 struct protoent *pe = getprotobyname(name);
60 getprotobynumber_r(int proto, struct protoent *pptr, PROTO_R_ARGS) {
61 struct protoent *pe = getprotobynumber(proto);
86 getprotoent_r(struct protoent *pptr, PROTO_R_ARGS) {
87 struct protoent *pe = getprotoent();
139 copy_protoent(struct protoent *pe, struct protoent *ppt
[all...]
H A Dirp_pr.c56 struct protoent proto;
62 static struct protoent * pr_next(struct irs_pr *);
63 static struct protoent * pr_byname(struct irs_pr *, const char *);
64 static struct protoent * pr_bynumber(struct irs_pr *, int);
68 static void free_proto(struct protoent *pr);
126 * struct protoent * pr_byname(struct irs_pr *this, const char *name)
130 static struct protoent *
133 struct protoent *pr = &pvt->proto;
175 * struct protoent * pr_bynumber(struct irs_pr *this, int proto)
179 static struct protoent *
[all...]
H A Ddns_pr.c51 struct protoent proto;
58 static struct protoent * pr_byname(struct irs_pr *, const char *);
59 static struct protoent * pr_bynumber(struct irs_pr *, int);
60 static struct protoent * pr_next(struct irs_pr *);
68 static struct protoent * parse_hes_list(struct irs_pr *, char **);
121 static struct protoent *
125 struct protoent *proto;
136 static struct protoent *
140 struct protoent *proto;
153 static struct protoent *
[all...]
H A Dgetprotoent.c50 struct protoent *
57 struct protoent *
64 struct protoent *
87 struct protoent *
97 struct protoent *
117 struct protoent *
H A Dirs_data.h40 struct protoent * pr_last;
H A Dgen_pr.c55 static struct protoent * pr_next(struct irs_pr *);
56 static struct protoent * pr_byname(struct irs_pr *, const char *);
57 static struct protoent * pr_bynumber(struct irs_pr *, int);
108 static struct protoent *
111 struct protoent *rval;
130 static struct protoent *
134 struct protoent *rval;
147 static struct protoent *
151 struct protoent *rval;
H A Dlcl_pr.c93 struct protoent proto;
100 static struct protoent * pr_next(struct irs_pr *);
101 static struct protoent * pr_byname(struct irs_pr *, const char *);
102 static struct protoent * pr_bynumber(struct irs_pr *, int);
155 static struct protoent *
158 struct protoent *p;
173 static struct protoent *
175 struct protoent *p;
201 static struct protoent *
H A Dirpmarshall.c723 /* +++++++++++++++++++++++++ struct protoent +++++++++++++++++++++++++ */
726 * int irp_marshall_pr(struct protoent *pr, char **buffer, size_t *len)
739 irp_marshall_pr(struct protoent *pr, char **buffer, size_t *len) {
785 * int irp_unmarshall_pr(struct protoent *pr, char *buffer)
797 int irp_unmarshall_pr(struct protoent *pr, char *buffer) {
865 /* ------------------------- struct protoent ------------------------- */
/osnet-11/usr/src/lib/libresolv2/include/
H A Dport_netdb.h120 struct protoent *getprotobyname __P((const char *));
124 struct protoent *getprotobyname_r __P((const char *, struct protoent *,
129 struct protoent *getprotobynumber __P((int));
133 struct protoent *getprotobynumber_r __P((int,
134 struct protoent *, char *, int));
138 struct protoent *getprotoent __P((void));
142 struct protoent *getprotoent_r __P((struct protoent *, char *, int));
H A Dirs.h93 struct protoent *(*byname) __P((struct irs_pr *, const char *));
94 struct protoent *(*bynumber) __P((struct irs_pr *, int));
95 struct protoent *(*next) __P((struct irs_pr *));
318 extern struct protoent *getprotoent_p __P((struct net_data *));
319 extern struct protoent *getprotobyname_p __P((const char *,
321 extern struct protoent *getprotobynumber_p __P((int, struct net_data *));
H A Dport_before.h140 #define PROTO_R_RETURN struct protoent *
/osnet-11/usr/src/lib/libresolv2/include/isc/
H A Dirpmarshall.h54 int irp_marshall_pr(struct protoent *, char **, size_t *);
55 int irp_unmarshall_pr(struct protoent *, char *);
/osnet-11/usr/src/lib/libwrap/
H A Dfix_options.c47 struct protoent *ip;
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dreentr.inc817 # define getprotobyname(a) ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0))
820 # define getprotobyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));})
823 static struct protoent* Perl_reentr_getprotobyname(const char* a) {
826 return ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));
836 # define getprotobyname(a) ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0))
839 # define getprotobyname(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));})
842 static struct protoent* Perl_reentr_getprotobyname(const char* a) {
845 return ((PL_REENTRANT_RETINT = getprotobyname_r(a, &PL_reentrant_buffer->_protoent_struct, &PL_reentrant_buffer->_protoent_data)) == 0 ? &PL_reentrant_buffer->_protoent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobyname", a) : 0));
856 # define getprotobynumber(a) ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retry("getprotobynumber", a) : 0))
859 # define getprotobynumber(a) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getprotobynumber_r(a, &PL_reentrant_buffer->_protoent_struct, PL_reentrant_buffer->_protoent_buffer, PL_reentrant_buffer->_protoent_size, &PL_reentrant_buffer->_protoent_ptr)) == 0 ? PL_reentrant_buffer->_protoent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct protoent*)Perl_reentrant_retr
[all...]
H A Dreentr.h668 struct protoent _protoent_struct;
676 struct protoent* _protoent_ptr;
H A Diperlsys.h1152 typedef struct protoent*(*LPGetprotobyname)(struct IPerlSock*, const char*);
1153 typedef struct protoent*(*LPGetprotobynumber)(struct IPerlSock*, int);
1154 typedef struct protoent*(*LPGetprotoent)(struct IPerlSock*);
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c1003 struct protoent *pp;
1112 static struct protoent *
1116 static struct protoent prot;
1138 struct protoent *pp;
/osnet-11/usr/src/lib/libtsnet/common/
H A Dtsol_sgetzcent.c67 struct protoent proto;
/osnet-11/usr/src/lib/libexacct/demo/
H A Dexdump.c220 struct protoent *proto_ent;
/osnet-11/usr/src/lib/libinetsvc/common/
H A Dinetsvc.c684 struct protoent pe;

Completed in 48 milliseconds

12