Lines Matching refs:cnt
15 int cnt = 0; in __lookup_serv() local
56 buf[cnt].port = port; in __lookup_serv()
57 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv()
58 buf[cnt++].proto = IPPROTO_TCP; in __lookup_serv()
61 buf[cnt].port = port; in __lookup_serv()
62 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
63 buf[cnt++].proto = IPPROTO_UDP; in __lookup_serv()
65 return cnt; in __lookup_serv()
83 while (fgets(line, sizeof line, f) && cnt < MAXSERVS) { in __lookup_serv()
101 buf[cnt].port = port; in __lookup_serv()
102 buf[cnt].socktype = SOCK_DGRAM; in __lookup_serv()
103 buf[cnt++].proto = IPPROTO_UDP; in __lookup_serv()
107 buf[cnt].port = port; in __lookup_serv()
108 buf[cnt].socktype = SOCK_STREAM; in __lookup_serv()
109 buf[cnt++].proto = IPPROTO_TCP; in __lookup_serv()
113 return cnt > 0 ? cnt : EAI_SERVICE; in __lookup_serv()