Lines Matching refs:servent
32 #include "servent.h"
50 struct servent *
81 /* reallocate the thread-specific servent struct */
82 p2 = realloc( (char*)rs->servent.s_aliases, total );
87 rs->servent.s_aliases = (char**) p2;
89 rs->servent.s_name = p2;
91 rs->servent.s_proto = p2;
94 memcpy( rs->servent.s_name, p+1, namelen );
95 rs->servent.s_name[namelen] = 0;
102 rs->servent.s_port = htons(port);
103 rs->servent.s_proto = p[2] == 't' ? "tcp" : "udp";
108 rs->servent.s_aliases[nn] = p2;
114 rs->servent.s_aliases[nn] = NULL;
118 return &rs->servent;
121 struct servent *