Lines Matching refs:p
39 const char* p; in getservent_r() local
47 p = rs->servent_ptr; in getservent_r()
48 if (p == NULL) in getservent_r()
49 p = _services; in getservent_r()
50 else if (p[0] == 0) in getservent_r()
54 namelen = p[0]; in getservent_r()
56 q = p + 1 + namelen + 3; /* skip name + port + proto */ in getservent_r()
80 memcpy( rs->servent.s_name, p+1, namelen ); in getservent_r()
82 p += 1 + namelen; in getservent_r()
85 port = ((((unsigned char*)p)[0] << 8) | in getservent_r()
86 ((unsigned char*)p)[1]); in getservent_r()
89 rs->servent.s_proto = p[2] == 't' ? "tcp" : "udp"; in getservent_r()
90 p += 4; /* skip port(2) + proto(1) + aliascount(1) */ in getservent_r()
93 int len2 = p[0]; in getservent_r()
95 memcpy( p2, p+1, len2 ); in getservent_r()
98 p += len2 + 1; in getservent_r()
102 rs->servent_ptr = p; in getservent_r()