/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Net/ |
H A D | servent.t | 19 our @servent = getservbyname "echo", "tcp"; # This is the function getservbyname. 20 unless (@servent) { print "1..0 # Skip: no echo service\n"; exit 0 } 25 use Net::servent; 29 my $servent = getservbyname "echo", "tcp"; # This is the OO getservbyname. 31 print "not " unless $servent->name eq $servent[0]; 34 print "not " unless $servent->port == $servent[2];
|
H A D | servent.pm | 1 package Net::servent; 19 struct 'Net::servent' => [ 51 Net::servent - by-name interface to Perl's built-in getserv*() functions 55 use Net::servent; 60 use Net::servent qw(:FIELDS); 69 "Net::servent" objects. They take default second arguments of "tcp". This object has methods that return the similarly 70 named structure field name from the C's servent structure from F<netdb.h>; 93 use Net::servent qw(:FIELDS);
|
/osnet-11/usr/src/lib/libsocket/inet/ |
H A D | getservent.c | 45 NSS_XbyY_ALLOC(&buffer, (int)sizeof (struct servent), NSS_BUFLEN_SERVICES) 48 struct servent * 52 struct servent *res = 0; 61 struct servent * 65 struct servent *res = 0; 74 struct servent * 78 struct servent *res = 0;
|
H A D | getservbyname_r.c | 58 struct servent * 59 getservbyname_r(const char *name, const char *proto, struct servent *result, 69 return ((struct servent *)NULL); 87 return ((struct servent *)NULL); 92 struct servent * 93 getservbyport_r(int port, const char *proto, struct servent *result, 103 return ((struct servent *)NULL); 121 return ((struct servent *)NULL);
|
H A D | getservent_r.c | 79 struct servent * 80 getservent_r(struct servent *result, char *buffer, int buflen) 99 return (struct servent *)NSS_XbyY_FINI(&arg);
|
/osnet-11/usr/src/lib/libresolv/ |
H A D | netdb.h | 76 struct servent { struct 96 struct servent *getservbyname_r 97 (const char *name, const char *, struct servent *, char *, int); 98 struct servent *getservbyport_r 99 (int port, const char *, struct servent *, char *, int); 100 struct servent *getservent_r(struct servent *, char *, int); 123 struct servent *getservbyname(const char *, const char *); 124 struct servent *getservbyport(int, const char *); 125 struct servent *getserven [all...] |
/osnet-11/usr/src/lib/libresolv2/common/irs/ |
H A D | irs_p.h | 34 struct servent serv; 47 extern struct servent * irs_lclsv_fnxt(struct lcl_sv *);
|
H A D | getservent_r.c | 38 copy_servent(struct servent *, struct servent *, SERV_R_COPY_ARGS); 42 struct servent *sptr, SERV_R_ARGS) { 43 struct servent *se = getservbyname(name, proto); 63 struct servent *sptr, SERV_R_ARGS) { 64 struct servent *se = getservbyport(port, proto); 89 getservent_r(struct servent *sptr, SERV_R_ARGS) { 90 struct servent *se = getservent(); 142 copy_servent(struct servent *se, struct servent *spt [all...] |
H A D | irp_sv.c | 57 struct servent service; 63 static struct servent * sv_next(struct irs_sv *); 64 static struct servent * sv_byname(struct irs_sv *, const char *, 66 static struct servent * sv_byport(struct irs_sv *, int, const char *); 70 static void free_service(struct servent *sv); 135 static struct servent * 138 struct servent *sv = &pvt->service; 175 * struct servent * sv_byname(struct irs_sv *this, const char *name, 180 static struct servent * 183 struct servent *s [all...] |
H A D | dns_sv.c | 54 struct servent serv; 63 static struct servent * sv_byname(struct irs_sv *, 65 static struct servent * sv_byport(struct irs_sv *, int, const char *); 66 static struct servent * sv_next(struct irs_sv *); 76 static struct servent * parse_hes_list(struct irs_sv *, 137 static struct servent * 141 struct servent *s; 152 static struct servent * 156 struct servent *s; 169 static struct servent * [all...] |
H A D | getservent.c | 50 struct servent * 57 struct servent * 64 struct servent * 87 struct servent * 97 struct servent * 120 struct servent *
|
H A D | irs_data.h | 39 struct servent * sv_last;
|
H A D | gen_sv.c | 55 static struct servent * sv_next(struct irs_sv *); 56 static struct servent * sv_byname(struct irs_sv *, const char *, 58 static struct servent * sv_byport(struct irs_sv *, int, const char *); 109 static struct servent * 112 struct servent *rval; 131 static struct servent * 135 struct servent *rval; 148 static struct servent * 152 struct servent *rval;
|
H A D | lcl_sv.c | 102 static struct servent * sv_next(struct irs_sv *); 103 static struct servent * sv_byname(struct irs_sv *, const char *, 105 static struct servent * sv_byport(struct irs_sv *, int, const char *); 108 /*global*/ struct servent * irs_lclsv_fnxt(struct lcl_sv *); 110 static struct servent * sv_db_rec(struct lcl_sv *, DBT *, DBT *); 170 static struct servent * 175 struct servent *p; 215 static struct servent * 220 struct servent *p; 287 static struct servent * [all...] |
/osnet-11/usr/src/lib/libresolv2/include/ |
H A D | port_netdb.h | 146 struct servent *getservbyname __P((const char *, const char *)); 150 struct servent *getservbyname_r __P((const char *name, const char *, 151 struct servent *, char *, int)); 155 struct servent *getservbyport __P((int, const char *)); 159 struct servent *getservbyport_r __P((int port, const char *, 160 struct servent *, char *, int)); 164 struct servent *getservent __P((void)); 168 struct servent *getservent_r __P((struct servent *, char *, int));
|
H A D | irs.h | 76 struct servent *(*byname) __P((struct irs_sv *, 78 struct servent *(*byport) __P((struct irs_sv *, int, const char *)); 79 struct servent *(*next) __P((struct irs_sv *)); 338 extern struct servent *getservent_p __P((struct net_data *)); 339 extern struct servent *getservbyname_p __P((const char *, const char *, 341 extern struct servent *getservbyport_p __P((int, const char *,
|
H A D | port_before.h | 167 #define SERV_R_RETURN struct servent *
|
/osnet-11/usr/src/lib/libresolv2/include/isc/ |
H A D | irpmarshall.h | 52 int irp_marshall_sv(const struct servent *, char **, size_t *); 53 int irp_unmarshall_sv(struct servent *, char *);
|
/osnet-11/usr/src/lib/nsswitch/nis/common/ |
H A D | getservent.c | 51 struct servent *serv = (struct servent *)args->returnval; 216 struct servent *serv = (struct servent *)args->returnval;
|
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ |
H A D | reentr.inc | 1134 # define getservbyname(a, b) ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0)) 1137 # define getservbyname(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0));}) 1140 static struct servent* Perl_reentr_getservbyname(const char* a, const char* b) { 1143 return ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0)); 1153 # define getservbyname(a, b) ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0)) 1156 # define getservbyname(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0));}) 1159 static struct servent* Perl_reentr_getservbyname(const char* a, const char* b) { 1162 return ((PL_REENTRANT_RETINT = getservbyname_r(a, b, &PL_reentrant_buffer->_servent_struct, &PL_reentrant_buffer->_servent_data)) == 0 ? &PL_reentrant_buffer->_servent_struct : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyname", a, b) : 0)); 1173 # define getservbyport(a, b) ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retry("getservbyport", a, b) : 0)) 1176 # define getservbyport(a, b) ({int PL_REENTRANT_RETINT; ((PL_REENTRANT_RETINT = getservbyport_r(a, b, &PL_reentrant_buffer->_servent_struct, PL_reentrant_buffer->_servent_buffer, PL_reentrant_buffer->_servent_size, &PL_reentrant_buffer->_servent_ptr)) == 0 ? PL_reentrant_buffer->_servent_ptr : (((PL_REENTRANT_RETINT == ERANGE) || (errno == ERANGE)) ? (struct servent*)Perl_reentrant_retr [all...] |
H A D | reentr.h | 694 struct servent _servent_struct; 702 struct servent* _servent_ptr;
|
/osnet-11/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet.c | 44 * nd_addrlist or hostservlist back into hostent and servent, as the case 130 struct servent *_switch_getservbyname_r(const char *, const char *, 131 struct servent *, char *, int); 132 struct servent *_switch_getservbyport_r(int, const char *, struct servent *, 141 static int hsents2ndhostservs(struct hostent *, struct servent *, ushort_t, 143 static int ndaddr2srent(const char *, const char *, ushort_t, struct servent *, 148 struct servent *, char *, int); 491 struct servent *se; 551 sizeof (struct servent), NSS_BUFLEN_SERVICE [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | fake-addrinfo.c | 264 typedef struct servent *GET_SERV_TMP; 272 struct servent ent; 277 struct servent *my_sp; \ 288 struct servent *my_sp; \ 300 struct servent ent; 312 struct servent *my_sp; \ 876 struct servent *sp; 951 struct servent *sp;
|
/osnet-11/usr/src/lib/libnsl/xpol/ |
H A D | xpol_lib.c | 338 extern struct servent *_switch_getservbyname_r(const char *, const char *, 339 struct servent *, char *, int); 377 struct servent _s, *s;
|
/osnet-11/usr/src/cmd/sendmail/aux/ |
H A D | mconnect.c | 82 struct servent *sp;
|