Lines Matching refs:cnt
16 int cnt = 0;
78 buf[cnt].port = port;
79 buf[cnt].socktype = SOCK_STREAM;
80 buf[cnt++].proto = IPPROTO_TCP;
83 buf[cnt].port = port;
84 buf[cnt].socktype = SOCK_DGRAM;
85 buf[cnt++].proto = IPPROTO_UDP;
87 return cnt;
120 buf[cnt].port = port;
121 buf[cnt].socktype = SOCK_DGRAM;
122 buf[cnt++].proto = IPPROTO_UDP;
126 buf[cnt].port = port;
127 buf[cnt].socktype = SOCK_STREAM;
128 buf[cnt++].proto = IPPROTO_TCP;
134 if (cnt > 0) {
135 return cnt;
138 MUSL_LOGE("%{public}s: %{public}d: wrong server count: %{public}d", __func__, __LINE__, cnt);